public class SQLScriptMigration extends Object implements DataMigrationAgent
| Constructor and Description |
|---|
SQLScriptMigration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeSchemaScript(Connection con,
String[] sql,
boolean newdb)
borrowed from LocalSessionFactoryBean in spring
|
String |
getFrom() |
String |
getScriptPattern() |
org.hibernate.SessionFactory |
getSessionFactory() |
String |
getTo() |
String |
migrate(String current,
String target,
boolean newdb) |
void |
setFrom(String from) |
void |
setScriptPattern(String scriptPattern) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
void |
setTo(String to) |
public String migrate(String current, String target, boolean newdb) throws Exception
migrate in interface DataMigrationAgentExceptionprotected void executeSchemaScript(Connection con, String[] sql, boolean newdb) throws SQLException
con - sql - SQLExceptionpublic String getFrom()
public void setFrom(String from)
from - The from to set.public org.hibernate.SessionFactory getSessionFactory()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - The sessionFactory to set.public String getTo()
public void setTo(String to)
to - The to to set.public String getScriptPattern()
public void setScriptPattern(String scriptPattern)
scriptPattern - The scriptPattern to set.Copyright © 2003–2016 Sakai Project. All rights reserved.