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.17 $ $Date: 2005/05/02 22:24:33 $

Constructor Summary
CreateSequenceCommand()
           
CreateSequenceCommand(java.lang.String sequenceName, int startVal)
           
 
Method Summary
 Sequence createSequence(Database db)
           
 boolean execute(Database db)
          Executes an SQL statement that may return multiple results.
 java.lang.String getIdentityType()
           
 void setCycle(boolean cycle)
           
 void setDataType(java.lang.String typeName)
           
 void setIdentityType(java.lang.String type)
           
 void setIncrementBy(java.lang.String incrementBy)
           
 void setMaxValue(java.lang.String maxValue)
           
 void setMinValue(java.lang.String minValue)
           
 void setStartValue(java.lang.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

CreateSequenceCommand

public CreateSequenceCommand()

CreateSequenceCommand

public CreateSequenceCommand(java.lang.String sequenceName,
                             int startVal)
Method Detail

setStartValue

public void setStartValue(java.lang.String value)

setIncrementBy

public void setIncrementBy(java.lang.String incrementBy)

setMaxValue

public void setMaxValue(java.lang.String maxValue)

setMinValue

public void setMinValue(java.lang.String minValue)

setCycle

public void setCycle(boolean cycle)

setDataType

public void setDataType(java.lang.String typeName)

setIdentityType

public void setIdentityType(java.lang.String type)

getIdentityType

public java.lang.String getIdentityType()

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

createSequence

public Sequence createSequence(Database db)
                        throws AxionException
Throws:
AxionException