jsdai.lang
Class CMappingInverse_attribute

java.lang.Object
  extended byjsdai.lang.SdaiCommon
      extended byjsdai.lang.InverseEntity
          extended byjsdai.lang.CEntity
              extended byjsdai.lang.AttributeDefinition
                  extended byjsdai.lang.CMappingInverse_attribute
All Implemented Interfaces:
jsdai.dictionary.EAttribute, EEntity, MappingConstraintMatcher, MappingConstraintPath, SdaiEventSource

public abstract class CMappingInverse_attribute
extends AttributeDefinition
implements MappingConstraintPath, MappingConstraintMatcher

This class is a superclass of CInverse_attribute class in package jsdai.dictionary. It holds additional functionality needed by mapping operations. It is intended for internal JSDAI use.


Nested Class Summary
 
Nested classes inherited from class jsdai.lang.MappingConstraintMatcher
MappingConstraintMatcher.AEntityMap, MappingConstraintMatcher.AEntitySet, MappingConstraintMatcher.FixedValueMap, MappingConstraintMatcher.MappingMatcherInstances, MappingConstraintMatcher.MappingPreInstances, MappingConstraintMatcher.MatcherInstances
 
Field Summary
 
Fields inherited from interface jsdai.lang.MappingConstraintMatcher
NON_PATH_VALUE
 
Fields inherited from interface jsdai.lang.EEntity
MANDATORY_ATTRIBUTES_SET, MOST_SPECIFC_ENTITY, NO_RESTRICTIONS
 
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.
 void mapUsersBackward(jsdai.lang.ObjectMapping mappingContext, java.util.Set instances)
          Makes a step in resolving the result of EEntity.findMappedUsers(jsdai.mapping.EEntity_mapping, jsdai.mapping.AAttribute_mapping, jsdai.lang.ASdaiModel, jsdai.lang.ASdaiModel, jsdai.mapping.AAttribute_mapping, int) result in a backward direction.
 void mapUsersForward(jsdai.lang.ObjectMapping mappingContext, java.util.Set instances)
          Makes a step in resolving the result of EEntity.findMappedUsers(jsdai.mapping.EEntity_mapping, jsdai.mapping.AAttribute_mapping, jsdai.lang.ASdaiModel, jsdai.lang.ASdaiModel, jsdai.mapping.AAttribute_mapping, int) result in a forward direction.
 
Methods inherited from class jsdai.lang.CEntity
addSdaiListener, buildMappedInstance, compareValuesBoolean, compareValuesLogical, copyApplicationInstance, copyValuesFrom, createAggregate, createExternalData, deleteApplicationInstance, findEntityInstanceSdaiModel, findEntityInstanceUsedin, findEntityInstanceUsers, findEntityMappings, findEntityMappings, findInstanceDataTypes, findInstanceRoles, findLinkedMappedInstance, findMappedUsers, findMostSpecificMappings, get_boolean, get_double, get_int, get_inverse, get_object, get, getAllReferences, getAttributeDefinition, getAttributeValueBound, getDescription, getExternalData, getMappedAttribute, getMappedAttribute, getPersistentLabel, getTemp, getTemp, hasMappedAttribute, isInstanceOf, isInstanceOf, isKindOf, isKindOf, isValid, makeUsedin, moveUsersFrom, removeExternalData, removeSdaiListener, set, set, set, set, set, setTemp, setTemp, testAttribute, testAttributeFast, testExternalData, testMappedAttribute, testMappedAttribute, testMappedEntity, testMappedEntity, typeOf, toString, toValue, unsetAttributeValue, validateAggregatesSize, validateAggregatesUniqueness, validateArrayNotOptional, validateBinaryWidth, validateExplicitAttributesReferences, validateInverseAttributes, validateInverseAttributes, validateRealPrecision, validateRequiredExplicitAttributesAssigned, validateStringWidth, validateWhereRule, validateWhereRule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jsdai.dictionary.EAttribute
getName, getOrder, getParent_entity, getParent, setName, setOrder, setParent, testName, testOrder, testParent_entity, testParent, unsetName, unsetOrder, unsetParent
 
Methods inherited from interface jsdai.lang.EEntity
buildMappedInstance, compareValuesBoolean, compareValuesLogical, copyApplicationInstance, copyValuesFrom, createAggregate, createExternalData, deleteApplicationInstance, findEntityInstanceSdaiModel, findEntityInstanceUsedin, findEntityInstanceUsers, findEntityMappings, findEntityMappings, findInstanceDataTypes, findInstanceRoles, findLinkedMappedInstance, findMappedUsers, findMostSpecificMappings, get_boolean, get_double, get_int, get_inverse, get_object, get, getAllReferences, getAttributeDefinition, getAttributeValueBound, getDescription, getExternalData, getInstanceType, getMappedAttribute, getMappedAttribute, getPersistentLabel, getTemp, getTemp, hasMappedAttribute, isInstanceOf, isInstanceOf, isKindOf, isKindOf, isValid, moveUsersFrom, removeExternalData, set, set, set, set, set, setTemp, setTemp, testAttribute, testExternalData, testMappedAttribute, testMappedAttribute, testMappedEntity, testMappedEntity, typeOf, toString, unsetAttributeValue, validateAggregatesSize, validateAggregatesUniqueness, validateArrayNotOptional, validateBinaryWidth, validateExplicitAttributesReferences, validateInverseAttributes, validateInverseAttributes, validateRealPrecision, validateRequiredExplicitAttributesAssigned, validateStringWidth, validateWhereRule, validateWhereRule
 
Methods inherited from interface jsdai.lang.SdaiEventSource
addSdaiListener, removeSdaiListener
 

Method Detail

mapUsersForward

public void mapUsersForward(jsdai.lang.ObjectMapping mappingContext,
                            java.util.Set instances)
                     throws SdaiException
Description copied from interface: MappingConstraintPath
Makes a step in resolving the result of EEntity.findMappedUsers(jsdai.mapping.EEntity_mapping, jsdai.mapping.AAttribute_mapping, jsdai.lang.ASdaiModel, jsdai.lang.ASdaiModel, jsdai.mapping.AAttribute_mapping, int) result in a forward direction.

Specified by:
mapUsersForward in interface MappingConstraintPath
Parameters:
mappingContext - ObjectMapping as this operation context
instances - input and output instance set to work with
Throws:
SdaiException - if an error occurs

mapUsersBackward

public void mapUsersBackward(jsdai.lang.ObjectMapping mappingContext,
                             java.util.Set instances)
                      throws SdaiException
Description copied from interface: MappingConstraintPath
Makes a step in resolving the result of EEntity.findMappedUsers(jsdai.mapping.EEntity_mapping, jsdai.mapping.AAttribute_mapping, jsdai.lang.ASdaiModel, jsdai.lang.ASdaiModel, jsdai.mapping.AAttribute_mapping, int) result in a backward direction.

Specified by:
mapUsersBackward in interface MappingConstraintPath
Parameters:
mappingContext - ObjectMapping as this operation context
instances - input and output instance set to work with
Throws:
SdaiException - if an error occurs

findForward

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

Specified by:
findForward in interface MappingConstraintMatcher
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
Description copied from interface: MappingConstraintMatcher
Finds instances when the constraint is used not in a path for a backward direction. It is meant for mapping operations internal use.

Specified by:
findBackward in interface MappingConstraintMatcher
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
Description copied from interface: MappingConstraintMatcher
Finds instances when the constraint is used in a path for a forward direction. It is meant for mapping operations internal use.

Specified by:
findPathForward in interface MappingConstraintMatcher
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
Description copied from interface: MappingConstraintMatcher
Finds dependent instances when the constraint is used in a path for a forward direction. It is meant for mapping operations internal use.

Specified by:
findDependentInstances in interface MappingConstraintMatcher
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
Description copied from interface: MappingConstraintMatcher
Finds instances when the constraint is used in a path for a backward direction. It is meant for mapping operations internal use.

Specified by:
findPathBackward in interface MappingConstraintMatcher
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