atg.service.idgen
Class InitializingObfuscatedSQLIdGenerator

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.service.idgen.AbstractSequentialIdGenerator
              extended by atg.service.idgen.PersistentIdGenerator
                  extended by atg.service.idgen.SQLIdGenerator
                      extended by atg.service.idgen.ObfuscatedSQLIdGenerator
                          extended by atg.service.idgen.InitializingObfuscatedSQLIdGenerator
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, atg.service.idgen.IdGenerator, InitializingIdGenerator, java.util.EventListener

public class InitializingObfuscatedSQLIdGenerator
extends atg.service.idgen.ObfuscatedSQLIdGenerator
implements InitializingIdGenerator

This IDGenerator is intended to be used by unit tests. It will manage it's own database schema rather than assuming the tables already exist. Otherwise it's the same functionality as the ObfuscatedSQLIdGenerator.

Version:
$Id: //test/UnitTests/base/main/src/Java/atg/service/idgen/ InitializingSQLIdGenerator.java#1 $
Author:
adamb

Field Summary
static java.lang.String CREATE_STATEMENT
          The SQL statement required to create the table used by this component.
 
Fields inherited from class atg.service.idgen.ObfuscatedSQLIdGenerator
CLASS_VERSION, ERR_TOO_DENSE, MAX_DENSITY
 
Fields inherited from class atg.service.idgen.SQLIdGenerator
ERR_HWM_BAD_STATE, ERR_HWM_FAIL, ERR_NULL_DS, ERR_QUERY_TABLE, ERR_RESERVE_BAD_STATE
 
Fields inherited from class atg.service.idgen.PersistentIdGenerator
ERR_ADD_BAD_STATE, ERR_ADD_NULL_SPACE, ERR_READING_BOOTSTRAP_SPACES, STATE_ERROR, STATE_INITIALIZING, STATE_NEW, STATE_RUNNING, WARN_PICKING_DEFAULT
 
Fields inherited from class atg.service.idgen.AbstractSequentialIdGenerator
ERR_BAD_SPACE, ERR_ROLLBACK, ERR_UNSUPPORTED, mSpaces, RESOURCE_BUNDLE_NAME, sResourceBundle
 
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
InitializingObfuscatedSQLIdGenerator()
           
 
Method Summary
 void doStartService()
          Ensures that the required tables for this id generator exist.
 java.lang.String getCreateStatement()
          Returns the create statement appropriate for the current database
 
Methods inherited from class atg.service.idgen.ObfuscatedSQLIdGenerator
addIdSpace, addPersistentIdSpace, createNewDefaultIdSpace, getHexEncode, getIdsPerBatchColumn, getInsertSQL, getSelectSQL, getUpdateSQL, isHexEncode, reserveSeeds, setHexEncode, setIdsPerBatchColumn
 
Methods inherited from class atg.service.idgen.SQLIdGenerator
getBatchSizeColumn, getDataSource, getNameColumn, getPrefixColumn, getSeedColumn, getSuffixColumn, getTableName, getUseRequiredTransactionMode, initializeIdSpaces, main, removePersistentIdSpaces, setBatchSizeColumn, setDataSource, setHighWaterMark, setNameColumn, setPrefixColumn, setSeedColumn, setSuffixColumn, setTableName, setUseRequiredTransactionMode
 
Methods inherited from class atg.service.idgen.PersistentIdGenerator
getInitialIdSpaces, getLoadInitialIdSpacesAtStartup, getTransactionManager, getXMLToolsFactory, initialize, removeAllIdSpaces, removeIdSpace, setInitialIdSpaces, setLoadInitialIdSpacesAtStartup, setTransactionManager, setXMLToolsFactory
 
Methods inherited from class atg.service.idgen.AbstractSequentialIdGenerator
format, format, format, format, generateLongId, generateLongId, generateStringId, generateStringId, getAutoCreate, getBundle, getDefaultIdSpace, getDefaultIdSpaceName, getIdSpace, getIdSpaces, getResourceBundleName, isAutoCreate, postGenerateLongId, postGenerateStringId, setAutoCreate, setDefaultIdSpace, setDefaultIdSpaceName, toString
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, 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, wait, wait, wait
 
Methods inherited from interface atg.service.idgen.InitializingIdGenerator
getDataSource, getTableName
 
Methods inherited from interface atg.service.idgen.IdGenerator
generateLongId, generateLongId, generateStringId, generateStringId, getAutoCreate, getDefaultIdSpace, getIdSpace, getIdSpaces, isAutoCreate, setAutoCreate
 

Field Detail

CREATE_STATEMENT

public static final java.lang.String CREATE_STATEMENT
The SQL statement required to create the table used by this component.

See Also:
Constant Field Values
Constructor Detail

InitializingObfuscatedSQLIdGenerator

public InitializingObfuscatedSQLIdGenerator()
Method Detail

doStartService

public void doStartService()
                    throws atg.nucleus.ServiceException
Ensures that the required tables for this id generator exist.

Overrides:
doStartService in class atg.service.idgen.AbstractSequentialIdGenerator
Throws:
atg.nucleus.ServiceException

getCreateStatement

public java.lang.String getCreateStatement()
Returns the create statement appropriate for the current database

Specified by:
getCreateStatement in interface InitializingIdGenerator


Copyright © 2009. All Rights Reserved.