org.apache.derby.impl.sql.execute
Class SetSchemaConstantAction

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericConstantAction
      extended byorg.apache.derby.impl.sql.execute.SetSchemaConstantAction
All Implemented Interfaces:
ConstantAction

class SetSchemaConstantAction
extends GenericConstantAction

This class describes actions that are ALWAYS performed for a SET SCHEMA Statement at Execution time.

Author:
jamie

Field Summary
private  java.lang.String schemaName
           
private  int type
           
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
(package private) SetSchemaConstantAction(java.lang.String schemaName, int type)
          Make the ConstantAction for a SET SCHEMA statement.
 
Method Summary
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for CREATE SCHEMA.
 boolean modifiesTableId(UUID tableId)
          Does this constant action modify the passed in table uuid?
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
           
 boolean upToDate()
          Reports whether these constants are up-to-date.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

schemaName

private final java.lang.String schemaName

type

private final int type
Constructor Detail

SetSchemaConstantAction

SetSchemaConstantAction(java.lang.String schemaName,
                        int type)
Make the ConstantAction for a SET SCHEMA statement.

Parameters:
schemaName - Name of schema.
type - type of set schema (e.g. SET_SCHEMA_DYNAMIC, SET_SCHEMA_USER)
Method Detail

toString

public java.lang.String toString()

executeConstantAction

public void executeConstantAction(Activation activation)
                           throws StandardException
This is the guts of the Execution-time logic for CREATE SCHEMA.

Parameters:
activation - The execution environment for this constant action.
Throws:
StandardException - Thrown on failure
See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)

modifiesTableId

public boolean modifiesTableId(UUID tableId)
                        throws StandardException
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 ConstantAction
Parameters:
tableId - the other table id
Throws:
StandardException - thrown on failure

readExternal

public final void readExternal(java.io.ObjectInput in)

writeExternal

public final void writeExternal(java.io.ObjectOutput out)

upToDate

public final boolean upToDate()
                       throws StandardException
Reports whether these constants are up-to-date. This returns true for homogenous Cloudscape/Cloudsync. For the Plugin, this may return false;

Specified by:
upToDate in interface ConstantAction
Returns:
true if these constants are up-to-date false otherwise
Throws:
StandardException

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.