org.apache.turbine.services.db
Class TurbineMapBrokerService

java.lang.Object
  |
  +--org.apache.turbine.services.BaseInitable
        |
        +--org.apache.turbine.services.BaseService
              |
              +--org.apache.turbine.services.db.TurbineMapBrokerService
All Implemented Interfaces:
Initable, MapBrokerService, Service

Deprecated. use org.apache.torque.Torque instead

public class TurbineMapBrokerService
extends BaseService
implements MapBrokerService

Turbine's default implmentation of MapBrokerService.

Version:
$Id: TurbineMapBrokerService.java,v 1.7 2002/07/12 20:46:55 mpoeschl Exp $
Author:
Frank Y. Kim, Brett McLaughlin, Greg Ritter, Daniel Rall, Magnús Þór Torfason, Jason van Zyl, Rafal Krzewski

Fields inherited from class org.apache.turbine.services.BaseService
configuration, name, properties, serviceBroker
 
Fields inherited from class org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
 
Fields inherited from interface org.apache.turbine.services.db.MapBrokerService
DEFAULT, DEFAULT_MAP, SERVICE_NAME
 
Constructor Summary
TurbineMapBrokerService()
          Deprecated.  
 
Method Summary
 org.apache.torque.map.DatabaseMap getDatabaseMap()
          Deprecated. Returns the default database map information.
 org.apache.torque.map.DatabaseMap getDatabaseMap(java.lang.String name)
          Deprecated. Returns the database map information.
 java.lang.String getDefaultMap()
          Deprecated. Return the default map.
 void init()
          Deprecated. Initializes the service.
 void shutdown()
          Deprecated. Shuts down the service.
 
Methods inherited from class org.apache.turbine.services.BaseService
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
 
Methods inherited from class org.apache.turbine.services.BaseInitable
getInit, getInitableBroker, init, setInit, setInitableBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, setInitableBroker
 

Constructor Detail

TurbineMapBrokerService

public TurbineMapBrokerService()
Deprecated. 
Method Detail

init

public void init()
Deprecated. 
Initializes the service.
Specified by:
init in interface Initable
Overrides:
init in class BaseInitable
Following copied from interface: org.apache.turbine.services.Initable
Throws:
InitializationException, - if initialization of this class was not successful.

getDefaultMap

public java.lang.String getDefaultMap()
Deprecated. 
Return the default map.
Specified by:
getDefaultMap in interface MapBrokerService

shutdown

public void shutdown()
Deprecated. 
Shuts down the service. This method halts the IDBroker's daemon thread in all of the DatabaseMap's.
Specified by:
shutdown in interface Initable
Overrides:
shutdown in class BaseInitable

getDatabaseMap

public org.apache.torque.map.DatabaseMap getDatabaseMap()
                                                 throws TurbineException
Deprecated. 
Returns the default database map information.
Specified by:
getDatabaseMap in interface MapBrokerService
Returns:
A DatabaseMap.
Throws:
TurbineException - Any exceptions caught during procssing will be rethrown wrapped into a TurbineException.

getDatabaseMap

public org.apache.torque.map.DatabaseMap getDatabaseMap(java.lang.String name)
                                                 throws TurbineException
Deprecated. 
Returns the database map information. Name relates to the name of the connection pool to associate with the map.
Specified by:
getDatabaseMap in interface MapBrokerService
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 © 2000-2002 Apache Software Foundation. All Rights Reserved.