org.axiondb.engine.commands
Class CreateSequenceCommand

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

public class CreateSequenceCommand
extends CreateCommand

A CREATE SEQUENCE command.

Version:
$Revision: 1.12 $ $Date: 2003/10/24 00:01:23 $

Constructor Summary
CreateSequenceCommand()
           
CreateSequenceCommand(String sequenceName)
           
CreateSequenceCommand(String sequenceName, int startVal)
           
 
Method Summary
 boolean execute(Database db)
          Executes an SQL statement that may return multiple results.
 int getStartValue()
           
 void setStartValue(int value)
           
 void setStartValue(String value)
           
 
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

CreateSequenceCommand

public CreateSequenceCommand()

CreateSequenceCommand

public CreateSequenceCommand(String sequenceName)

CreateSequenceCommand

public CreateSequenceCommand(String sequenceName,
                             int startVal)
Method Detail

setStartValue

public void setStartValue(String value)

setStartValue

public void setStartValue(int value)

getStartValue

public int getStartValue()

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