Package com.ptc.core.query.common
Class CompositeCriteriaSpec
java.lang.Object
com.ptc.core.query.common.CompositeCriteriaSpec
- All Implemented Interfaces:
CriterionSpec,Serializable
This class provides an implementation for specifying the criteria for
a type based query. A common AttributeContainerSet instance is combined with
a specified TypeIdentifier's associated criteria.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeCriteriaSpec(CriterionSpec a_criteria, AttributeContainerSet a_commonCriteria) This constructor initializes the instance using the specified criteria. -
Method Summary
Modifier and TypeMethodDescriptionvoidaugmentCriteria(CriteriaAugmentor a_augmentor, ResultSpec a_resultSpec) This method augments all criteria.This method creates a copy of this instance that contains only non root criteria.booleanThis method returns true if any criteria exist.booleanThis method returns true if any of the associated criteria contains outer join criterion.This method returns the common criteria.getCriteria(TypeIdentifier a_targetTypeId) This method returns the criteria associated with a specified TypeIdentifier.getTypes()This method returns the set of TypeIdentifier that have specified criteria.iterator()This method iterates over all criteria.
-
Constructor Details
-
CompositeCriteriaSpec
public CompositeCriteriaSpec(CriterionSpec a_criteria, AttributeContainerSet a_commonCriteria) throws WTException This constructor initializes the instance using the specified criteria.
Supported API: true- Parameters:
a_criteria- specifies the criteriaa_commonCiteria- specifies the common criteria for all types- Throws:
WTException
-
-
Method Details
-
getTypes
This method returns the set of TypeIdentifier that have specified criteria.
Supported API: true- Specified by:
getTypesin interfaceCriterionSpec- Returns:
- Set of TypeIdentifiers
- Throws:
WTException
-
getCriteria
This method returns the criteria associated with a specified TypeIdentifier.
Supported API: true- Specified by:
getCriteriain interfaceCriterionSpec- Parameters:
a_targetTypeId- specifies the target TypeIdentifier- Returns:
- AttributeContainerSet
- Throws:
WTException
-
getCommonCriteria
This method returns the common criteria.
Supported API: true- Returns:
- AttributeContainerSet
-
containsCriteria
This method returns true if any criteria exist.
Supported API: true- Specified by:
containsCriteriain interfaceCriterionSpec- Returns:
- true if any criteria exists
- Throws:
WTException
-
containsOuterJoin
This method returns true if any of the associated criteria contains outer join criterion.
Supported API: true- Specified by:
containsOuterJoinin interfaceCriterionSpec- Returns:
- true if any of the associated criteria contains outer join criterion
- Throws:
WTException
-
cloneNonRoot
This method creates a copy of this instance that contains only non root criteria.
Supported API: true- Specified by:
cloneNonRootin interfaceCriterionSpec- Returns:
- copy of this instance that contains only non root criteria
- Throws:
WTException
-
iterator
This method iterates over all criteria.
Supported API: true- Specified by:
iteratorin interfaceCriterionSpec- Returns:
- iterator over all criteria
- Throws:
WTException
-
augmentCriteria
public void augmentCriteria(CriteriaAugmentor a_augmentor, ResultSpec a_resultSpec) throws WTException This method augments all criteria.
Supported API: true- Specified by:
augmentCriteriain interfaceCriterionSpec- Parameters:
a_augmentor- specifies the augmentor to usea_resultSpec- specifies the result to use- Throws:
WTException
-