org.lexgrid.loader.setup
Class JobRepositoryManager

java.lang.Object
  extended by org.lexgrid.loader.logging.LoggingBean
      extended by org.lexgrid.loader.setup.JobRepositoryManager
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class JobRepositoryManager
extends LoggingBean
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

The Class JobRepositoryManager.

Author:
Kevin Peterson

Field Summary
protected  java.lang.String[] tables
          The tables.
 
Constructor Summary
JobRepositoryManager()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
protected  boolean doJobRepositoryTablesExist()
          Insert prefix variable.
 void dropJobRepositoryDatabases()
          Drop job repository databases.
 void dropJobRepositoryDatabasesOnClose()
           
 org.springframework.core.io.Resource getCreateScript()
          Gets the creates the script.
 DatabaseType getDatabaseType()
           
 org.springframework.core.io.Resource getDropScript()
          Gets the drop script.
 LexEvsDatabaseOperations getLexEvsDatabaseOperations()
           
 java.lang.String getPrefix()
           
protected  java.lang.String insertPrefixVariable(java.lang.String script)
          Insert prefix variable.
 boolean isDropOnClose()
           
 void setCreateScript(org.springframework.core.io.Resource createScript)
          Sets the creates the script.
 void setDatabaseType(DatabaseType databaseType)
           
 void setDropOnClose(boolean dropOnClose)
           
 void setDropScript(org.springframework.core.io.Resource dropScript)
          Sets the drop script.
 void setLexEvsDatabaseOperations(LexEvsDatabaseOperations lexEvsDatabaseOperations)
           
 void setPrefix(java.lang.String prefix)
           
 
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
 

Field Detail

tables

protected java.lang.String[] tables
The tables.

Constructor Detail

JobRepositoryManager

public JobRepositoryManager()
Method Detail

afterPropertiesSet

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

insertPrefixVariable

protected java.lang.String insertPrefixVariable(java.lang.String script)
Insert prefix variable.

Parameters:
script - the script
Returns:
the string

doJobRepositoryTablesExist

protected boolean doJobRepositoryTablesExist()
Insert prefix variable.

Parameters:
script - the script
Returns:
the string

dropJobRepositoryDatabases

public void dropJobRepositoryDatabases()
                                throws java.lang.Exception
Drop job repository databases.

Throws:
java.lang.Exception - the exception

dropJobRepositoryDatabasesOnClose

public void dropJobRepositoryDatabasesOnClose()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

destroy

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

getCreateScript

public org.springframework.core.io.Resource getCreateScript()
Gets the creates the script.

Returns:
the creates the script

setCreateScript

public void setCreateScript(org.springframework.core.io.Resource createScript)
Sets the creates the script.

Parameters:
createScript - the new creates the script

getDropScript

public org.springframework.core.io.Resource getDropScript()
Gets the drop script.

Returns:
the drop script

setDropScript

public void setDropScript(org.springframework.core.io.Resource dropScript)
Sets the drop script.

Parameters:
dropScript - the new drop script

isDropOnClose

public boolean isDropOnClose()

setDropOnClose

public void setDropOnClose(boolean dropOnClose)

getDatabaseType

public DatabaseType getDatabaseType()

setDatabaseType

public void setDatabaseType(DatabaseType databaseType)

getLexEvsDatabaseOperations

public LexEvsDatabaseOperations getLexEvsDatabaseOperations()

setLexEvsDatabaseOperations

public void setLexEvsDatabaseOperations(LexEvsDatabaseOperations lexEvsDatabaseOperations)

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.