public class CmsDbContextFactory extends java.lang.Object implements I_CmsDbContextFactory
I_CmsDbContextFactory.| Constructor and Description |
|---|
CmsDbContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
CmsDbContext |
getDbContext()
Returns a new database context.
|
CmsDbContext |
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.
|
public CmsDbContextFactory()
public CmsDbContext getDbContext()
I_CmsDbContextFactorygetDbContext in interface I_CmsDbContextFactoryI_CmsDbContextFactory.getDbContext()public CmsDbContext getDbContext(CmsRequestContext context)
I_CmsDbContextFactorygetDbContext in interface I_CmsDbContextFactorycontext - the user request context to initialize the database context withI_CmsDbContextFactory.getDbContext(org.opencms.file.CmsRequestContext)public void initialize(CmsDriverManager driverManager)
I_CmsDbContextFactoryinitialize in interface I_CmsDbContextFactorydriverManager - the initialized OpenCms driver managerI_CmsDbContextFactory.initialize(org.opencms.db.CmsDriverManager)