org.opencms.db
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 CmsDbContext getDbContext()
I_CmsDbContextFactory
getDbContext
in interface I_CmsDbContextFactory
I_CmsDbContextFactory.getDbContext()
public CmsDbContext getDbContext(CmsRequestContext context)
I_CmsDbContextFactory
getDbContext
in interface I_CmsDbContextFactory
context
- the user request context to initialize the database context withI_CmsDbContextFactory.getDbContext(org.opencms.file.CmsRequestContext)
public void initialize(CmsDriverManager driverManager)
I_CmsDbContextFactory
initialize
in interface I_CmsDbContextFactory
driverManager
- the initialized OpenCms driver managerI_CmsDbContextFactory.initialize(org.opencms.db.CmsDriverManager)