|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjsdai.lang.SdaiCommon
jsdai.lang.InverseEntity
jsdai.lang.CEntity
jsdai.lang.CMappedARMEntity
A common supertype of all ARM entity type implementing classes that support mapping operations. It is part of JSDAI implementation and is for internal JSDAI use.
| Field Summary |
| Fields inherited from interface jsdai.lang.EMappedARMEntity |
ATTRIBUTES_MODIFIED, ATTRIBUTES_UNKNOWN, ATTRIBUTES_UNMODIFIED |
| Fields inherited from interface jsdai.lang.EEntity |
MANDATORY_ATTRIBUTES_SET, MOST_SPECIFC_ENTITY, NO_RESTRICTIONS |
| Method Summary | |
void |
addAggregateItemSimple(EEntity parentInstance,
jsdai.dictionary.EExplicit_attribute attribute,
EEntity targetValue,
boolean useIndexMask,
int index)
Adds items to an aggregate. |
boolean |
applyMappedAttributes(SdaiContext context)
Applies mapped (AIM) attribute values to this ARM instance. |
boolean |
assignMappedValue(SdaiContext context,
jsdai.dictionary.EExplicit_attribute attribute,
java.lang.Object attrValue,
jsdai.dictionary.ANamed_type dataType)
Assigns (sets) value of mapped attribute. |
boolean |
assignMappedValue(SdaiContext context,
jsdai.dictionary.EExplicit_attribute attribute,
java.lang.Object attrValue,
jsdai.mapping.EGeneric_attribute_mapping genAttMapping)
Assigns (sets) value of mapped attribute. |
void |
createAimData(SdaiContext context)
Creates AIM data from ARM subpopulation starting from this ARM instance. |
int |
findARMEntityMappings(SdaiContext context,
jsdai.mapping.AEntity_mapping mappings,
int mode)
Returns the entity_mappings alternatives for this instance type. |
EEntity |
getAimInstance()
Returns the AIM instance which corresponds this ARM instance |
static jsdai.dictionary.AAttribute |
getAllAttributes(jsdai.dictionary.EEntity_definition edef)
Returns all attributes of the entity including supertype attributes. |
jsdai.mapping.EGeneric_attribute_mapping |
getAttributeMapping(jsdai.dictionary.EExplicit_attribute attr)
Returns the attribute mapping of an attribute. |
int |
getAttributeState()
Returns this instance attribute state. |
jsdai.dictionary.EEntity_definition |
getMappingTarget(SdaiContext context)
Returns the AIM entity type definition to which this instance maps. |
EMappedARMEntity |
getNextArmInstance()
Returns next ARM instance which is linked to the same AIM instance as this one. |
void |
removeAimData(SdaiContext context)
Removes AIM data which corresponds this ARM instance. |
void |
setAimInstance(EEntity aimInstance)
Sets AIM instance which corresponds this ARM instance. |
void |
setAttributeState(int attributeState)
Sets this instance attribute state. |
void |
setMappingTarget(jsdai.dictionary.EEntity_definition edef)
Sets the AIM entity type definition to which this instance is supposed to map. |
void |
unsetMappingTarget()
Unsets (clears) the AIM entity type definition to which this instance maps. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jsdai.lang.SdaiEventSource |
addSdaiListener, removeSdaiListener |
| Method Detail |
public void setMappingTarget(jsdai.dictionary.EEntity_definition edef)
throws SdaiException
EMappedARMEntity
setMappingTarget in interface EMappedARMEntityedef - the AIM entity type definition
SdaiException - if an error occurs during the operation
or in underlying JSDAI operations
public void unsetMappingTarget()
throws SdaiException
EMappedARMEntity
unsetMappingTarget in interface EMappedARMEntitySdaiException - if an error occurs during the operation
or in underlying JSDAI operations
public jsdai.dictionary.EEntity_definition getMappingTarget(SdaiContext context)
throws SdaiException
EMappedARMEntity
getMappingTarget in interface EMappedARMEntitycontext - The context of this operation. The following fields
of SdaiContext have to be set:
domain and mappingDomain,
SdaiException - if an error occurs during the operation
or in underlying JSDAI operationspublic int getAttributeState()
EMappedARMEntity
getAttributeState in interface EMappedARMEntityEMappedARMEntity.ATTRIBUTES_UNKNOWN,
EMappedARMEntity.ATTRIBUTES_UNMODIFIED,
EMappedARMEntity.ATTRIBUTES_MODIFIEDpublic void setAttributeState(int attributeState)
EMappedARMEntity
setAttributeState in interface EMappedARMEntityattributeState - the new instance attribute stateEMappedARMEntity.ATTRIBUTES_UNKNOWN,
EMappedARMEntity.ATTRIBUTES_UNMODIFIED,
EMappedARMEntity.ATTRIBUTES_MODIFIED
public boolean applyMappedAttributes(SdaiContext context)
throws SdaiException
EMappedARMEntitySdaiException
is thrown if this instance is in ATTRIBUTES_MODIFIED state.
If the instance is in ATTRIBUTES_UNMODIFIED state then no actions
are taken.
applyMappedAttributes in interface EMappedARMEntitycontext - The context of this operation. The following fields
of SdaiContext have to be set:
domain, mappingDomain,
working_model, and mappedWorkingModel
SdaiException - if an error occurs during attribute assignment
from AIM data or in underlying JSDAI operations
public boolean assignMappedValue(SdaiContext context,
jsdai.dictionary.EExplicit_attribute attribute,
java.lang.Object attrValue,
jsdai.mapping.EGeneric_attribute_mapping genAttMapping)
throws SdaiException
EMappedARMEntity
assignMappedValue in interface EMappedARMEntitycontext - The context of this operation. The following fields
of SdaiContext have to be set:
domain, mappingDomain,
working_model, and mappedWorkingModelattribute - The attribute to assign value toattrValue - The attribute value. This can be one of:EEntity for entity instances;AEntity or Collection
for aggregatesEEntity instances have to be target (AIM) instancesgenAttMapping - The EGeneric_attribute_mapping which provides
type information for the value
SdaiException - if an error occurs during attribute assignment
from AIM data or in underlying JSDAI operations
public boolean assignMappedValue(SdaiContext context,
jsdai.dictionary.EExplicit_attribute attribute,
java.lang.Object attrValue,
jsdai.dictionary.ANamed_type dataType)
throws SdaiException
EMappedARMEntity
assignMappedValue in interface EMappedARMEntitycontext - The context of this operation. The following fields
of SdaiContext have to be set:
mappedWorkingModelattribute - The attribute to assign value toattrValue - The attribute value. This can be one of:EEntity for entity instances;AEntity or Collection
for aggregatesEEntity instances have to be target (AIM) instancesdataType - The data type aggregate which provides select path information.
This parameter has to be not null only when the attribute domain is select
and attribute value is of simple type of aggregate of simple types
SdaiException - if an error occurs during attribute assignment
from AIM data or in underlying JSDAI operations
public void createAimData(SdaiContext context)
throws SdaiException
EMappedARMEntity
createAimData in interface EMappedARMEntitycontext - The context of this operation. The following fields
of SdaiContext have to be set:
domain, mappingDomain, and
working_model
SdaiException - if an error occurs during AIM data creation
or in underlying JSDAI operations
public void removeAimData(SdaiContext context)
throws SdaiException
EMappedARMEntityEEntity.deleteApplicationInstance() but works on
AIM population and is mapping based.
removeAimData in interface EMappedARMEntitycontext - The context of this operation. The following fields
of SdaiContext have to be set:
domain, mappingDomain, and
working_model
SdaiException - if an error occurs during removal of AIM data
or in underlying JSDAI operationspublic EEntity getAimInstance()
EMappedARMEntity
getAimInstance in interface EMappedARMEntitypublic void setAimInstance(EEntity aimInstance)
EMappedARMEntity
setAimInstance in interface EMappedARMEntityaimInstance - The AIM instance to be linked to this ARM instancepublic EMappedARMEntity getNextArmInstance()
EMappedARMEntity
getNextArmInstance in interface EMappedARMEntity
public void addAggregateItemSimple(EEntity parentInstance,
jsdai.dictionary.EExplicit_attribute attribute,
EEntity targetValue,
boolean useIndexMask,
int index)
throws SdaiException
parentInstance - The entity instanceattribute - The attributetargetValue - The value to adduseIndexMask - If true then index parameter is used as an indexindex - The index of the member to add.
Is used only when useIndexMask is true.
SdaiException - if an error occurs during the operation
or in underlying JSDAI operations
public jsdai.mapping.EGeneric_attribute_mapping getAttributeMapping(jsdai.dictionary.EExplicit_attribute attr)
throws SdaiException
EMappedARMEntity
getAttributeMapping in interface EMappedARMEntityattr - explicit attribute definition to get the mapping for
SdaiException - if an error occurs during the operation
or in underlying JSDAI operations
public int findARMEntityMappings(SdaiContext context,
jsdai.mapping.AEntity_mapping mappings,
int mode)
throws SdaiException
EMappedARMEntity
findARMEntityMappings in interface EMappedARMEntitycontext - The context of this operation. The following fields
of SdaiContext have to be set:
mappingDomain,mappings - the output parameter, AEntity_mapping aggregate which
receives found entity mappings.mode - currently not used and should be equal to EEntity.NO_RESTRICTIONS
SdaiException - if an error occurs during the operation
or in underlying JSDAI operations
public static jsdai.dictionary.AAttribute getAllAttributes(jsdai.dictionary.EEntity_definition edef)
throws SdaiException
edef - The entity type definition
AAttribute containing all attribute definitions
SdaiException - if an error occurs during the operation
or in underlying JSDAI operations
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||