public class CreateTableParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
build() |
CreateTableParser |
column(java.lang.String column,
java.lang.String type) |
static CreateTableParser |
create(java.lang.String tableName,
DBType type) |
CreateTableParser |
defaultValue(boolean value) |
CreateTableParser |
defaultValue(java.lang.String value) |
CreateTableParser |
foreignKey(java.lang.String column,
java.lang.String referencedTable,
java.lang.String referencedColumn) |
CreateTableParser |
notNull() |
CreateTableParser |
primaryKey() |
java.lang.String |
toString() |
CreateTableParser |
unique() |
public static CreateTableParser create(java.lang.String tableName, DBType type)
public CreateTableParser column(java.lang.String column, java.lang.String type)
public CreateTableParser primaryKey()
public CreateTableParser notNull()
public CreateTableParser unique()
public CreateTableParser defaultValue(boolean value)
public CreateTableParser defaultValue(java.lang.String value)
public CreateTableParser foreignKey(java.lang.String column, java.lang.String referencedTable, java.lang.String referencedColumn)
public java.lang.String build()
public java.lang.String toString()
toString
in class java.lang.Object