|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A common supertype for all ARM entity types that support mapping operations. It contains methods to access assign ARM data from AIM population and to create AIM data from ARM subpopulation.
Field Summary | |
static int |
ATTRIBUTES_MODIFIED
The instance state when the attribute values are known and at least one attribute was modified. |
static int |
ATTRIBUTES_UNKNOWN
The instance state when the attribute values are unknown. |
static int |
ATTRIBUTES_UNMODIFIED
The instance state when the attribute values are known and not modified. |
Fields inherited from interface jsdai.lang.EEntity |
MANDATORY_ATTRIBUTES_SET, MOST_SPECIFC_ENTITY, NO_RESTRICTIONS |
Method Summary | |
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 |
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 interface jsdai.lang.SdaiEventSource |
addSdaiListener, removeSdaiListener |
Field Detail |
public static final int ATTRIBUTES_UNKNOWN
EEntity.buildMappedInstance(jsdai.lang.SdaiContext, jsdai.dictionary.EEntity_definition)
method.
public static final int ATTRIBUTES_UNMODIFIED
applyMappedAttributes(jsdai.lang.SdaiContext)
method
public static final int ATTRIBUTES_MODIFIED
createAimData(jsdai.lang.SdaiContext)
method.
The instance changes to this state from ATTRIBUTES_UNMODIFIED when any change
on any attribute value is made.
Method Detail |
public void createAimData(SdaiContext context) throws SdaiException
context
- 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 operationspublic void removeAimData(SdaiContext context) throws SdaiException
EEntity.deleteApplicationInstance()
but works on
AIM population and is mapping based.
context
- 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()
public void setAimInstance(EEntity aimInstance)
aimInstance
- The AIM instance to be linked to this ARM instancepublic EMappedARMEntity getNextArmInstance()
public boolean assignMappedValue(SdaiContext context, jsdai.dictionary.EExplicit_attribute attribute, java.lang.Object attrValue, jsdai.mapping.EGeneric_attribute_mapping genAttMapping) throws SdaiException
context
- The context of this operation. The following fields
of SdaiContext
have to be set:
domain
, mappingDomain
,
working_model
, and mappedWorkingModel
attribute
- 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 operationspublic boolean assignMappedValue(SdaiContext context, jsdai.dictionary.EExplicit_attribute attribute, java.lang.Object attrValue, jsdai.dictionary.ANamed_type dataType) throws SdaiException
context
- The context of this operation. The following fields
of SdaiContext
have to be set:
mappedWorkingModel
attribute
- 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 operationspublic boolean applyMappedAttributes(SdaiContext context) throws SdaiException
SdaiException
is thrown if this instance is in ATTRIBUTES_MODIFIED state.
If the instance is in ATTRIBUTES_UNMODIFIED state then no actions
are taken.
context
- 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 operationspublic int getAttributeState()
ATTRIBUTES_UNKNOWN
,
ATTRIBUTES_UNMODIFIED
,
ATTRIBUTES_MODIFIED
public void setAttributeState(int attributeState)
attributeState
- the new instance attribute stateATTRIBUTES_UNKNOWN
,
ATTRIBUTES_UNMODIFIED
,
ATTRIBUTES_MODIFIED
public jsdai.dictionary.EEntity_definition getMappingTarget(SdaiContext context) throws SdaiException
context
- 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 void unsetMappingTarget() throws SdaiException
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationspublic void setMappingTarget(jsdai.dictionary.EEntity_definition edef) throws SdaiException
edef
- the AIM entity type definition
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationspublic jsdai.mapping.EGeneric_attribute_mapping getAttributeMapping(jsdai.dictionary.EExplicit_attribute attr) throws SdaiException
attr
- explicit attribute definition to get the mapping for
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationspublic int findARMEntityMappings(SdaiContext context, jsdai.mapping.AEntity_mapping mappings, int mode) throws SdaiException
context
- 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
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |