E
- public class Iterated<E extends DataObject<E> & UniqueidentifiedInterface<E> & IteratedInterface<E>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Iterated(DataObjectPropertyDefinition<E> definition,
DataObjectPayload parentpayload) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
archivethisiteration(E object)
archives the current iteration
|
java.lang.String |
getblankupdatenote(E object)
gets a blank update note (zero-length string)
|
java.lang.Integer |
getIteration()
gets the iteration number.
|
java.lang.String |
getLatest()
get the latest flag (value 'Y' is iteration is the latest, the one ot be used
for common purpose)
|
java.lang.String |
getUpdatenote()
gets the update note for the iteration.
|
void |
preprocStoredobjectInsert(E object)
initiates the property for a new object, put iteration to 1, and latest to Y
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E> & IteratedInterface<E>> |
preprocStoredobjectInsert(E[] object,
Iterated<E>[] preprociteratedbatch)
massive treatement for initiating the property for a new object
|
void |
preprocUniqueidentifiedUpdate(DataObjectDefinition<E> definition,
E object)
when updating, performs the following:
marks the current iteration as non-latest
creates a new iteration (copy of object)
puts the iteration as latest with new iteration number
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E> & IteratedInterface<E>> |
preprocUniqueidentifiedUpdate(DataObjectDefinition<E> definition,
E[] objectbatch,
Iterated<E>[] iteratedbatch)
massive treatment of update for iteration.
|
void |
setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
sets the dependent property unique identified
|
void |
setupdatenote(E object,
java.lang.String updatenote)
sets the update note for the iteration.
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Iterated(DataObjectPropertyDefinition<E> definition, DataObjectPayload parentpayload)
definition
- parentpayload
- public void setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
uniqueidentified
- unique identified propertypublic java.lang.Integer getIteration()
public java.lang.String getLatest()
public void preprocStoredobjectInsert(E object)
object
- the object to processpublic static <E extends DataObject<E> & UniqueidentifiedInterface<E> & IteratedInterface<E>> void preprocStoredobjectInsert(E[] object, Iterated<E>[] preprociteratedbatch)
object
- batch of objectpreprociteratedbatch
- corresponding batch of interated propertiespublic void preprocUniqueidentifiedUpdate(DataObjectDefinition<E> definition, E object)
definition
- definition of the objectobject
- object to proceesspublic static <E extends DataObject<E> & UniqueidentifiedInterface<E> & IteratedInterface<E>> void preprocUniqueidentifiedUpdate(DataObjectDefinition<E> definition, E[] objectbatch, Iterated<E>[] iteratedbatch)
definition
- definition of the objectobjectbatch
- batch of objectiteratedbatch
- corresponding batch of iterated propertiespublic java.lang.Integer archivethisiteration(E object)
object
- object to archivepublic java.lang.String getUpdatenote()
public void setupdatenote(E object, java.lang.String updatenote)
object
- object to processupdatenote
- update notepublic java.lang.String getblankupdatenote(E object)
object
- the object to process