Package com.groiss.wf
Class ProcessRelation
java.lang.Object
com.groiss.store.PersistentObject
com.groiss.wf.ProcessRelation
- All Implemented Interfaces:
KeyValuePair<String,
,String> Persistent
,Serializable
,Cloneable
This class allows the definition of Relations between processes.
- See Also:
-
Field Summary
Fields inherited from class com.groiss.store.PersistentObject
filled, oid
Fields inherited from interface com.groiss.store.Persistent
emptyKeys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called before the persistent object is inserted into the store.void
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).String[][]
getKeys()
A class may return key field groups in order to identify already existing objects of that class.getP1()
getP2()
This method must return the table name of the database table in which this persistent object is stored.void
isValid()
Overwrite this method to check ids, etc.Methods inherited from class com.groiss.store.PersistentObject
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, clone, dbFields, equals, getKey, getLocalClassName, getLocalObjectName, getOid, getValue, hashCode, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setOid, toListString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.groiss.store.Persistent
getStore
-
Constructor Details
-
ProcessRelation
public ProcessRelation() -
ProcessRelation
-
-
Method Details
-
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
-
getP2
-
getReltype
-
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 interfacePersistent
- Overrides:
getKeys
in classPersistentObject
- 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 fieldsname
andbirthdate
, the second key field group has just one fieldssn
.
-
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 interfacePersistent
- Overrides:
beforeInsert
in classPersistentObject
- 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 interfacePersistent
- Overrides:
beforeUpdate
in classPersistentObject
- 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 interfacePersistent
- Overrides:
isValid
in classPersistentObject
-