class CreateSequenceConstantAction extends DDLConstantAction
Modifier and Type | Field and Description |
---|---|
private boolean |
_cycle |
private DataTypeDescriptor |
_dataType |
private long |
_initialValue |
private long |
_maxValue |
private long |
_minValue |
private java.lang.String |
_schemaName |
private java.lang.String |
_sequenceName |
private long |
_stepValue |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
executeConstantAction(Activation activation)
This is the guts of the Execution-time logic for CREATE SEQUENCE.
|
java.lang.String |
toString() |
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
private java.lang.String _sequenceName
private java.lang.String _schemaName
private DataTypeDescriptor _dataType
private long _initialValue
private long _stepValue
private long _maxValue
private long _minValue
private boolean _cycle
public CreateSequenceConstantAction(java.lang.String schemaName, java.lang.String sequenceName, DataTypeDescriptor dataType, long initialValue, long stepValue, long maxValue, long minValue, boolean cycle)
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 otherwisepublic void executeConstantAction(Activation activation) throws StandardException
activation
- The execution environment for this constant action.StandardException
- Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.