jsdai.lang
Class EntityMapping

java.lang.Object
  extended byjsdai.lang.ObjectMapping
      extended byjsdai.lang.EntityMapping
Direct Known Subclasses:
AttributeMapping

public class EntityMapping
extends jsdai.lang.ObjectMapping

This class is part of entity mapping implementation. It is intended for internal JSDAI use.


Constructor Summary
EntityMapping(SdaiSession session, ASdaiModel data, ASdaiModel mapping, java.util.Set touchedInstances)
          Creates a new EntityMapping.
 
Method Summary
 boolean testMappedAttribute(EEntity targetInstance, jsdai.mapping.EGeneric_attribute_mapping sourceAttribute, int mode)
          Test whether a given targetInstance does fit to the contraints of attribute_mapping.
 boolean testMappedEntity(EEntity targetInstance, jsdai.mapping.EEntity_mapping sourceEntity, int mode)
          Test whether a given targetInstance does fit to the mapping of entity_mapping.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityMapping

public EntityMapping(SdaiSession session,
                     ASdaiModel data,
                     ASdaiModel mapping,
                     java.util.Set touchedInstances)
              throws SdaiException
Creates a new EntityMapping.

Parameters:
session - SdaiSession to attach to
data - The target data domain
mapping - The mapping domain
touchedInstances - The output parameter: the instances touched by mapping operations
Throws:
SdaiException - if an error occurs during the operation or in underlying JSDAI operations
Method Detail

testMappedEntity

public boolean testMappedEntity(EEntity targetInstance,
                                jsdai.mapping.EEntity_mapping sourceEntity,
                                int mode)
                         throws SdaiException
Test whether a given targetInstance does fit to the mapping of entity_mapping.

Parameters:
targetInstance - an instance, which is tested to be mapping of sourceEntity.
sourceEntity - an entity_mapping which mapping is tested
Returns:
true if this target instance is mapping of specified entity_mapping, false if is otherwise.
Throws:
SdaiException - if an error occurs during the operation or in underlying JSDAI operations

testMappedAttribute

public boolean testMappedAttribute(EEntity targetInstance,
                                   jsdai.mapping.EGeneric_attribute_mapping sourceAttribute,
                                   int mode)
                            throws SdaiException
Test whether a given targetInstance does fit to the contraints of attribute_mapping.

Parameters:
targetInstance - an instance to which parent entity_mapping of attribute_mapping is mapped
sourceAttribute - source attribute which mapping is tested
Returns:
true if this target instance has mapping of specified attribute mapping, false otherwise.
Throws:
SdaiException - if an error occurs during the operation or in underlying JSDAI operations

Copyright © LKSoftWare GmbH, 1999-2008