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
Version:
$Revision: 1.10 $
Author:
Thomas Weckert

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.
 

Method Detail

initialize

void initialize(CmsDriverManager driverManager)
Initializes the runtime info factory with the OpenCms driver manager.

Parameters:
driverManager - the initialized OpenCms driver manager

getDbContext

CmsDbContext getDbContext(CmsRequestContext context)
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

CmsDbContext getDbContext()
Returns a new database context.

Returns:
a new database context