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.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean_cycleprivate DataTypeDescriptor_dataTypeprivate long_initialValueprivate long_maxValueprivate long_minValueprivate java.lang.String_schemaNameprivate java.lang.String_sequenceNameprivate long_stepValue-
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteConstantAction(Activation activation)This is the guts of the Execution-time logic for CREATE SEQUENCE.java.lang.StringtoString()-
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
-
-
-
-
Field Detail
-
_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
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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:
toStringin classjava.lang.Object
-
-