atg.service.jdbc
Class InitializingDataSourceBase

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.service.jdbc.FakeXADataSource
              extended by atg.service.jdbc.InitializingDataSourceBase
All Implemented Interfaces:
atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, java.util.EventListener, javax.sql.CommonDataSource, javax.sql.XADataSource
Direct Known Subclasses:
DerbyDataSource, HSQLDBDataSource

public class InitializingDataSourceBase
extends atg.service.jdbc.FakeXADataSource

Base class for InitializingDataSource's common functionaliy.

Version:
$Id:$
Author:
adamb

Field Summary
 java.lang.String mDatabaseName
           
 
Fields inherited from class atg.service.jdbc.FakeXADataSource
CLASS_VERSION
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
InitializingDataSourceBase()
           
 
Method Summary
 java.lang.String getDatabaseName()
          Returns the name of the database to use with HSQLDB.
 void setDatabaseName(java.lang.String pName)
          Sets the name of the database to be used with HSQLDB
 
Methods inherited from class atg.service.jdbc.FakeXADataSource
getAdditionalConnectionProperties, getCloseOrphanedConnections, getDatabase, getDataSource, getDataSourceJNDIEnvironment, getDataSourceJNDIName, getDriver, getLoginDecoder, getLoginTimeout, getLogWriter, getNeedsSeparateUserInfo, getPassword, getReadOnly, getServer, getURL, getUser, getXAConnection, getXAConnection, isCommitOnPrepare, setAdditionalConnectionProperties, setCloseOrphanedConnections, setCommitOnPrepare, setDatabase, setDataSource, setDataSourceJNDIEnvironment, setDataSourceJNDIName, setDriver, setLoginDecoder, setLoginTimeout, setLogWriter, setNeedsSeparateUserInfo, setPassword, setReadOnly, setServer, setURL, setUser
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mDatabaseName

public java.lang.String mDatabaseName
Constructor Detail

InitializingDataSourceBase

public InitializingDataSourceBase()
Method Detail

getDatabaseName

public java.lang.String getDatabaseName()
Returns the name of the database to use with HSQLDB. The defaut name is "testdb"

Returns:

setDatabaseName

public void setDatabaseName(java.lang.String pName)
Sets the name of the database to be used with HSQLDB

Parameters:
pName - The name of the HSQLDB database to be created when this datasource starts up.


Copyright © 2009. All Rights Reserved.