public class TableSqlParser extends SqlParser
Constructor and Description |
---|
TableSqlParser(String start) |
Modifier and Type | Method and Description |
---|---|
TableSqlParser |
charSetUTF8(boolean mySQL) |
TableSqlParser |
column(String column,
String type) |
static TableSqlParser |
createTable(String tableName) |
TableSqlParser |
defaultValue(boolean value) |
TableSqlParser |
defaultValue(String value) |
static String |
dropTable(String tableName) |
TableSqlParser |
foreignKey(String column,
String refrencedTable,
String referencedColumn) |
static TableSqlParser |
newColumn(String column,
String type)
Used for ALTER TABLE sql statements.
|
TableSqlParser |
notNull() |
TableSqlParser |
primaryKey(boolean mySQL,
String column) |
TableSqlParser |
primaryKeyIDColumn(boolean mySQL,
String column) |
String |
toString() |
TableSqlParser |
unique() |
public TableSqlParser(String start)
public static TableSqlParser createTable(String tableName)
public static TableSqlParser newColumn(String column, String type)
column
- column to modifypublic TableSqlParser column(String column, String type)
public TableSqlParser foreignKey(String column, String refrencedTable, String referencedColumn)
public TableSqlParser notNull()
public TableSqlParser unique()
public TableSqlParser defaultValue(boolean value)
public TableSqlParser defaultValue(String value)
public TableSqlParser primaryKeyIDColumn(boolean mySQL, String column)
public TableSqlParser primaryKey(boolean mySQL, String column)
public TableSqlParser charSetUTF8(boolean mySQL)
Copyright © 2017. All rights reserved.