E
- left object for link (must have property
UniqueIdentified
)F
- right object for link (must have property
UniqueIdentified
)public class LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition> extends Property<LinkObject<E,F>>
UniqueIdentified
Property.PropertyElementDisplayDefinition
FIELDDIPLSAY_TITLE_MOD, FIELDDISPLAY_BOTTOMNOTES, FIELDDISPLAY_NONE, FIELDDISPLAY_NORMAL, FIELDDISPLAY_NORMAL_MOD, FIELDDISPLAY_TITLE, parent
Constructor and Description |
---|
LinkObject(E leftobjectforlink,
F rightobjectforlink)
creates a link object with default parameter
|
LinkObject(E leftobjectforlink,
F rightobjectforlink,
java.lang.String labelfromleft,
java.lang.String labelfromright)
creates a link object with specified label from left object, and label from
right object for the link (e.g.
|
LinkObject(E leftobjectforlink,
F rightobjectforlink,
java.lang.String labelfromleft,
java.lang.String labelfromright,
WidgetDisplayPriority displaypriorityfromleft,
WidgetDisplayPriority displaypriorityfromright)
creates a link object with specified label from left object, and label from
right object for the link (e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
addBusinessRule(PropertyBusinessRule<LinkObject<E,F>> rule) |
void |
controlAfterParentDefinition()
to be implemented if controls have to be performed after parent is added.
|
java.util.ArrayList<DataObjectDefinition> |
getExternalObjectDependence() |
java.lang.String |
getJavaType() |
java.lang.String |
getLabelFromLeft() |
java.lang.String |
getLabelFromRight() |
E |
getLeftobjectforlink() |
java.lang.String[] |
getPropertyDeepCopyStatement()
Returns the required deepcopy statement for the property, sends back null if
nothing is required.
|
java.lang.String[] |
getPropertyExtractMethod()
This method should return non null value only if
setCreationDataInputForUpdate() is set
|
java.lang.String[] |
getPropertyInitMethod()
this method uses the context data for creation and the data-input for
standard creation.
|
F |
getRightobjectforlink() |
UniqueIdentified |
getUniqueIdentified() |
void |
setFieldsShown(int priorityforleft,
int priorityforright) |
void |
setFinalSettings()
an abstract method to be implemented by properties for finalizations to be
performed after all data objects have been created.
|
void |
writeDependentClass(SourceGenerator sg,
Module module)
only send here classes that are NOT data objects.
|
addChoiceCategoryHelper, addContextForDataCreation, addDataAccessMethod, addDataInput, addDependentProperty, addDisplayProfileForProperty, addElement, addElement, addElementasSearchElement, addExternalObjectProperty, addFieldOverrides, addMethodAdditionalProcessing, addObjectToAuthorityMapper, addPropertyGenerics, addStringHelper, generatePropertyHelperToFile, getBusinessRule, getBusinessRuleByName, getBusinessRuleNumber, getChoiceCategoryByKey, getChoiceCategoryKeyNumber, getChoiceCategoryNumber, getContextDataForCreation, getContextDataForCreationSize, getDataAccessMethod, getDataAccessMethod, getDataAccessMethodnumber, getDataInputForCreation, getDataInputSize, getDataObjectConstructorAttributes, getDataObjectFieldName, getDependentProperties, getDisplayDefinitionForElement, getDisplayProfileForProperty, getDisplayProfileForPropertyNumber, getExternalObject, getExternalObjectProperty, getExternalObjectPropertySize, getFieldOverridesat, getFieldOverridesNumber, getInstancename, getJavaClassType, getMethodAdditionalProcessing, getMethodAdditionalProcessingnumber, getParent, getPropertyclassname, getPropertyGenerics, getPropertyGenericsSize, getPropertyGenericsString, getPropertyHelperName, hasDynamicDefinitionHelper, hasInterface, hasStaticQuery, hideDataInputForCreation, isDatainputatbottom, isDataInputHiddenForCreation, isDataInputUsedForUpdate, isLegacy, isPropertyHelperTransient, setAsLegacy, setDatainputatbottom, setDataInputForUpdate, setDynamicDefinitionHelper, setExtraAttributes, writeAdditionalDefinition
AddElementWithSearch, addIndex, getDisplayname, getElements, getIndex, getSearchWidgetList, getTooltip
changeName, cleanName, equals, getName
public LinkObject(E leftobjectforlink, F rightobjectforlink)
leftobjectforlink
- the left object of the linkrightobjectforlink
- the right object of the linkpublic LinkObject(E leftobjectforlink, F rightobjectforlink, java.lang.String labelfromleft, java.lang.String labelfromright)
leftobjectforlink
- the left object of the linkrightobjectforlink
- the right object of the linklabelfromleft
- label of the link table seen from left objectlabelfromright
- label of the link table seen from right objectpublic LinkObject(E leftobjectforlink, F rightobjectforlink, java.lang.String labelfromleft, java.lang.String labelfromright, WidgetDisplayPriority displaypriorityfromleft, WidgetDisplayPriority displaypriorityfromright)
leftobjectforlink
- the left object of the linkrightobjectforlink
- the right object of the linklabelfromleft
- label of the link table seen from left objectlabelfromright
- label of the link table seen from right
objectdisplaypriorityfromleft
- priority display from the left objectdisplaypriorityfromright
- priority display from the right objectpublic void setFieldsShown(int priorityforleft, int priorityforright)
priorityforleft
- priorityforright
- public UniqueIdentified getUniqueIdentified()
public java.lang.String getLabelFromLeft()
public java.lang.String getLabelFromRight()
public void addBusinessRule(PropertyBusinessRule<LinkObject<E,F>> rule)
addBusinessRule
in class Property<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public void controlAfterParentDefinition()
Property
controlAfterParentDefinition
in class Property<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public java.lang.String getJavaType()
getJavaType
in class ObjectElement
public void writeDependentClass(SourceGenerator sg, Module module) throws java.io.IOException
ObjectElement
writeDependentClass
in class ObjectElement
java.io.IOException
public java.util.ArrayList<DataObjectDefinition> getExternalObjectDependence()
getExternalObjectDependence
in class Property<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public E getLeftobjectforlink()
public F getRightobjectforlink()
public java.lang.String[] getPropertyInitMethod()
Property
getPropertyInitMethod
in class Property<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public java.lang.String[] getPropertyExtractMethod()
Property
getPropertyExtractMethod
in class Property<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public void setFinalSettings()
Property
setFinalSettings
in class Property<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public java.lang.String[] getPropertyDeepCopyStatement()
Property
getPropertyDeepCopyStatement
in class Property<LinkObject<E extends DataObjectDefinition,F extends DataObjectDefinition>>