E
- public class Uniqueidentified<E extends DataObject<E>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Uniqueidentified(UniqueidentifiedDefinition<E> definition,
DataObjectPayload parentpayload)
Creates the property for an object
|
Modifier and Type | Method and Description |
---|---|
void |
delete(E object)
Deletes the object.
|
static <E extends DataObject<E>> |
delete(E[] object,
Uniqueidentified<E>[] uniqueidentifiedarrayformethod)
performs a delete by batch
|
UniqueidentifiedDefinition<E> |
getDefinition() |
DataObjectId<E> |
getId() |
protected static long |
getNextId()
a central method to the server that will generate unique numbers.
|
Storedobject<E> |
getRelatedStoredobject() |
void |
preprocStoredobjectInsert(E object)
this method will generate the id before insertion
|
static <E extends DataObject<E>> |
preprocStoredobjectInsert(E[] object,
Uniqueidentified<E>[] preprocuniqueidentifiedbatch)
generates by batch unique id for the object before they are inserted
|
void |
refresh(E object)
performs a similar action to the update method, except it will be registered
as a refresh, typically meaning the business data was not changed manually by
the user.
|
void |
setDependentPropertyStoredobject(Storedobject<E> storedobject)
This method allows to set the dependent property stored object.
|
protected void |
SetId(java.lang.String id) |
void |
update(E object)
persists all changes done to this object in-memory version into the
persistence layer
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E>> |
update(E[] objectbatch,
Uniqueidentified<E>[] uniqueidentifiedbatch)
performs an efficient update of several objects
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Uniqueidentified(UniqueidentifiedDefinition<E> definition, DataObjectPayload parentpayload)
definition
- definitionparentpayload
- the payload of the parent data objectprotected static long getNextId()
public UniqueidentifiedDefinition<E> getDefinition()
public DataObjectId<E> getId()
protected void SetId(java.lang.String id)
public static <E extends DataObject<E> & UniqueidentifiedInterface<E>> void update(E[] objectbatch, Uniqueidentified<E>[] uniqueidentifiedbatch)
objectbatch
- the list of objectsuniqueidentifiedbatch
- their unique identified property (has to be the
same size than the object batch)public void update(E object)
object
- the object to updatepublic void refresh(E object)
object
- the object to refreshpublic void preprocStoredobjectInsert(E object)
object
- the objectpublic void setDependentPropertyStoredobject(Storedobject<E> storedobject)
storedobject
- the dependent stored object propertypublic void delete(E object)
object
- the object to deletepublic static <E extends DataObject<E>> void preprocStoredobjectInsert(E[] object, Uniqueidentified<E>[] preprocuniqueidentifiedbatch)
object
- a batch of objectpreprocuniqueidentifiedbatch
- the corresponding unique identified
propertiespublic Storedobject<E> getRelatedStoredobject()
public static <E extends DataObject<E>> void delete(E[] object, Uniqueidentified<E>[] uniqueidentifiedarrayformethod)
object
- an array of objectuniqueidentifiedarrayformethod
- their corresponding unique identified
properties