E
- parent data object (the object being the subject of the autolink)F
- autolinkobject the object used as autolinkpublic class Hasautolink<E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F> & AutolinkobjectInterface<F,E>> extends DataObjectProperty<E>
updatedfieldingui
field, parentpayload
Constructor and Description |
---|
Hasautolink(HasautolinkDefinition<E,F> definition,
DataObjectPayload parentpayload)
Creates a new 'Has Autolink' property on the data obejct
|
Modifier and Type | Method and Description |
---|---|
TwoDataObjects<F,E>[] |
getautolinksandchildren(E object,
QueryFilter additionalquerycondition)
gets all the auto-links that have this object as left object
|
void |
postprocUniqueidentifiedDelete(E object)
after delete of the main object, all auto-links related to this object are
deleted
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F> & AutolinkobjectInterface<F,E>> |
postprocUniqueidentifiedDelete(E[] objectbatch,
Hasautolink<E,F>[] autolinkbatch)
massive version of the post-treatment after delete
|
void |
preprocUniqueidentifiedDelete(E object)
checks if the object can be deleted considering its autolink.
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F> & AutolinkobjectInterface<F,E>> |
preprocUniqueidentifiedDelete(E[] objectbatch,
Hasautolink<E,F>[] autolinkbatch)
massive version of the pre-treatment before delete
|
void |
preprocUniqueidentifiedUpdate(E object)
when updating the object, it is checked if constraints on the link are still
valid.
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F> & AutolinkobjectInterface<F,E>> |
preprocUniqueidentifiedUpdate(E[] object,
Hasautolink<E,F>[] hasautolink)
massive version of the pre-processing of the update of the object
|
void |
setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
sets the dependent property unique identified
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Hasautolink(HasautolinkDefinition<E,F> definition, DataObjectPayload parentpayload)
definition
- definitonparentpayload
- payload of the parent data objectpublic void preprocUniqueidentifiedDelete(E object)
public void postprocUniqueidentifiedDelete(E object)
object
- data object being deletedpublic void setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
uniqueidentified
- dependent property unique identifiedpublic TwoDataObjects<F,E>[] getautolinksandchildren(E object, QueryFilter additionalquerycondition)
object
- data object (left object)additionalquerycondition
- additional filter conditionpublic void preprocUniqueidentifiedUpdate(E object)
object
- parent data objectpublic static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F> & AutolinkobjectInterface<F,E>> void preprocUniqueidentifiedUpdate(E[] object, Hasautolink<E,F>[] hasautolink)
object
- parent data object batchhasautolink
- corresponding parent HasAutolink propertypublic static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F> & AutolinkobjectInterface<F,E>> void preprocUniqueidentifiedDelete(E[] objectbatch, Hasautolink<E,F>[] autolinkbatch)
objectbatch
- parent data object batchautolinkbatch
- corresponding hasautolink property batchpublic static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F> & AutolinkobjectInterface<F,E>> void postprocUniqueidentifiedDelete(E[] objectbatch, Hasautolink<E,F>[] autolinkbatch)
objectbatch
- parent data object batchautolinkbatch
- corresponding hasautolink property batch