Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.execute
Class RenameConstantAction  view RenameConstantAction download RenameConstantAction.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericConstantAction
      extended byorg.apache.derby.impl.sql.execute.DDLConstantAction
          extended byorg.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
              extended byorg.apache.derby.impl.sql.execute.RenameConstantAction
All Implemented Interfaces:
org.apache.derby.iapi.sql.execute.ConstantAction

class RenameConstantAction
extends DDLSingleTableConstantAction

This class describes actions that are ALWAYS performed for a RENAME TABLE/COLUMN/INDEX Statement at Execution time.


Field Summary
private  java.lang.String fullTableName
           
private  java.lang.String newObjectName
           
private  java.lang.String newTableName
           
private  java.lang.String oldObjectName
           
private  int renamingWhat
           
private  org.apache.derby.catalog.UUID schemaId
           
private  org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd
           
protected  org.apache.derby.catalog.UUID tableId
           
private  java.lang.String tableName
           
private  boolean usedAlterTable
           
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
RenameConstantAction(java.lang.String fullTableName, java.lang.String tableName, java.lang.String oldObjectName, java.lang.String newObjectName, org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd, org.apache.derby.catalog.UUID tableId, boolean usedAlterTable, int renamingWhat)
          Make the ConstantAction for a RENAME TABLE/COLUMN/INDEX statement.
 
Method Summary
private  void execGutsRenameColumn(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.iapi.sql.Activation activation)
           
private  void execGutsRenameIndex(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.iapi.sql.Activation activation)
           
private  void execGutsRenameTable(org.apache.derby.iapi.sql.dictionary.TableDescriptor td, org.apache.derby.iapi.sql.Activation activation)
           
 void executeConstantAction(org.apache.derby.iapi.sql.Activation activation)
          The guts of the Execution-time logic for RENAME TABLE/COLUMN/INDEX.
 java.lang.String getTableName()
           
 boolean modifiesTableId(org.apache.derby.catalog.UUID tableId)
          Does this constant action modify the passed in table uuid? By modify we mean add or drop things tied to this table (e.g.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, readExternal, upToDate, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fullTableName

private java.lang.String fullTableName

tableName

private java.lang.String tableName

newTableName

private java.lang.String newTableName

oldObjectName

private java.lang.String oldObjectName

newObjectName

private java.lang.String newObjectName

schemaId

private org.apache.derby.catalog.UUID schemaId

sd

private org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd

usedAlterTable

private boolean usedAlterTable

renamingWhat

private int renamingWhat

tableId

protected org.apache.derby.catalog.UUID tableId
Constructor Detail

RenameConstantAction

public RenameConstantAction(java.lang.String fullTableName,
                            java.lang.String tableName,
                            java.lang.String oldObjectName,
                            java.lang.String newObjectName,
                            org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd,
                            org.apache.derby.catalog.UUID tableId,
                            boolean usedAlterTable,
                            int renamingWhat)
Make the ConstantAction for a RENAME TABLE/COLUMN/INDEX statement.

Method Detail

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


executeConstantAction

public void executeConstantAction(org.apache.derby.iapi.sql.Activation activation)
                           throws org.apache.derby.iapi.error.StandardException
The guts of the Execution-time logic for RENAME TABLE/COLUMN/INDEX.


execGutsRenameTable

private void execGutsRenameTable(org.apache.derby.iapi.sql.dictionary.TableDescriptor td,
                                 org.apache.derby.iapi.sql.Activation activation)
                          throws org.apache.derby.iapi.error.StandardException

execGutsRenameColumn

private void execGutsRenameColumn(org.apache.derby.iapi.sql.dictionary.TableDescriptor td,
                                  org.apache.derby.iapi.sql.Activation activation)
                           throws org.apache.derby.iapi.error.StandardException

execGutsRenameIndex

private void execGutsRenameIndex(org.apache.derby.iapi.sql.dictionary.TableDescriptor td,
                                 org.apache.derby.iapi.sql.Activation activation)
                          throws org.apache.derby.iapi.error.StandardException

getTableName

public java.lang.String getTableName()

modifiesTableId

public boolean modifiesTableId(org.apache.derby.catalog.UUID tableId)
Does this constant action modify the passed in table uuid? By modify we mean add or drop things tied to this table (e.g. index, trigger, constraint). Things like views or spses that reference this table don't count.

Specified by:
modifiesTableId in interface org.apache.derby.iapi.sql.execute.ConstantAction
Overrides:
modifiesTableId in class DDLConstantAction