public class JobRepositoryManager extends LoggingBean implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
tables
The tables.
|
Constructor and Description |
---|
JobRepositoryManager() |
Modifier and Type | Method and Description |
---|---|
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) |
getLogger, setLogger
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
protected java.lang.String insertPrefixVariable(java.lang.String script)
script
- the scriptprotected boolean doJobRepositoryTablesExist()
script
- the scriptpublic void dropJobRepositoryDatabases() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic void dropJobRepositoryDatabasesOnClose() throws java.lang.Exception
java.lang.Exception
public void destroy() throws java.lang.Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
java.lang.Exception
public org.springframework.core.io.Resource getCreateScript()
public void setCreateScript(org.springframework.core.io.Resource createScript)
createScript
- the new creates the scriptpublic org.springframework.core.io.Resource getDropScript()
public void setDropScript(org.springframework.core.io.Resource dropScript)
dropScript
- the new drop scriptpublic boolean isDropOnClose()
public void setDropOnClose(boolean dropOnClose)
public DatabaseType getDatabaseType()
public void setDatabaseType(DatabaseType databaseType)
public LexEvsDatabaseOperations getLexEvsDatabaseOperations()
public void setLexEvsDatabaseOperations(LexEvsDatabaseOperations lexEvsDatabaseOperations)
public void setPrefix(java.lang.String prefix)
public java.lang.String getPrefix()