E
- current data object (parent)F
- child data object (used as basis for location)public class LinkedfromchildrenforlocationDefinition<E extends DataObject<E> & LocatedInterface<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & UniqueidentifiedInterface<F> & LocatedInterface<F>> extends DataObjectPropertyDefinition<E>
DataObjectPropertyDefinition.ExternalFieldByJoinQuery, DataObjectPropertyDefinition.FieldSchemaForDisplay<E extends DataObject<E>>
allexternalfields, externalfieldsbyjoinquery, parentobject
Constructor and Description |
---|
LinkedfromchildrenforlocationDefinition(DataObjectDefinition<E> parentobject,
java.lang.String name,
DataObjectDefinition<F> referenceobjectdefinition)
creates the definition of the linkedfromchildrenforlocation property
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<ExternalFieldSchema<?>> |
generateExternalSchema() |
DataObjectDefinition<F> |
getChildObjectDefinition()
gets the definition of the child object to replicate the location to
|
LinkedfromchildrenDefinition<E,F> |
getDependentLinkedFromChildrenDefinition()
gets the dependent property definition linked from children
|
FlatFileLoaderColumn<E> |
getFlatFileLoaderColumn(DataObjectDefinition<E> objectdefinition,
java.lang.String[] columnattributes,
PropertyExtractor<E> propertyextractor,
ChoiceValue<ApplocaleChoiceDefinition> locale)
generates the flat file loader for this property
|
java.lang.String[] |
getLoaderFieldList() |
java.lang.String[] |
getLoaderFieldSample(java.lang.String name) |
QueryCondition |
getUniversalQueryCondition(java.lang.String alias)
each property can define query conditions to be applied by all other
properties on an object.
|
DataObjectElement |
initiateFieldInstance(DataObjectPayload parentpayload) |
void |
setDependentDefinitionLinkedfromchildren(LinkedfromchildrenDefinition<E,F> dependentlinkfromchildrendefinition)
sets a reference to the property definition linkedtochildren on the current
(parent) object
|
void |
setDependentDefinitionLocated(LocatedDefinition<E> dependentlocateddefinition)
sets a reference to the dependent definition located on the same object
|
DataObjectPropertyDefinition.FieldSchemaForDisplay<E>[] |
setFieldSchemaToDisplay()
each property should define the list of fields to display as read-only fields
of the object.
|
void |
setGenericsChildobjectforlinkProperty(LinkedtoparentDefinition<F,E> genericschildobjectforlinkproperty)
sets a referencethe property definition linkedtoparent from the child object
|
addStoredFieldSchema, getAllExternalFields, getDataObjectFieldDefinition, getExternalFieldsByJoinQueries, getFieldMarker, getParentObject, getTransientLoaderHelper, initiateExternalFieldSchema
addFieldSchema, addIndex, dropfieldnamelist, getDefinition, getFieldSchema, getFieldSchemaByName, getFieldSchemaNumber, getIndexAt, getIndexNumber, getTriggerlist, isFormulaElement, setTriggerOnUpdate
changeName, cleanName, equals, getName
public LinkedfromchildrenforlocationDefinition(DataObjectDefinition<E> parentobject, java.lang.String name, DataObjectDefinition<F> referenceobjectdefinition)
parentobject
- data object the property is onname
- name of the linkedtoparent related propertyreferenceobjectdefinition
- definition of the child object to replicate
location topublic LinkedfromchildrenDefinition<E,F> getDependentLinkedFromChildrenDefinition()
public DataObjectDefinition<F> getChildObjectDefinition()
public java.util.ArrayList<ExternalFieldSchema<?>> generateExternalSchema()
generateExternalSchema
in class DataObjectPropertyDefinition<E extends DataObject<E> & LocatedInterface<E> & UniqueidentifiedInterface<E>>
public QueryCondition getUniversalQueryCondition(java.lang.String alias)
DataObjectPropertyDefinition
getUniversalQueryCondition
in class DataObjectPropertyDefinition<E extends DataObject<E> & LocatedInterface<E> & UniqueidentifiedInterface<E>>
alias
- alias for which the query condition should be created;public DataObjectPropertyDefinition.FieldSchemaForDisplay<E>[] setFieldSchemaToDisplay()
DataObjectPropertyDefinition
setFieldSchemaToDisplay
in class DataObjectPropertyDefinition<E extends DataObject<E> & LocatedInterface<E> & UniqueidentifiedInterface<E>>
public FlatFileLoaderColumn<E> getFlatFileLoaderColumn(DataObjectDefinition<E> objectdefinition, java.lang.String[] columnattributes, PropertyExtractor<E> propertyextractor, ChoiceValue<ApplocaleChoiceDefinition> locale)
DataObjectPropertyDefinition
getFlatFileLoaderColumn
in class DataObjectPropertyDefinition<E extends DataObject<E> & LocatedInterface<E> & UniqueidentifiedInterface<E>>
objectdefinition
- definition of the objectcolumnattributes
- column attributespropertyextractor
- an extractor providing this property from the objectlocale
- locale if loaded by CSVpublic java.lang.String[] getLoaderFieldList()
getLoaderFieldList
in class DataObjectPropertyDefinition<E extends DataObject<E> & LocatedInterface<E> & UniqueidentifiedInterface<E>>
public java.lang.String[] getLoaderFieldSample(java.lang.String name)
getLoaderFieldSample
in class DataObjectPropertyDefinition<E extends DataObject<E> & LocatedInterface<E> & UniqueidentifiedInterface<E>>
name
- name as returned by the function getLoaderFieldListpublic DataObjectElement initiateFieldInstance(DataObjectPayload parentpayload)
initiateFieldInstance
in class DataObjectElementDefinition<FieldSchema,E extends DataObject<E> & LocatedInterface<E> & UniqueidentifiedInterface<E>>
parentpayload
- the object payloadpublic void setDependentDefinitionLocated(LocatedDefinition<E> dependentlocateddefinition)
dependentlocateddefinition
- dependent definition locatedpublic void setDependentDefinitionLinkedfromchildren(LinkedfromchildrenDefinition<E,F> dependentlinkfromchildrendefinition)
dependentlinkfromchildrendefinition
- dependent property linked from
childrenpublic void setGenericsChildobjectforlinkProperty(LinkedtoparentDefinition<F,E> genericschildobjectforlinkproperty)
genericschildobjectforlinkproperty
- related property definition
linkedtoparent from the child
object