public class ProcessRelation extends PersistentObject
Modifier and Type | Field and Description |
---|---|
static String[][] |
keys |
filled, oid
emptyKeys
Constructor and Description |
---|
ProcessRelation() |
ProcessRelation(ProcessInstance p1,
ProcessInstance p2,
String reltype) |
Modifier and Type | Method and Description |
---|---|
void |
beforeInsert()
This method is called before the persistent object is inserted into
the store.
|
void |
beforeUpdate()
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.
|
ProcessInstance |
getP1() |
ProcessInstance |
getP2() |
String |
getReltype() |
String |
getTableName()
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.
|
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, clone, dbFields, equals, getKey, getLocalClassName, getLocalObjectName, getOid, getStore, getValue, hashCode, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setOid, setStore, toListString
public static final String[][] keys
public ProcessRelation()
public ProcessRelation(ProcessInstance p1, ProcessInstance p2, String reltype)
public String getTableName()
Persistent
public ProcessInstance getP1()
public ProcessInstance getP2()
public String getReltype()
public String[][] getKeys()
Persistent
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.
getKeys
in interface Persistent
getKeys
in class PersistentObject
{{"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
.public void beforeInsert()
Persistent
beforeInsert
in interface Persistent
beforeInsert
in class PersistentObject
Persistent.beforeInsert()
public void beforeUpdate()
Persistent
beforeUpdate
in interface Persistent
beforeUpdate
in class PersistentObject
Persistent.beforeUpdate()
public void isValid()
PersistentObject
isValid
in interface Persistent
isValid
in class PersistentObject
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.