public class LinkedToParent<E extends DataObjectDefinition> extends Property<LinkedToParent<E>>
LinkedFromChildren
UniqueIdentified
Property.PropertyElementDisplayDefinition
FIELDDIPLSAY_TITLE_MOD, FIELDDISPLAY_BOTTOMNOTES, FIELDDISPLAY_NONE, FIELDDISPLAY_NORMAL, FIELDDISPLAY_NORMAL_MOD, FIELDDISPLAY_TITLE, parent
Constructor and Description |
---|
LinkedToParent(java.lang.String name,
E parentobjectforlink)
creates a linked to parent property
|
LinkedToParent(java.lang.String name,
E parentobjectforlink,
java.lang.String linedisplayforgrid,
java.lang.String columndisplayforgrid,
java.lang.String secondarycolumndisplayforgrid,
java.lang.String[] cellvaluestoshow)
creates a linked to parent property with the children objects shown from the
parent as a grid
|
LinkedToParent(java.lang.String name,
E parentobjectforlink,
WidgetDisplayPriority priorityforlinkedfromparent)
creates a linked to parent property with specific widget priority
|
LinkedToParent(java.lang.String name,
E parentobjectforlink,
WidgetDisplayPriority priorityforlinkedfromparent,
java.lang.String linedisplayforgrid,
java.lang.String columndisplayforgrid,
java.lang.String secondarycolumndisplayforgrid,
java.lang.String[] cellvaluestoshow)
creates a linked to parent property with the children objects shown from the
parent as a grid with a specific widget display priority
|
Modifier and Type | Method and Description |
---|---|
void |
addActionOnParentId(DynamicActionDefinition action)
adds an action that will display as a button in the object page
|
void |
addCompositeIndex(java.lang.String indexname,
Field[] fieldstoask)
This method will create in the database a composite index for search
including as first field the parent id, and the specified fields in order
|
void |
controlAfterParentDefinition()
to be implemented if controls have to be performed after parent is added.
|
java.util.ArrayList<DataObjectDefinition> |
getExternalObjectDependence() |
java.lang.String |
getJavaType() |
LinkedFromChildren |
getLinkedFromChildren() |
java.lang.String |
getLinkedFromChildrenName() |
E |
getParentObjectForLink() |
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.
|
UniqueIdentified |
getUniqueIdentified()
gets the unique identified property on the child object the linked to parent
property is on
|
boolean |
isSubobject() |
void |
setFinalSettings()
an abstract method to be implemented by properties for finalizations to be
performed after all data objects have been created.
|
void |
setSpecificTitleForChildrenTable(java.lang.String specifictitleforchildrentable) |
void |
writeAdditionalDefinition(SourceGenerator sg)
This method allows a property to define extra conditions when writing
additional definition on the property
|
void |
writeDependentClass(SourceGenerator sg,
Module module)
only send here classes that are NOT data objects.
|
addBusinessRule, 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
AddElementWithSearch, addIndex, getDisplayname, getElements, getIndex, getSearchWidgetList, getTooltip
changeName, cleanName, equals, getName
public LinkedToParent(java.lang.String name, E parentobjectforlink)
name
- unique name amongst the linked to parent
properties of this object. Should be a valid java
field nameparentobjectforlink
- the parent object the main object is linked topublic LinkedToParent(java.lang.String name, E parentobjectforlink, WidgetDisplayPriority priorityforlinkedfromparent)
name
- unique name amongst the linked to parent
properties of this object. Should be a
valid java field nameparentobjectforlink
- the parent object the main object is
linked topriorityforlinkedfromparent
- widget priority on the parent object for
the children tablepublic LinkedToParent(java.lang.String name, E parentobjectforlink, java.lang.String linedisplayforgrid, java.lang.String columndisplayforgrid, java.lang.String secondarycolumndisplayforgrid, java.lang.String[] cellvaluestoshow)
name
- unique name amongst the linked to parent
properties of this object. Should be a
valid java field nameparentobjectforlink
- the parent object the main object is
linked tolinedisplayforgrid
- the column used for line displaycolumndisplayforgrid
- the column used for column displaysecondarycolumndisplayforgrid
- the column used for secondary column
display (leave it null if not used)cellvaluestoshow
- the name of the fields to show as
content in the gridpublic LinkedToParent(java.lang.String name, E parentobjectforlink, WidgetDisplayPriority priorityforlinkedfromparent, java.lang.String linedisplayforgrid, java.lang.String columndisplayforgrid, java.lang.String secondarycolumndisplayforgrid, java.lang.String[] cellvaluestoshow)
name
- unique name amongst the linked to parent
properties of this object. Should be a
valid java field nameparentobjectforlink
- the parent object the main object is
linked topriorityforlinkedfromparent
- the priority for the grid display on the
parent objectlinedisplayforgrid
- the column used for line displaycolumndisplayforgrid
- the column used for column displaysecondarycolumndisplayforgrid
- the column used for secondary column
display (leave it null if not used)cellvaluestoshow
- the name of the fields to show as
content in the gridpublic UniqueIdentified getUniqueIdentified()
public java.lang.String getLinkedFromChildrenName()
public void setSpecificTitleForChildrenTable(java.lang.String specifictitleforchildrentable)
specifictitleforchildrentable
- specifies the title for the children
table in parent objectpublic LinkedFromChildren getLinkedFromChildren()
public void controlAfterParentDefinition()
Property
controlAfterParentDefinition
in class Property<LinkedToParent<E extends DataObjectDefinition>>
public E getParentObjectForLink()
public boolean isSubobject()
public void addActionOnParentId(DynamicActionDefinition action)
action
- an action with a unique input argument being the parent data
object idpublic void addCompositeIndex(java.lang.String indexname, Field[] fieldstoask)
indexname
- fieldstoask
- fields to add in the composite indexpublic java.lang.String[] getPropertyInitMethod()
Property
getPropertyInitMethod
in class Property<LinkedToParent<E extends DataObjectDefinition>>
public java.lang.String[] getPropertyExtractMethod()
Property
getPropertyExtractMethod
in class Property<LinkedToParent<E extends DataObjectDefinition>>
public void setFinalSettings()
Property
setFinalSettings
in class Property<LinkedToParent<E extends DataObjectDefinition>>
public java.lang.String[] getPropertyDeepCopyStatement()
Property
getPropertyDeepCopyStatement
in class Property<LinkedToParent<E extends DataObjectDefinition>>
public void writeAdditionalDefinition(SourceGenerator sg) throws java.io.IOException
Property
writeAdditionalDefinition
in class Property<LinkedToParent<E extends DataObjectDefinition>>
sg
- source generatorjava.io.IOException
- if any error is encountered writing the source filepublic 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<LinkedToParent<E extends DataObjectDefinition>>