E
- the parent data objectF
- the child data objectpublic class Linkedfromchildren<E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Linkedfromchildren(LinkedfromchildrenDefinition<E,F> definition,
DataObjectPayload parentpayload,
DataObjectDefinition<F> childrendefinition)
creates the property linked from children
|
Modifier and Type | Method and Description |
---|---|
static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F>> |
getallchildren(E[] object,
QueryFilter additionalcondition,
Linkedfromchildren<E,F>[] linkedfromchildren)
a massive version of get all children
|
F[] |
getallchildren(E object,
QueryFilter additionalquerycondition)
gets all the children for the current data object
|
Uniqueidentified<E> |
getUniqueIdentified()
gets the dependent property unique identified
|
void |
preprocUniqueidentifiedDelete(E object)
before deleting this object, checks if it has children.
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F>> |
preprocUniqueidentifiedDelete(E[] object,
Linkedfromchildren<E,F>[] linkedfromchildren)
Massive version of check before deleting 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 Linkedfromchildren(LinkedfromchildrenDefinition<E,F> definition, DataObjectPayload parentpayload, DataObjectDefinition<F> childrendefinition)
definition
- definition of the linked from children propertyparentpayload
- payload of the parent data objectchildrendefinition
- definition of the child data objectpublic Uniqueidentified<E> getUniqueIdentified()
public F[] getallchildren(E object, QueryFilter additionalquerycondition)
object
- current data objectadditionalquerycondition
- additional query condition (can be null if no
filter)public void preprocUniqueidentifiedDelete(E object)
object
- the current objectpublic void setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
uniqueidentified
- dependent property unique identifiedpublic static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F>> void preprocUniqueidentifiedDelete(E[] object, Linkedfromchildren<E,F>[] linkedfromchildren)
object
- the list of objectslinkedfromchildren
- the list of linked from children propertiespublic static <E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F>> F[] getallchildren(E[] object, QueryFilter additionalcondition, Linkedfromchildren<E,F>[] linkedfromchildren)
object
- array of objectsadditionalcondition
- additional query conditionlinkedfromchildren
- array of linked from children properties (in the
same order as the object array)