Class ConstantActionActivation

  • All Implemented Interfaces:
    Dependable, GeneratedByteCode, Activation, Dependent, CursorActivation

    public final class ConstantActionActivation
    extends BaseActivation
    A pre-compiled activation that supports a single ResultSet with a single constant action. All the execution logic is contained in the constant action.

    At compile time for DDL statements this class will be picked as the implementation of Activation. The language PreparedStatement will contain the ConstantAction created at compiled time. At execute time this class then fetches a language ResultSet using ResultSetFactory.getDDLResultSet and executing the ResultSet will invoke the execute on the ConstantAction.

    • Constructor Detail

      • ConstantActionActivation

        public ConstantActionActivation()
    • Method Detail

      • shouldWeCheckRowCounts

        protected boolean shouldWeCheckRowCounts()
        Always return false since constant actions don't need recompilation when the row counts change.
        Overrides:
        shouldWeCheckRowCounts in class BaseActivation
        Returns:
        true if the row counts should be checked, false otherwise
      • postConstructor

        public void postConstructor()
        Description copied from interface: GeneratedByteCode
        Called by the class manager just after calling setGC().