org.axiondb.engine.commands
Class CreateSequenceCommand
java.lang.Object
org.axiondb.engine.commands.BaseAxionCommand
org.axiondb.engine.commands.CreateCommand
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 $
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 |
CreateSequenceCommand
public CreateSequenceCommand()
CreateSequenceCommand
public CreateSequenceCommand(java.lang.String sequenceName,
int startVal)
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
ResultSet
s 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