public class InitDataProcessorImpl extends Object implements InitDataProcessor
Modifier and Type | Field and Description |
---|---|
protected MetaDataFileManager |
metaDataFileManager |
Constructor and Description |
---|
InitDataProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addInitDatas(InitDatas initDatas)
添加表格初始化数据信息
|
List<String> |
getDeInitSql(String language)
初始化数据删除语句
|
List<String> |
getDeInitSql(String tableName,
String language)
根据表名获取对应的初始化数据的删除sql列表,若不存在,则抛出异常
|
List<String> |
getDeInitSql(String packageName,
String tableName,
String language)
根据指定的包名和表名获取初始化数据的删除sql列表,若该不存在对应的表,则抛出异常
|
List<String> |
getDeInitSqlByTableId(String tableId,
String language)
根据表id获取对应的初始化数据的删除sql列表,若不存在,则抛出异常
|
List<InitData> |
getInitDataList(String tableName)
根据表名获取对应的初始化数据,若不存在,则抛出异常
|
List<InitData> |
getInitDataList(String packageName,
String tableName)
根据指定的包名和表名获取初始化数据,若该不存在对应的表,则抛出异常
|
List<InitData> |
getInitDataListByTableId(String tableId)
根据表Id取对应的初始化数据,若不存在,则抛出异常
|
static InitDataProcessor |
getInitDataProcessor() |
List<InitData> |
getInitDatas()
获取所有初始化记录
|
List<String> |
getInitSql(String language,
Connection connection,
boolean isFull)
获取初始化sql(新增和删除语句)
|
List<String> |
getInitSql(String tableName,
String language)
根据表名获取对应的初始化数据的插入sql列表,若不存在,则抛出异常
|
List<String> |
getInitSql(String packageName,
String tableName,
String language)
根据指定的包名和表名获取初始化数据的插入sql列表,若该不存在对应的表,则抛出异常
|
List<String> |
getInitSqlByTableId(String tableId,
String language)
根据表Id获取对应的初始化数据的插入sql列表,若不存在,则抛出异常
|
ProcessorManager |
getProcessorManager() |
void |
registerModifiedTime(InitDatas initDatas,
long lastModify) |
void |
removeInitDatas(InitDatas initDatas)
移除表格初始化数据信息
|
void |
setProcessorManager(ProcessorManager processorManager) |
protected MetaDataFileManager metaDataFileManager
public static InitDataProcessor getInitDataProcessor()
public ProcessorManager getProcessorManager()
getProcessorManager
in interface InitDataProcessor
public void setProcessorManager(ProcessorManager processorManager)
setProcessorManager
in interface InitDataProcessor
public List<String> getInitSql(String packageName, String tableName, String language)
InitDataProcessor
getInitSql
in interface InitDataProcessor
public List<String> getInitSql(String tableName, String language)
InitDataProcessor
getInitSql
in interface InitDataProcessor
public List<String> getInitSqlByTableId(String tableId, String language)
InitDataProcessor
getInitSqlByTableId
in interface InitDataProcessor
public List<String> getInitSql(String language, Connection connection, boolean isFull) throws SQLException
getInitSql
in interface InitDataProcessor
language
- connection
- isFull
- SQLException
public void addInitDatas(InitDatas initDatas)
InitDataProcessor
addInitDatas
in interface InitDataProcessor
public void removeInitDatas(InitDatas initDatas)
InitDataProcessor
removeInitDatas
in interface InitDataProcessor
public List<InitData> getInitDataList(String tableName)
InitDataProcessor
getInitDataList
in interface InitDataProcessor
public List<InitData> getInitDataListByTableId(String tableId)
InitDataProcessor
getInitDataListByTableId
in interface InitDataProcessor
public List<InitData> getInitDataList(String packageName, String tableName)
InitDataProcessor
getInitDataList
in interface InitDataProcessor
public List<String> getDeInitSql(String packageName, String tableName, String language)
InitDataProcessor
getDeInitSql
in interface InitDataProcessor
public List<String> getDeInitSql(String tableName, String language)
InitDataProcessor
getDeInitSql
in interface InitDataProcessor
public List<String> getDeInitSql(String language)
getDeInitSql
in interface InitDataProcessor
language
- public List<String> getDeInitSqlByTableId(String tableId, String language)
InitDataProcessor
getDeInitSqlByTableId
in interface InitDataProcessor
public List<InitData> getInitDatas()
InitDataProcessor
getInitDatas
in interface InitDataProcessor
public void registerModifiedTime(InitDatas initDatas, long lastModify)
registerModifiedTime
in interface InitDataProcessor
Copyright © 2006–2018 TinyGroup. All rights reserved.