jsdai.lang
Interface MappingConstraintMatcher

All Known Implementing Classes:
CEntityMappingBase, CMappingAggregate_member_constraint, CMappingAnd_constraint_relationship, CMappingAttribute_mapping, CMappingAttribute_mapping_value, CMappingAttribute_value_constraint, CMappingDerived_attribute, CMappingEnd_of_path_constraint, CMappingEntity_constraint, CMappingExplicit_attribute, CMappingInstance_equal, CMappingIntersection_constraint, CMappingInverse_attribute, CMappingInverse_attribute_constraint, CMappingNegation_constraint, CMappingOr_constraint_relationship, CMappingPath_constraint, CMappingSelect_constraint, CMappingType_constraint

public interface MappingConstraintMatcher

This interface defines the AIM2ARM conversion behavior. It is meant for mapping operations internal use.

Since:
3.6.0

Nested Class Summary
static class MappingConstraintMatcher.AEntityMap
          This is Map interface wrapper for AEntity aggregate.
static class MappingConstraintMatcher.AEntitySet
          This is Set interface wrapper for AEntity aggregate.
static class MappingConstraintMatcher.FixedValueMap
          This is Map interface wrapper for Set as keys and fixed value as values.
static interface MappingConstraintMatcher.MappingMatcherInstances
          Identifies matcher instances used in attribute and entity mappings.
static class MappingConstraintMatcher.MappingPreInstances
          This class holds pre-processed instances for attribute and entity mappings.
static class MappingConstraintMatcher.MatcherInstances
          This class defines entity instances for use in MappingConstraintMatcher It is meant for mapping operations internal use.
 
Field Summary
static java.lang.Object NON_PATH_VALUE
          The special static value to be used in matcher instances map when the constraint is used not in a path.
 
Method Summary
 MappingConstraintMatcher.MatcherInstances findBackward(MappingContext mappingContext, MappingConstraintMatcher.MatcherInstances instances, boolean decCacheUseCnt)
          Finds instances when the constraint is used not in a path for a backward direction.
 EEntity[] findDependentInstances()
          Finds dependent instances when the constraint is used in a path for a forward direction.
 MappingConstraintMatcher.MatcherInstances findForward(MappingContext mappingContext, MappingConstraintMatcher.MatcherInstances instances, boolean decCacheUseCnt)
          Finds instances when the constraint is used not in a path for a forward direction.
 MappingConstraintMatcher.MatcherInstances findPathBackward(MappingContext mappingContext, MappingConstraintMatcher.MatcherInstances instances, boolean decCacheUseCnt)
          Finds instances when the constraint is used in a path for a backward direction.
 MappingConstraintMatcher.MatcherInstances findPathForward(MappingContext mappingContext, MappingConstraintMatcher.MatcherInstances instances, boolean decCacheUseCnt)
          Finds instances when the constraint is used in a path for a forward direction.
 

Field Detail

NON_PATH_VALUE

public static final java.lang.Object NON_PATH_VALUE
The special static value to be used in matcher instances map when the constraint is used not in a path. It is meant for mapping operations internal use.

Method Detail

findForward

public MappingConstraintMatcher.MatcherInstances findForward(MappingContext mappingContext,
                                                             MappingConstraintMatcher.MatcherInstances instances,
                                                             boolean decCacheUseCnt)
                                                      throws SdaiException
Finds instances when the constraint is used not in a path for a forward direction. It is meant for mapping operations internal use.

Parameters:
mappingContext - The context of this operation
instances - The input instances to get the result with
decCacheUseCnt - true if cache use count should be decreased
Returns:
The resulting output instances
Throws:
SdaiException - if an error occurs during method execution or in underlying JSDAI operations
Since:
4.1.0

findBackward

public MappingConstraintMatcher.MatcherInstances findBackward(MappingContext mappingContext,
                                                              MappingConstraintMatcher.MatcherInstances instances,
                                                              boolean decCacheUseCnt)
                                                       throws SdaiException
Finds instances when the constraint is used not in a path for a backward direction. It is meant for mapping operations internal use.

Parameters:
mappingContext - The context of this operation
instances - The input instances to get the result with
decCacheUseCnt - true if cache use count should be decreased
Returns:
The resulting output instances
Throws:
SdaiException - if an error occurs during method execution or in underlying JSDAI operations
Since:
4.1.0

findPathForward

public MappingConstraintMatcher.MatcherInstances findPathForward(MappingContext mappingContext,
                                                                 MappingConstraintMatcher.MatcherInstances instances,
                                                                 boolean decCacheUseCnt)
                                                          throws SdaiException
Finds instances when the constraint is used in a path for a forward direction. It is meant for mapping operations internal use.

Parameters:
mappingContext - The context of this operation
instances - The input instances to get the result with
decCacheUseCnt - true if cache use count should be decreased
Returns:
The resulting output instances
Throws:
SdaiException - if an error occurs during method execution or in underlying JSDAI operations
Since:
4.1.0

findDependentInstances

public EEntity[] findDependentInstances()
                                 throws SdaiException
Finds dependent instances when the constraint is used in a path for a forward direction. It is meant for mapping operations internal use.

Returns:
The dependent instances
Throws:
SdaiException - if an error occurs during method execution or in underlying JSDAI operations
Since:
4.1.0

findPathBackward

public MappingConstraintMatcher.MatcherInstances findPathBackward(MappingContext mappingContext,
                                                                  MappingConstraintMatcher.MatcherInstances instances,
                                                                  boolean decCacheUseCnt)
                                                           throws SdaiException
Finds instances when the constraint is used in a path for a backward direction. It is meant for mapping operations internal use.

Parameters:
mappingContext - The context of this operation
instances - The input instances to get the result with
decCacheUseCnt - true if cache use count should be decreased
Returns:
The resulting output instances
Throws:
SdaiException - if an error occurs during method execution or in underlying JSDAI operations
Since:
4.1.0

Copyright © LKSoftWare GmbH, 1999-2008