Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class DropTableConstantAction

extends DDLSingleTableConstantAction
Class Inheritance
Imports
org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.StatementType, .Activation, org.apache.derby.iapi.sql.dictionary.ColumnDescriptor, .ColumnDescriptorList, .ConglomerateDescriptor, .ConstraintDescriptor, .ConstraintDescriptorList, .DataDictionary, .DefaultDescriptor, .TriggerDescriptorList, .ReferencedKeyConstraintDescriptor, .SchemaDescriptor, .TableDescriptor, .TriggerDescriptor, org.apache.derby.iapi.sql.depend.DependencyManager, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.catalog.UUID, java.util.Iterator

This class describes actions that are ALWAYS performed for a DROP TABLE Statement at Execution time.

Field Summary

Modifier and TypeField and Description
private final boolean
private final long
private final String
private final SchemaDescriptor
private final String
Inherited from org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction:
tableId

Constructor Summary

AccessConstructor and Description
pack-priv
DropTableConstantAction(String
Fully qualified table name
fullTableName
,
String
Table name.
tableName
,
SchemaDescriptor
Schema that table lives in.
sd
,
long
Conglomerate number for heap
conglomerateNumber
,
UUID
UUID for table
tableId
,
int
drop behavior: RESTRICT, CASCADE or default
behavior
)

Make the ConstantAction for a DROP TABLE statement.

Method Summary

Modifier and TypeMethod and Description
private void
public static void
dropIdentitySequence(DataDictionary dataDictionary, TableDescriptor tableDescriptor, Activation activation)

Drop the sequence generator backing an identity column

public void
executeConstantAction(Activation
The execution environment for this constant action.
activation
)

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for DROP TABLE.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction:
dropConglomeratedropConglomeratedropConstraintdropConstraintdropConstraintexecuteConglomReplacementgetConglomReplacementActionrecreateUniqueConstraintBackingIndexAsUniqueWhenNotNull

Field Detail

cascadeback to summary
private final boolean cascade
conglomerateNumberback to summary
private final long conglomerateNumber
fullTableNameback to summary
private final String fullTableName
sdback to summary
private final SchemaDescriptor sd
tableNameback to summary
private final String tableName

Constructor Detail

DropTableConstantActionback to summary
pack-priv DropTableConstantAction(String fullTableName, String tableName, SchemaDescriptor sd, long conglomerateNumber, UUID tableId, int behavior)

Make the ConstantAction for a DROP TABLE statement.

Parameters
fullTableName:String

Fully qualified table name

tableName:String

Table name.

sd:SchemaDescriptor

Schema that table lives in.

conglomerateNumber:long

Conglomerate number for heap

tableId:UUID

UUID for table

behavior:int

drop behavior: RESTRICT, CASCADE or default

Method Detail

dropAllConstraintDescriptorsback to summary
private void dropAllConstraintDescriptors(TableDescriptor td, Activation activation) throws StandardException
dropIdentitySequenceback to summary
public static void dropIdentitySequence(DataDictionary dataDictionary, TableDescriptor tableDescriptor, Activation activation) throws StandardException

Drop the sequence generator backing an identity column

executeConstantActionback to summary
public void executeConstantAction(Activation activation) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for DROP TABLE.

Parameters
activation:Activation

Doc from org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

The execution environment for this constant action.

Exceptions
StandardException:
Thrown on failure
See Also
ConstantAction#executeConstantAction
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object