org.axiondb.engine.commands
Class AlterSequenceCommand

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

public class AlterSequenceCommand
extends CreateCommand

A ALTER SEQUENCE command. NOTE: One can't change DataType as per ANSI 2003 spec.

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

Constructor Summary
AlterSequenceCommand()
           
 
Method Summary
 boolean execute(Database db)
          Executes an SQL statement that may return multiple results.
 void setCycle(boolean cycle)
           
 void setIncrementBy(String incrementBy)
           
 void setMaxValue(String maxValue)
           
 void setMinValue(String minValue)
           
 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
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

AlterSequenceCommand

public AlterSequenceCommand()
Method Detail

setStartValue

public void setStartValue(String value)

setIncrementBy

public void setIncrementBy(String incrementBy)

setMaxValue

public void setMaxValue(String maxValue)

setMinValue

public void setMinValue(String minValue)

setCycle

public void setCycle(boolean cycle)

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