Package org.opencms.db
Class CmsDbContextFactory
- java.lang.Object
-
- org.opencms.db.CmsDbContextFactory
-
- All Implemented Interfaces:
I_CmsDbContextFactory
public class CmsDbContextFactory extends java.lang.Object implements I_CmsDbContextFactory
A default implementation ofI_CmsDbContextFactory
.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description CmsDbContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
CmsDbContextFactory
public CmsDbContextFactory()
-
-
Method Detail
-
getDbContext
public CmsDbContext 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:
I_CmsDbContextFactory.getDbContext()
-
getDbContext
public CmsDbContext getDbContext(CmsRequestContext context)
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:
I_CmsDbContextFactory.getDbContext(org.opencms.file.CmsRequestContext)
-
initialize
public void initialize(CmsDriverManager driverManager)
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:
I_CmsDbContextFactory.initialize(org.opencms.db.CmsDriverManager)
-
-