org.axiondb.engine.commands

Class CreateTableCommand

public class CreateTableCommand extends CreateCommand

A CREATE [TYPE] TABLE command.

Version: $Revision: 1.42 $ $Date: 2005/12/20 18:32:28 $

Author: Chuck Burdick James Strachan Rodney Waldhoff Ahimanikya Satapathy

Constructor Summary
CreateTableCommand()
CreateTableCommand(String tableName)
Method Summary
voidaddChildCommand(AxionCommand cmd)
voidaddColumn(String name, String datatypename)
voidaddColumn(String name, String datatypename, String precision)
voidaddColumn(String name, String datatypename, String precision, String scale, Object defaultValue)
voidaddColumn(String name, String datatypename, String precision, String scale, Object defaultValue, String generated)
voidalterColumn(String name, String newName, Selectable newDefault, Boolean dropDefault)
voidexcludeColumn(String colName)
booleanexecute(Database db)
AxionCommandgetChildCommand(int i)
intgetChildCommandCount()
ListgetColumnNames()
StringgetType()
booleanisColumnEexcluded(String colName)
voidsetCreateTableWithData(boolean createTableWithData)
voidsetProperties(Properties prop)
voidsetSourceTable(Table table)
voidsetSubQuery(SubSelectCommand subQuery)
voidsetType(String type)

Constructor Detail

CreateTableCommand

public CreateTableCommand()

CreateTableCommand

public CreateTableCommand(String tableName)

Method Detail

addChildCommand

public void addChildCommand(AxionCommand cmd)

addColumn

public void addColumn(String name, String datatypename)

addColumn

public void addColumn(String name, String datatypename, String precision)

addColumn

public void addColumn(String name, String datatypename, String precision, String scale, Object defaultValue)

addColumn

public void addColumn(String name, String datatypename, String precision, String scale, Object defaultValue, String generated)

alterColumn

public void alterColumn(String name, String newName, Selectable newDefault, Boolean dropDefault)

excludeColumn

public void excludeColumn(String colName)

execute

public boolean execute(Database db)

getChildCommand

public AxionCommand getChildCommand(int i)

getChildCommandCount

public int getChildCommandCount()

getColumnNames

public List getColumnNames()

getType

public String getType()

isColumnEexcluded

public boolean isColumnEexcluded(String colName)

setCreateTableWithData

public void setCreateTableWithData(boolean createTableWithData)

setProperties

public void setProperties(Properties prop)

setSourceTable

public void setSourceTable(Table table)

setSubQuery

public void setSubQuery(SubSelectCommand subQuery)

setType

public void setType(String type)