jsdai.lang
Class CMappingAttribute_value_constraint

java.lang.Object
  extended byjsdai.lang.SdaiCommon
      extended byjsdai.lang.InverseEntity
          extended byjsdai.lang.CEntity
              extended byjsdai.mapping.CConstraint
                  extended byjsdai.mapping.CConstraint_attribute
                      extended byjsdai.lang.CMappingAttribute_value_constraint
All Implemented Interfaces:
jsdai.mapping.EConstraint, jsdai.mapping.EConstraint_attribute, EEntity, MappingConstraintMatcher, SdaiEventSource

public class CMappingAttribute_value_constraint
extends jsdai.mapping.CConstraint_attribute
implements MappingConstraintMatcher

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

Since:
3.6.0

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 class jsdai.mapping.CConstraint_attribute
definition
 
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.
 
Methods inherited from class jsdai.mapping.CConstraint_attribute
getInstanceType
 
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.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, 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

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