E
- sub objectF
- parent of the subobjectpublic class Iteratedsubobject<E extends DataObject<E> & UniqueidentifiedInterface<E> & IteratedsubobjectInterface<E,F>,F extends DataObject<F> & IteratedInterface<F>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Iteratedsubobject(IteratedsubobjectDefinition<E,F> definition,
DataObjectPayload parentpayload)
create the iterated sub-object property
|
Modifier and Type | Method and Description |
---|---|
void |
archivethisiteration(E object,
java.lang.Integer leftobjectolditer)
archive the current sub object
|
void |
commonpreprocForDeleteAndUpdate(DataObjectDefinition<E> definition,
E object,
java.lang.String updatetype)
common procedure for delete and update of the data-object
|
static <E extends DataObject<E> & IteratedsubobjectInterface<E,F> & UniqueidentifiedInterface<E>,F extends DataObject<F> & IteratedInterface<F>> |
generateMassiveUpdateNote(Iteratedsubobject<E,F>[] preprociteratedlinkbatch,
E[] objectbatch,
java.lang.String action)
generates update note in a way optimized for batch treatment
|
java.lang.String |
generateUpdateNote(E object,
java.lang.String action)
generates the best update note possible for the left object when subobject is
created, updated or deleted
|
java.lang.Integer |
getPrfirstiter()
get the first iteration of the parent on which the current data object
(subobject) is valid
|
java.lang.Integer |
getPrlastiter()
get the last iteration of the parent on which the current data object
(subobject) is valid
|
void |
preprocStoredobjectInsert(E object)
pre-processing for the data object insertion.
|
static <E extends DataObject<E> & IteratedsubobjectInterface<E,F> & UniqueidentifiedInterface<E>,F extends DataObject<F> & IteratedInterface<F>> |
preprocStoredobjectInsert(E[] objectbatch,
Iteratedsubobject<E,F>[] preprociteratedlinkbatch)
massive version of the pre-processing for insert
|
void |
preprocUniqueidentifiedDelete(DataObjectDefinition<E> definition,
E object)
pre-processing for delete object.
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E> & IteratedsubobjectInterface<E,F>,F extends DataObject<F> & IteratedInterface<F>> |
preprocUniqueidentifiedDelete(DataObjectDefinition<E> definition,
E[] objectbatch,
Iteratedsubobject<E,F>[] iteratedsubobjectbatch)
massive version of the pre-processing for delete object
|
void |
preprocUniqueidentifiedUpdate(DataObjectDefinition<E> definition,
E object)
pre-processing for the update object.
|
static <E extends DataObject<E> & IteratedsubobjectInterface<E,F> & UniqueidentifiedInterface<E>,F extends DataObject<F> & IteratedInterface<F>> |
preprocUniqueidentifiedUpdate(DataObjectDefinition<E> definition,
E[] objectbatch,
Iteratedsubobject<E,F>[] preprociteratedlinkbatch)
massive version of the pre-processing for update
|
void |
setDependentPropertyLinkedtoparent(Linkedtoparent<E,F> linkedtoparent)
sets the dependent property linked to parent
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Iteratedsubobject(IteratedsubobjectDefinition<E,F> definition, DataObjectPayload parentpayload)
definition
- definition of the propertyparentpayload
- payload of the parent data objectpublic java.lang.Integer getPrfirstiter()
public java.lang.Integer getPrlastiter()
public java.lang.String generateUpdateNote(E object, java.lang.String action)
object
- data objectaction
- type of action (will be put in the comment)public void preprocStoredobjectInsert(E object)
object
- data object being insertedpublic void commonpreprocForDeleteAndUpdate(DataObjectDefinition<E> definition, E object, java.lang.String updatetype)
definition
- definition of the data objectobject
- data objectupdatetype
- type of update (update or delete): plain text for loggingpublic void preprocUniqueidentifiedDelete(DataObjectDefinition<E> definition, E object)
definition
- definition of the data objectobject
- data objectpublic static <E extends DataObject<E> & UniqueidentifiedInterface<E> & IteratedsubobjectInterface<E,F>,F extends DataObject<F> & IteratedInterface<F>> void preprocUniqueidentifiedDelete(DataObjectDefinition<E> definition, E[] objectbatch, Iteratedsubobject<E,F>[] iteratedsubobjectbatch)
definition
- definition of the data objectobjectbatch
- batch of data objectiteratedsubobjectbatch
- corresponding batch of the iterated sub object
propertypublic void preprocUniqueidentifiedUpdate(DataObjectDefinition<E> definition, E object)
definition
- definition of the data objectobject
- data objectpublic void setDependentPropertyLinkedtoparent(Linkedtoparent<E,F> linkedtoparent)
linkedtoparent
- linked to parent propertypublic void archivethisiteration(E object, java.lang.Integer leftobjectolditer)
object
- data objectleftobjectolditer
- last iteration of the parent data object for which
this subobject is validpublic static <E extends DataObject<E> & IteratedsubobjectInterface<E,F> & UniqueidentifiedInterface<E>,F extends DataObject<F> & IteratedInterface<F>> void preprocUniqueidentifiedUpdate(DataObjectDefinition<E> definition, E[] objectbatch, Iteratedsubobject<E,F>[] preprociteratedlinkbatch)
definition
- definition of the data objectobjectbatch
- batch of data objectpreprociteratedlinkbatch
- corresponding batch of iterated subobject
propertiespublic static <E extends DataObject<E> & IteratedsubobjectInterface<E,F> & UniqueidentifiedInterface<E>,F extends DataObject<F> & IteratedInterface<F>> void preprocStoredobjectInsert(E[] objectbatch, Iteratedsubobject<E,F>[] preprociteratedlinkbatch)
objectbatch
- batch of objectspreprociteratedlinkbatch
- corresponding batch of iterated subobject
propertiespublic static <E extends DataObject<E> & IteratedsubobjectInterface<E,F> & UniqueidentifiedInterface<E>,F extends DataObject<F> & IteratedInterface<F>> java.lang.String[] generateMassiveUpdateNote(Iteratedsubobject<E,F>[] preprociteratedlinkbatch, E[] objectbatch, java.lang.String action)
preprociteratedlinkbatch
- batch of iterated subobject propertiesobjectbatch
- corresponding batch of data objectsaction
- the action to reference in the update note