Package org.opencms.db
Class CmsDbContextFactory
java.lang.Object
org.opencms.db.CmsDbContextFactory
- All Implemented Interfaces:
I_CmsDbContextFactory
A default implementation of
I_CmsDbContextFactory.- Since:
- 6.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new database context.getDbContext(CmsRequestContext context) Returns a new database context based on the given user request context.voidinitialize(CmsDriverManager driverManager) Initializes the runtime info factory with the OpenCms driver manager.
-
Constructor Details
-
CmsDbContextFactory
public CmsDbContextFactory()
-
-
Method Details
-
getDbContext
Description copied from interface:I_CmsDbContextFactoryReturns a new database context.- Specified by:
getDbContextin interfaceI_CmsDbContextFactory- Returns:
- a new database context
- See Also:
-
getDbContext
Description copied from interface:I_CmsDbContextFactoryReturns a new database context based on the given user request context.- Specified by:
getDbContextin interfaceI_CmsDbContextFactory- Parameters:
context- the user request context to initialize the database context with- Returns:
- a new database context based on the given user request context
- See Also:
-
initialize
Description copied from interface:I_CmsDbContextFactoryInitializes the runtime info factory with the OpenCms driver manager.- Specified by:
initializein interfaceI_CmsDbContextFactory- Parameters:
driverManager- the initialized OpenCms driver manager- See Also:
-