org.axiondb.engine.commands
Class CreateIndexCommand

java.lang.Object
  extended by org.axiondb.engine.commands.BaseAxionCommand
      extended by org.axiondb.engine.commands.CreateCommand
          extended by org.axiondb.engine.commands.CreateIndexCommand
All Implemented Interfaces:
AxionCommand

public class CreateIndexCommand
extends CreateCommand

A CREATE [UNIQUE] [TYPE] INDEX command.

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

Constructor Summary
CreateIndexCommand()
           
 
Method Summary
 void addColumn(ColumnIdentifier col)
           
 void addColumn(String name)
           
 boolean execute(Database db)
          Executes an SQL statement that may return multiple results.
 ColumnIdentifier getColumn(int i)
           
 int getColumnCount()
           
 TableIdentifier getTable()
           
 String getType()
           
 boolean isUnique()
           
 void setTable(String tableName)
           
 void setTable(TableIdentifier table)
           
 void setType(String type)
           
 void setUnique(boolean unique)
           
 
Methods inherited from class org.axiondb.engine.commands.CreateCommand
executeQuery, executeUpdate, getObjectName, isIfNotExists, setIfNotExists, setObjectName
 
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
 

Constructor Detail

CreateIndexCommand

public CreateIndexCommand()
Method Detail

getTable

public TableIdentifier getTable()

setTable

public void setTable(TableIdentifier table)

setTable

public void setTable(String tableName)

addColumn

public void addColumn(String name)

addColumn

public void addColumn(ColumnIdentifier col)

getColumn

public ColumnIdentifier getColumn(int i)

getColumnCount

public int getColumnCount()

setUnique

public void setUnique(boolean unique)

isUnique

public boolean isUnique()

setType

public void setType(String type)

getType

public String getType()

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()