org.apache.turbine.services.db
Interface MapBrokerService
- All Superinterfaces:
- Initable, Service
- All Known Implementing Classes:
- TurbineMapBrokerService
- public interface MapBrokerService
- extends Service
This service manages DatabaseMap
objects used throughout a Turbine application. It provides single point
of access to a pool of maps, assuring that every client will access
the same instance of DatabaseMap object.
- Version:
- $Id$
- Author:
- Rafal Krzewski
Field Summary |
static java.lang.String |
DEFAULT
Name of the default map builder and map. |
static java.lang.String |
SERVICE_NAME
|
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
DEFAULT
public static final java.lang.String DEFAULT
- Name of the default map builder and map.
getDatabaseMap
public DatabaseMap getDatabaseMap()
throws TurbineException
- Returns the default database map information.
- Returns:
- A DatabaseMap.
- Throws:
TurbineException
- Any exceptions caught during procssing will be
rethrown wrapped into a TurbineException.
getDatabaseMap
public DatabaseMap getDatabaseMap(java.lang.String name)
throws TurbineException
- Returns the database map information. Name relates to the name
of the connection pool to associate with the map.
- Parameters:
name
- The name of the DatabaseMap
to
retrieve.- Returns:
- The named
DatabaseMap
. - Throws:
TurbineException
- Any exceptions caught during procssing will be
rethrown wrapped into a TurbineException.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.