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
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new database context.getDbContext
(CmsRequestContext context) Returns a new database context based on the given user request context.void
initialize
(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_CmsDbContextFactory
Returns a new database context.- Specified by:
getDbContext
in interfaceI_CmsDbContextFactory
- Returns:
- a new database context
- See Also:
-
getDbContext
Description copied from interface:I_CmsDbContextFactory
Returns a new database context based on the given user request context.- Specified by:
getDbContext
in 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_CmsDbContextFactory
Initializes the runtime info factory with the OpenCms driver manager.- Specified by:
initialize
in interfaceI_CmsDbContextFactory
- Parameters:
driverManager
- the initialized OpenCms driver manager- See Also:
-