Package org.opencms.db
Interface I_CmsDbContextFactory
- All Known Implementing Classes:
CmsDbContextFactory
public interface I_CmsDbContextFactory
This interface defines a factory to create runtime info objects.
- Since:
- 6.0.0
-
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.
-
Method Details
-
initialize
Initializes the runtime info factory with the OpenCms driver manager.- Parameters:
driverManager
- the initialized OpenCms driver manager
-
getDbContext
Returns a new database context based on the given user request context.- Parameters:
context
- the user request context to initialize the database context with- Returns:
- a new database context based on the given user request context
-
getDbContext
Returns a new database context.- Returns:
- a new database context
-