org.apache.derby.iapi.sql.execute
Interface ConstantAction

All Known Subinterfaces:
KeyToBaseRowConstantAction
All Known Implementing Classes:
GenericConstantAction, WriteCursorConstantAction

public interface ConstantAction

This interface describes actions that are ALWAYS performed for a Statement at Execution time. For instance, it is used for DDL statements to describe what they should stuff into the catalogs.

An object satisfying this interface is put into the PreparedStatement and run at Execution time.

Author:
Rick Hillegas

Field Summary
static int RUNTIMESTATISTICS
           
static int STATISTICSTIMING
           
 
Method Summary
 void executeConstantAction(Activation activation)
          Run the ConstantAction.
 boolean modifiesTableId(UUID tableId)
          Does this constant action modify the passed in table uuid?
 boolean upToDate()
          Reports whether these constants are up-to-date.
 

Field Detail

STATISTICSTIMING

public static final int STATISTICSTIMING
See Also:
Constant Field Values

RUNTIMESTATISTICS

public static final int RUNTIMESTATISTICS
See Also:
Constant Field Values
Method Detail

executeConstantAction

public void executeConstantAction(Activation activation)
                           throws StandardException
Run the ConstantAction.

Parameters:
activation - The execution environment for this constant action.
Throws:
StandardException - Thrown on failure

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.

Parameters:
tableId - the other table id
Throws:
StandardException - on error

upToDate

public 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;

Returns:
true if these constants are up-to-date false otherwise
Throws:
StandardException


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