|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdai.lang.MappingContext
This class is mapping context for AIM2ARM conversion method convertMapping
.
SdaiSession.convertMapping(jsdai.lang.MappingContext)
Constructor Summary | |
MappingContext(SdaiContext context)
Creates a new mapping context with empty mapping population creator. |
|
MappingContext(SdaiContext context,
MappingPopulationCreator creator)
Creates a new mapping context with provided mapping population creator. |
Method Summary | |
SdaiContext |
getContext()
Returns SdaiContext associated with this MappingContext . |
boolean |
getInterleavedCreation()
Returns interleaved creation flag for this MappingContext .
|
EEntity |
getMappedInstance(EEntity targetInstance)
Returns sourceInstance associated with this targetInstance .
|
EEntity |
putMappedInstace(EEntity targetInstance,
EEntity sourceInstance)
Creates an association between targetInstances and
sourceInstance . |
void |
setInterleavedCreation(boolean interleavedCreation)
Sets interleaved creation flag for this MappingContext .
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MappingContext(SdaiContext context, MappingPopulationCreator creator) throws SdaiException
context
- context of the operations as SdaiContext
.
The following fields of the context have to be set:
domain
, mappingDomain
.creator
- the mapping population creator to be used during AIM2ARM conversion
SdaiException
- if underlying JSDAI exception occurs (since JSDAI 4.1.2)MappingPopulationCreator
public MappingContext(SdaiContext context) throws SdaiException
context
- context of the operations as SdaiContext
.
The following fields of the context have to be set:
domain
, mappingDomain
.
SdaiException
- if underlying JSDAI exception occurs (since JSDAI 4.1.2)Method Detail |
public final SdaiContext getContext()
SdaiContext
associated with this MappingContext
.
SdaiContext
public void setInterleavedCreation(boolean interleavedCreation)
MappingContext
.
Interleaved creation defines the order in which MappingPopulationCreator
methods are called. If interleved creation is true
(which is the default
setting) then call to MappingPopulationCreator.createSourceInstance
is immediately followed by calls to MappingPopulationCreator.setSourceAttributeValues
for all instances in targetInstances collection. Otherwise if interleved creation is
false
then calls to for all instances to
MappingPopulationCreator.createSourceInstance
are followed by calls to
MappingPopulationCreator.setSourceAttributeValues
for all instances.
interleavedCreation
- the interleaved creation flag valuegetInterleavedCreation()
,
MappingPopulationCreator.createSourceInstance(jsdai.mapping.EEntity_mapping, java.util.Collection)
,
MappingPopulationCreator.setSourceAttributeValues(jsdai.mapping.EEntity_mapping, jsdai.lang.EEntity, java.util.Map)
,
SdaiSession.convertMapping(jsdai.lang.MappingContext)
public boolean getInterleavedCreation()
MappingContext
.
Read setInterleavedCreation(boolean)
for description of interleaved creation flag.
setInterleavedCreation(boolean)
public EEntity putMappedInstace(EEntity targetInstance, EEntity sourceInstance)
targetInstances
and
sourceInstance
. Later sourceInstance
can be retrieved by providing targetInstances
using
getMappedInstance
method. Notice that associations are kept
only during convertMapping
call and they are cleaned up afterward.
targetInstance
- the target instance valuesourceInstance
- the source instance value
null
otherwisegetMappedInstance(jsdai.lang.EEntity)
public EEntity getMappedInstance(EEntity targetInstance)
sourceInstance
associated with this targetInstance
.
Read putMappedInstace(jsdai.lang.EEntity, jsdai.lang.EEntity)
for more detailed description.
targetInstance
- the target instance value
null
otherwise
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |