Class CpoFunctionGroup

All Implemented Interfaces:
Serializable, Comparable<CpoFunctionGroup>

public class CpoFunctionGroup extends CpoFunctionGroupBean implements Comparable<CpoFunctionGroup>
Runtime metadata for a named group of CpoFunctions that together implement one CRUD operation (e.g. all the INSERT functions named "cpo_default") for a CpoClass.
Author:
dberry
See Also:
  • Constructor Details

    • CpoFunctionGroup

      public CpoFunctionGroup()
      Creates an empty instance.
  • Method Details

    • getFunctions

      public List<CpoFunction> getFunctions()
      Gets the functions in this group.
      Returns:
      the functions in this group
    • addFunction

      public void addFunction(CpoFunction function)
      Appends a function to this group. A no-op if function is null.
      Parameters:
      function - the function to add
    • removeFunction

      public boolean removeFunction(CpoFunction function)
      Removes a function from this group.
      Parameters:
      function - the function to remove
      Returns:
      true if the function was found and removed, false otherwise
    • clearFunctions

      public void clearFunctions()
      Removes all functions from this group.
    • toString

      public String toString()

      Returns this group's type and name.

      Overrides:
      toString in class CpoFunctionGroupBean
    • toStringFull

      public String toStringFull()
      Gets the full field-by-field string representation of this function group, as produced by CpoFunctionGroupBean.toString().
      Returns:
      the full string representation
    • compareTo

      public int compareTo(CpoFunctionGroup fg)

      Orders function groups by their toString() representation (type, then name).

      Specified by:
      compareTo in interface Comparable<CpoFunctionGroup>