org.lexevs.dao.database.setup.script
Class ScriptFactory

java.lang.Object
  extended by org.lexevs.dao.database.setup.script.ScriptFactory
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class ScriptFactory
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean

A factory for creating Script objects.


Nested Class Summary
static class ScriptFactory.ScriptType
          The Enum ScriptType.
 
Constructor Summary
ScriptFactory()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.String getCreationScriptPrefix()
          Gets the creation script prefix.
 DatabaseType getDatabaseType()
          Gets the database type.
 java.lang.String getDb2Name()
           
 java.lang.String getDropScriptPrefix()
          Gets the drop script prefix.
 java.lang.String getHsqlName()
           
 java.lang.String getMysqlName()
           
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 java.lang.String getOracleName()
           
 java.lang.String getPostgreSqlName()
           
 java.lang.String getScriptsuffix()
          Gets the scriptsuffix.
 ScriptFactory.ScriptType getScriptType()
          Gets the script type.
 boolean isSingleton()
           
 void setCreationScriptPrefix(java.lang.String creationScriptPrefix)
          Sets the creation script prefix.
 void setDatabaseType(DatabaseType databaseType)
          Sets the database type.
 void setDb2Name(java.lang.String db2Name)
           
 void setDropScriptPrefix(java.lang.String dropScriptPrefix)
          Sets the drop script prefix.
 void setHsqlName(java.lang.String hsqlName)
           
 void setMysqlName(java.lang.String mysqlName)
           
 void setOracleName(java.lang.String oracleName)
           
 void setPostgreSqlName(java.lang.String postgreSqlName)
           
 void setScriptsuffix(java.lang.String scriptsuffix)
          Sets the scriptsuffix.
 void setScriptType(ScriptFactory.ScriptType scriptType)
          Sets the script type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptFactory

public ScriptFactory()
Method Detail

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

afterPropertiesSet

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

getScriptType

public ScriptFactory.ScriptType getScriptType()
Gets the script type.

Returns:
the script type

setScriptType

public void setScriptType(ScriptFactory.ScriptType scriptType)
Sets the script type.

Parameters:
scriptType - the new script type

getDatabaseType

public DatabaseType getDatabaseType()
Gets the database type.

Returns:
the database type

setDatabaseType

public void setDatabaseType(DatabaseType databaseType)
Sets the database type.

Parameters:
databaseType - the new database type

getCreationScriptPrefix

public java.lang.String getCreationScriptPrefix()
Gets the creation script prefix.

Returns:
the creation script prefix

setCreationScriptPrefix

public void setCreationScriptPrefix(java.lang.String creationScriptPrefix)
Sets the creation script prefix.

Parameters:
creationScriptPrefix - the new creation script prefix

getDropScriptPrefix

public java.lang.String getDropScriptPrefix()
Gets the drop script prefix.

Returns:
the drop script prefix

setDropScriptPrefix

public void setDropScriptPrefix(java.lang.String dropScriptPrefix)
Sets the drop script prefix.

Parameters:
dropScriptPrefix - the new drop script prefix

getScriptsuffix

public java.lang.String getScriptsuffix()
Gets the scriptsuffix.

Returns:
the scriptsuffix

setScriptsuffix

public void setScriptsuffix(java.lang.String scriptsuffix)
Sets the scriptsuffix.

Parameters:
scriptsuffix - the new scriptsuffix

getOracleName

public java.lang.String getOracleName()

setOracleName

public void setOracleName(java.lang.String oracleName)

getMysqlName

public java.lang.String getMysqlName()

setMysqlName

public void setMysqlName(java.lang.String mysqlName)

getPostgreSqlName

public java.lang.String getPostgreSqlName()

setPostgreSqlName

public void setPostgreSqlName(java.lang.String postgreSqlName)

getHsqlName

public java.lang.String getHsqlName()

setHsqlName

public void setHsqlName(java.lang.String hsqlName)

getDb2Name

public java.lang.String getDb2Name()

setDb2Name

public void setDb2Name(java.lang.String db2Name)

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.