org.axiondb.engine.commands
Class CreateTableCommand

java.lang.Object
  extended by org.axiondb.engine.commands.BaseAxionCommand
      extended by org.axiondb.engine.commands.CreateCommand
          extended by 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 $

Constructor Summary
CreateTableCommand()
           
CreateTableCommand(String tableName)
           
 
Method Summary
 void addChildCommand(AxionCommand cmd)
           
 void addColumn(String name, String datatypename)
           
 void addColumn(String name, String datatypename, Selectable defaultValue)
           
 void addColumn(String name, String datatypename, String precision, String scale, Selectable defaultValue)
           
 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 setProperties(Properties prop)
           
 void setSourceTable(Table table)
           
 void setSubQuery(SubSelectCommand subQuery)
           
 void setType(String type)
           
 
Methods inherited from class org.axiondb.engine.commands.CreateCommand
executeQuery, executeUpdate, getObjectName, isIfNotExists, setIfNotExists, setObjectName
 
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
 

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,
                      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
Returns:
true if one or more ResultSets 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)