Package com.ptc.core.query.common
Class DefaultCriteriaSpec
java.lang.Object
com.ptc.core.query.common.DefaultCriteriaSpec
- All Implemented Interfaces:
CriterionSpec,Serializable
This class provides a default implementation for specifying the criteria for
a type based query. A single AttributeContainerSet instance is returned for
any TypeIdentifier that is specified.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from interface com.ptc.core.query.common.CriterionSpec
LOGGER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCriteriaSpec(AttributeContainerSet a_criteria) 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.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
-
DefaultCriteriaSpec
This constructor initializes the instance using the specified criteria.
Supported API: true- Parameters:
a_criteria- specifies the criteria- 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
-
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
-