Class CreateTable
- java.lang.Object
-
- org.dashbuilder.dataprovider.sql.model.SQLStatement<CreateTable>
-
- org.dashbuilder.dataprovider.sql.model.CreateTable
-
public class CreateTable extends SQLStatement<CreateTable>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Column>columnsprotected List<Column>primaryKeys-
Fields inherited from class org.dashbuilder.dataprovider.sql.model.SQLStatement
_columnsRefs, connection, dialect, table
-
-
Constructor Summary
Constructors Constructor Description CreateTable(Connection connection, Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTablecolumns(Column... cols)voidexecute()List<Column>getColumns()List<Column>getPrimaryKeys()StringgetSQL()CreateTableprimaryKey(Column... cols)StringtoString()-
Methods inherited from class org.dashbuilder.dataprovider.sql.model.SQLStatement
fix, fix, fix, fixCase, fixColumns, getConnection, getDialect, getTable, table
-
-
-
-
Constructor Detail
-
CreateTable
public CreateTable(Connection connection, Dialect dialect)
-
-
Method Detail
-
columns
public CreateTable columns(Column... cols)
-
primaryKey
public CreateTable primaryKey(Column... cols)
-
getSQL
public String getSQL()
-
execute
public void execute() throws SQLException- Throws:
SQLException
-
-