public class InitDataSqlProcessorImpl extends Object implements InitDataSqlProcessor
Constructor and Description |
---|
InitDataSqlProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addInitRecord(List<String> initSqlList,
String sql,
boolean hasAutoIncrement,
Table table) |
protected String |
dealDateType(String value)
处理日期类型
因为初始化数据是字符串类型,而实际是date类型,有些数据库需要进行转换。
|
protected String |
delimiter(String name) |
String |
getDbType() |
List<String> |
getDeInitSql(InitData initData)
根据初始化数据生成删除语句集合
|
List<String> |
getInitSql(InitData initData)
根据初始化数据生成插入语句集合
|
List<String> |
getPostInitSql(List<Table> tableList)
初始化数据执行后操作
|
List<String> |
getPreInitSql(List<Table> tableList)
初始化sql执行前操作
|
void |
init(Connection connection,
boolean fullSql) |
public List<String> getInitSql(InitData initData)
InitDataSqlProcessor
getInitSql
in interface InitDataSqlProcessor
protected String dealDateType(String value)
value
- protected void addInitRecord(List<String> initSqlList, String sql, boolean hasAutoIncrement, Table table)
public List<String> getDeInitSql(InitData initData)
InitDataSqlProcessor
getDeInitSql
in interface InitDataSqlProcessor
public List<String> getPreInitSql(List<Table> tableList)
InitDataSqlProcessor
getPreInitSql
in interface InitDataSqlProcessor
public List<String> getPostInitSql(List<Table> tableList) throws SQLException
InitDataSqlProcessor
getPostInitSql
in interface InitDataSqlProcessor
SQLException
public void init(Connection connection, boolean fullSql)
init
in interface InitDataSqlProcessor
public String getDbType()
Copyright © 2006–2018 TinyGroup. All rights reserved.