org.apache.derby.impl.sql.execute
Class CreateSequenceConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.CreateSequenceConstantAction
- All Implemented Interfaces:
- ConstantAction
class CreateSequenceConstantAction
- extends DDLConstantAction
This class performs actions that are ALWAYS performed for a
CREATE SEQUENCE statement at execution time.
These SQL objects are stored in the SYS.SYSSEQUENCES table.
Constructor Summary |
CreateSequenceConstantAction(java.lang.String schemaName,
java.lang.String sequenceName,
DataTypeDescriptor dataType,
long initialValue,
long stepValue,
long maxValue,
long minValue,
boolean cycle)
Make the ConstantAction for a CREATE SEQUENCE statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_sequenceName
private java.lang.String _sequenceName
_schemaName
private java.lang.String _schemaName
_dataType
private DataTypeDescriptor _dataType
_initialValue
private long _initialValue
_stepValue
private long _stepValue
_maxValue
private long _maxValue
_minValue
private long _minValue
_cycle
private boolean _cycle
CreateSequenceConstantAction
public CreateSequenceConstantAction(java.lang.String schemaName,
java.lang.String sequenceName,
DataTypeDescriptor dataType,
long initialValue,
long stepValue,
long maxValue,
long minValue,
boolean cycle)
- Make the ConstantAction for a CREATE SEQUENCE statement.
When executed, will create a sequence by the given name.
- Parameters:
sequenceName
- The name of the sequence being createddataType
- Exact numeric type of the new sequenceinitialValue
- Starting valuestepValue
- Increment amountmaxValue
- Largest value returned by the sequence generatorminValue
- Smallest value returned by the sequence generatorcycle
- True if the generator should wrap around, false otherwise
executeConstantAction
public void executeConstantAction(Activation activation)
throws StandardException
- This is the guts of the Execution-time logic for CREATE SEQUENCE.
- Parameters:
activation
- The execution environment for this constant action.
- Throws:
StandardException
- Thrown on failure- See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.