org.opencms.db
Class CmsDbContextFactory

java.lang.Object
  extended by org.opencms.db.CmsDbContextFactory
All Implemented Interfaces:
I_CmsDbContextFactory

public class CmsDbContextFactory
extends java.lang.Object
implements I_CmsDbContextFactory

A default implementation of I_CmsDbContextFactory.

Since:
6.0.0
Version:
$Revision: 1.9 $
Author:
Thomas Weckert

Constructor Summary
CmsDbContextFactory()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface I_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 interface I_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 interface I_CmsDbContextFactory
Parameters:
driverManager - the initialized OpenCms driver manager
See Also:
I_CmsDbContextFactory.initialize(org.opencms.db.CmsDriverManager)