public interface TableSqlProcessor
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_DEF |
static String |
COLUMN_NAME |
static String |
COLUMN_SIZE |
static String |
DATA_TYPE |
static String |
DECIMAL_DIGITS |
static String |
INDEX_NON_UNIQUE |
static String |
NULLABLE |
static String |
REMARKS |
static String |
TYPE_NAME |
Modifier and Type | Method and Description |
---|---|
boolean |
checkTableExist(Table table,
Connection connection) |
List<String> |
getClearTableSql(Table table,
Connection connection) |
List<String> |
getCreateSql(Table table,
String packageName)
获得创建表格的语句(包含index)
|
String |
getDropSql(Table table,
String packageName) |
List<String> |
getForeignKeySqls(Table table,
String packageName) |
List<String> |
getIndexCreateSql(Table table,
String packageName)
获得创建索引的语句
|
List<String> |
getTableCreateSql(Table table,
String packageName)
获得创建表格的语句(不包含index)
|
TableProcessor |
getTableProcessor() |
List<String> |
getUpdateSql(Table table,
String packageName,
Connection connection)
获得(正向)Update表格的语句
|
void |
initChar2Byte(String language) |
void |
setTableProcessor(TableProcessor tableProcessor) |
static final String NULLABLE
static final String TYPE_NAME
static final String DATA_TYPE
static final String COLUMN_SIZE
static final String DECIMAL_DIGITS
static final String COLUMN_NAME
static final String COLUMN_DEF
static final String REMARKS
static final String INDEX_NON_UNIQUE
List<String> getCreateSql(Table table, String packageName)
table
- packageName
- List<String> getTableCreateSql(Table table, String packageName)
table
- packageName
- List<String> getIndexCreateSql(Table table, String packageName)
table
- packageName
- List<String> getUpdateSql(Table table, String packageName, Connection connection) throws SQLException
table
- packageName
- connection
- SQLException
boolean checkTableExist(Table table, Connection connection) throws SQLException
SQLException
TableProcessor getTableProcessor()
void setTableProcessor(TableProcessor tableProcessor)
List<String> getClearTableSql(Table table, Connection connection) throws SQLException
SQLException
void initChar2Byte(String language)
Copyright © 2006–2018 TinyGroup. All rights reserved.