org.axiondb.engine.commands
Class CreateTableCommand
java.lang.Object
org.axiondb.engine.commands.BaseAxionCommand
org.axiondb.engine.commands.CreateCommand
org.axiondb.engine.commands.CreateTableCommand
- All Implemented Interfaces:
- AxionCommand
- public class CreateTableCommand
- extends CreateCommand
A CREATE [TYPE] TABLE
command.
- Version:
- $Revision: 1.28 $ $Date: 2004/09/09 23:47:43 $
Methods inherited from class org.axiondb.engine.commands.BaseAxionCommand |
appendBindVariables, assertNotReadOnly, attemptToConvertValue, bind, clearBindings, getBindVariableIterator, getEffectedRowCount, getResultSet, getRowIterator, getRowIterator, getTableForIdentifier, resolveSelectableList, resolveSelectableList, setEffectedRowCount, setResultSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateTableCommand
public CreateTableCommand()
CreateTableCommand
public CreateTableCommand(String tableName)
addChildCommand
public void addChildCommand(AxionCommand cmd)
addColumn
public void addColumn(String name,
String datatypename)
addColumn
public void addColumn(String name,
String datatypename,
Selectable defaultValue)
addColumn
public void addColumn(String name,
String datatypename,
String precision,
String scale,
Selectable defaultValue)
excludeColumn
public void excludeColumn(String colName)
isColumnEexcluded
public boolean isColumnEexcluded(String colName)
execute
public boolean execute(Database db)
throws AxionException
- Description copied from interface:
AxionCommand
- Executes an SQL statement that may return multiple results.
- Specified by:
execute
in interface AxionCommand
- Specified by:
execute
in class CreateCommand
- Throws:
AxionException
getChildCommand
public AxionCommand getChildCommand(int i)
getChildCommandCount
public int getChildCommandCount()
getColumnNames
public List getColumnNames()
getType
public String getType()
setProperties
public void setProperties(Properties prop)
setSourceTable
public void setSourceTable(Table table)
setSubQuery
public void setSubQuery(SubSelectCommand subQuery)
setType
public void setType(String type)