Record Class CoreExpressionSqlHelper.MinimalProcessContext

java.lang.Object
java.lang.Record
de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
All Implemented Interfaces:
de.calamanari.adl.ProcessContext
Enclosing class:
CoreExpressionSqlHelper

protected static record CoreExpressionSqlHelper.MinimalProcessContext(Map<String,Serializable> globalVariables, Set<de.calamanari.adl.Flag> globalFlags) extends Record implements de.calamanari.adl.ProcessContext
This avoids that the helper holds a reference to the context while the context knows the helper.
Author:
Karl Eilebrecht
  • Constructor Details

    • MinimalProcessContext

      protected MinimalProcessContext(Map<String,Serializable> globalVariables, Set<de.calamanari.adl.Flag> globalFlags)
      Creates an instance of a MinimalProcessContext record class.
      Parameters:
      globalVariables - the value for the globalVariables record component
      globalFlags - the value for the globalFlags record component
  • Method Details

    • getGlobalVariables

      public Map<String,Serializable> getGlobalVariables()
      Specified by:
      getGlobalVariables in interface de.calamanari.adl.ProcessContext
    • getGlobalFlags

      public Set<de.calamanari.adl.Flag> getGlobalFlags()
      Specified by:
      getGlobalFlags in interface de.calamanari.adl.ProcessContext
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • globalVariables

      public Map<String,Serializable> globalVariables()
      Returns the value of the globalVariables record component.
      Returns:
      the value of the globalVariables record component
    • globalFlags

      public Set<de.calamanari.adl.Flag> globalFlags()
      Returns the value of the globalFlags record component.
      Returns:
      the value of the globalFlags record component