E
- the link objectF
- the "left" object of the linkG
- the "right" object of the linkpublic class Linkobject<E extends DataObject<E> & LinkobjectInterface<E,F,G>,F extends DataObject<F> & UniqueidentifiedInterface<F>,G extends DataObject<G> & UniqueidentifiedInterface<G>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Linkobject(LinkobjectDefinition<E,F,G> definition,
DataObjectPayload parentpayload,
DataObjectDefinition<F> leftobjectdefinition,
DataObjectDefinition<G> rightobjectdefinition)
creates a link object property
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkConditionOnLinkObject()
checks that the link can be created, going through all conditions, and the
'Max One link from left' parameter)
|
DataObjectId<F> |
getLfid()
gets the id of the left object
|
java.lang.String |
getLinkobjectleftnr()
gets the number of the left object (if the left object has the 'Numbered'
property
|
java.lang.String |
getLinkobjectleftobjectname()
gets the name of the left object (if the left object has the 'Named' property
|
java.lang.String |
getLinkobjectrightnr()
gets the number of the right object (if the right object has the 'Numbered'
property
|
java.lang.String |
getLinkobjectrightobjectname()
gets the name of the right object (if the right object has the 'Named'
property
|
DataObjectId<G> |
getRgid()
gets the id of the right object
|
void |
postprocStoredobjectInsert(E object)
performs post processing on the parent object insertion in persistence store.
|
static <E extends DataObject<E> & LinkobjectInterface<E,F,G>,F extends DataObject<F> & UniqueidentifiedInterface<F>,G extends DataObject<G> & UniqueidentifiedInterface<G>> |
postprocStoredobjectInsert(E[] objectbatch,
Linkobject<E,F,G>[] linkobjectbatch)
performs post processing on the parent object insertion in persistence store.
|
void |
setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
sets the dependent property unique identified
|
void |
setleftobject(E object,
DataObjectId<F> leftobjectid)
checks if the link is valid and set the left object for this link
|
protected void |
setLfid(java.lang.String lfid)
sets the id of the left object (no control done)
|
protected void |
setRgid(java.lang.String rgid)
sets the id of the right object (no control done)
|
void |
setrightobject(E object,
DataObjectId<G> rightobjectid)
checks if the link is valid and set the right object for this link
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Linkobject(LinkobjectDefinition<E,F,G> definition, DataObjectPayload parentpayload, DataObjectDefinition<F> leftobjectdefinition, DataObjectDefinition<G> rightobjectdefinition)
definition
- definition of the left objectparentpayload
- payload of the parent data objectleftobjectdefinition
- definition of the left object for the linkrightobjectdefinition
- definition of the right object for the linkprotected void setLfid(java.lang.String lfid)
lfid
- id of the left objectpublic DataObjectId<F> getLfid()
protected void setRgid(java.lang.String rgid)
rgid
- id of the right objectpublic DataObjectId<G> getRgid()
public java.lang.String getLinkobjectrightobjectname()
public java.lang.String getLinkobjectleftobjectname()
public java.lang.String getLinkobjectrightnr()
public java.lang.String getLinkobjectleftnr()
public java.lang.String checkConditionOnLinkObject()
public void setleftobject(E object, DataObjectId<F> leftobjectid)
object
- parent object of the linkleftobjectid
- id of the left object for the linkpublic void setrightobject(E object, DataObjectId<G> rightobjectid)
object
- parent object of the linkrightobjectid
- id of the right object for the linkpublic void setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
uniqueidentified
- dependent propertypublic void postprocStoredobjectInsert(E object)
object
- object to processpublic static <E extends DataObject<E> & LinkobjectInterface<E,F,G>,F extends DataObject<F> & UniqueidentifiedInterface<F>,G extends DataObject<G> & UniqueidentifiedInterface<G>> void postprocStoredobjectInsert(E[] objectbatch, Linkobject<E,F,G>[] linkobjectbatch)
objectbatch
- the batch of objects to reviewlinkobjectbatch
- the corresponding batch of link object properties