Package com.groiss.wf

Class ProcessRelation

All Implemented Interfaces:
KeyValuePair<String,String>, Persistent, Serializable, Cloneable

public class ProcessRelation extends PersistentObject
This class allows the definition of Relations between processes.
See Also:
  • Constructor Details

  • Method Details

    • getTableName

      public String getTableName()
      Description copied from interface: Persistent
      This method must return the table name of the database table in which this persistent object is stored.
      Returns:
      The table name of the database table in which this persistent object is stored.
    • getP1

      public ProcessInstance getP1()
    • getP2

      public ProcessInstance getP2()
    • getReltype

      public String getReltype()
    • getKeys

      public String[][] getKeys()
      Description copied from interface: Persistent
      A class may return key field groups in order to identify already existing objects of that class. A key field group must uniquely identify an object. Multiple such key field groups can be defined. Each of the key field groups must be unique for an object to be unique (thus, group1 matches OR group2 matches etc.).

      The first key field group is occasionally treated in a special manner as the primary business key. E.g. the export import functionality checks for object existence according to just the first key field group.

      If no key field groups can be provided by the implementing class an empty result must be returned - use Persistent.emptyKeys to do so.

      Specified by:
      getKeys in interface Persistent
      Overrides:
      getKeys in class PersistentObject
      Returns:
      An array of arrays containing object field names of those fields which constitute key field groups for uniquely identifying objects of classes implementing this interface. An example would be {{"name", "birthdate"},{"ssn"}} for a class defining two key field groups. The first one contains the fields name and birthdate, the second key field group has just one field ssn.
    • beforeInsert

      public void beforeInsert()
      Description copied from interface: Persistent
      This method is called before the persistent object is inserted into the store.
      Specified by:
      beforeInsert in interface Persistent
      Overrides:
      beforeInsert in class PersistentObject
      See Also:
    • beforeUpdate

      public void beforeUpdate()
      Description copied from interface: Persistent
      This method is called before the persistent object is updated in the store (the existing object in the store will be overwritten with the values of this object).
      Specified by:
      beforeUpdate in interface Persistent
      Overrides:
      beforeUpdate in class PersistentObject
      See Also:
    • isValid

      public void isValid()
      Description copied from class: PersistentObject
      Overwrite this method to check ids, etc. It is called before inserts and updates are performed. The method should throw an ApplicationException or RunTimeException when the object is considered invalid.
      Specified by:
      isValid in interface Persistent
      Overrides:
      isValid in class PersistentObject