org.lexgrid.loader.staging
Class DefaultStagingManager

java.lang.Object
  extended by org.lexgrid.loader.logging.LoggingBean
      extended by org.lexgrid.loader.staging.DefaultStagingManager
All Implemented Interfaces:
StagingManager, org.springframework.beans.factory.InitializingBean

public class DefaultStagingManager
extends LoggingBean
implements StagingManager, org.springframework.beans.factory.InitializingBean

The Class DefaultStagingManager.

Author:
Kevin Peterson

Field Summary
 
Fields inherited from interface org.lexgrid.loader.staging.StagingManager
STAGING_TABLES_PREFIX
 
Constructor Summary
DefaultStagingManager()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  void createStagingDatabase(org.springframework.core.io.Resource creationScriptPath)
          Creates the staging database.
 void dropAllStagingDatabases()
          Drop all staging databases.
 void dropStagingDatabase(java.lang.String databaseName)
          Drop staging database.
 LexEvsDatabaseOperations getLexEvsDatabaseOperations()
           
 java.lang.String getPrefix()
           
 java.util.Map<java.lang.String,org.springframework.core.io.Resource> getRegisteredStagingDatabases()
          Gets the registered staging databases.
 void initializeStagingSupport()
          Initialize staging support.
 boolean isRetry()
          Checks if is retry.
 void setLexEvsDatabaseOperations(LexEvsDatabaseOperations lexEvsDatabaseOperations)
           
 void setPrefix(java.lang.String prefix)
           
 void setRegisteredStagingDatabases(java.util.Map<java.lang.String,org.springframework.core.io.Resource> registeredStagingDatabases)
          Sets the registered staging databases.
 void setRetry(boolean retry)
          Sets the retry.
 
Methods inherited from class org.lexgrid.loader.logging.LoggingBean
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStagingManager

public DefaultStagingManager()
Method Detail

getRegisteredStagingDatabases

public java.util.Map<java.lang.String,org.springframework.core.io.Resource> getRegisteredStagingDatabases()
Gets the registered staging databases.

Returns:
the registered staging databases

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

initializeStagingSupport

public void initializeStagingSupport()
                              throws java.lang.Exception
Description copied from interface: StagingManager
Initialize staging support.

Specified by:
initializeStagingSupport in interface StagingManager
Throws:
java.lang.Exception - the exception

createStagingDatabase

protected void createStagingDatabase(org.springframework.core.io.Resource creationScriptPath)
                              throws java.lang.Exception
Creates the staging database.

Parameters:
creationScriptPath - the creation script path
Throws:
java.lang.Exception - the exception

dropAllStagingDatabases

public void dropAllStagingDatabases()
                             throws java.lang.Exception
Description copied from interface: StagingManager
Drop all staging databases.

Specified by:
dropAllStagingDatabases in interface StagingManager
Throws:
java.lang.Exception - the exception

dropStagingDatabase

public void dropStagingDatabase(java.lang.String databaseName)
                         throws java.lang.Exception
Description copied from interface: StagingManager
Drop staging database.

Specified by:
dropStagingDatabase in interface StagingManager
Parameters:
databaseName - the database name
Throws:
java.lang.Exception - the exception

setRegisteredStagingDatabases

public void setRegisteredStagingDatabases(java.util.Map<java.lang.String,org.springframework.core.io.Resource> registeredStagingDatabases)
Sets the registered staging databases.

Parameters:
registeredStagingDatabases - the registered staging databases

getLexEvsDatabaseOperations

public LexEvsDatabaseOperations getLexEvsDatabaseOperations()

setLexEvsDatabaseOperations

public void setLexEvsDatabaseOperations(LexEvsDatabaseOperations lexEvsDatabaseOperations)

isRetry

public boolean isRetry()
Checks if is retry.

Returns:
true, if is retry

setRetry

public void setRetry(boolean retry)
Sets the retry.

Parameters:
retry - the new retry

setPrefix

public void setPrefix(java.lang.String prefix)

getPrefix

public java.lang.String getPrefix()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.