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.42 $ $Date: 2005/12/20 18:32:28 $
Method Summary |
void |
addChildCommand(AxionCommand cmd)
|
void |
addColumn(String name,
String datatypename)
|
void |
addColumn(String name,
String datatypename,
String precision)
|
void |
addColumn(String name,
String datatypename,
String precision,
String scale,
Object defaultValue)
|
void |
addColumn(String name,
String datatypename,
String precision,
String scale,
Object defaultValue,
String generated)
|
void |
alterColumn(String name,
String newName,
Selectable newDefault,
Boolean dropDefault)
|
void |
excludeColumn(String colName)
|
boolean |
execute(Database db)
Executes an SQL statement that may return multiple results. |
AxionCommand |
getChildCommand(int i)
|
int |
getChildCommandCount()
|
List |
getColumnNames()
|
String |
getType()
|
boolean |
isColumnEexcluded(String colName)
|
void |
setCreateTableWithData(boolean createTableWithData)
|
void |
setProperties(Properties prop)
|
void |
setSourceTable(Table table)
|
void |
setSubQuery(SubSelectCommand subQuery)
|
void |
setType(String type)
|
Methods inherited from class org.axiondb.engine.commands.BaseAxionCommand |
assertNotReadOnly, attemptToConvertValue, bindAll, buildBindVariables, clearBindings, createResolveSelectableVisitor, executeQuery, getBindVariableIterator, getBindVariableIterator, getBindVariables, getBindVariableVisitor, getColIdentifierList, getCommitSize, getEffectedRowCount, getResultSet, getRowIterator, makeRowDecorator, populateDefaultValues, populateSequenceColumns, resolveGeneratedColumns, resolveGeneratedColumns, resolveSelectable, resolveSelectable, resolveSelectableList, resolveSelectableList, setBindVariableVisitor, setDeferAllConstraintIfRequired, setEffectedRowCount, setResultSet, updateGeneratedValues |
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,
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)
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
- Returns:
- true if one or more
ResultSet
s were generated,
false otherwise
- Throws:
AxionException
- See Also:
Statement.execute(java.lang.String)
,
PreparedStatement.execute()
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)
setCreateTableWithData
public void setCreateTableWithData(boolean createTableWithData)