jsdai.lang
Class AttributeMapping

java.lang.Object
  extended by jsdai.lang.EntityMapping
      extended by jsdai.lang.AttributeMapping

public class AttributeMapping
extends EntityMapping

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


Constructor Summary
AttributeMapping(SdaiSession session, ASdaiModel target, ASdaiModel mapping, java.util.Set touchedInstances)
          Creates a new AttributeMapping.
 
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

AttributeMapping

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

Parameters:
session - SdaiSession to attach to
target - 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-2009