Class ComparisonStyle.Default
java.lang.Object
org.apache.openjpa.persistence.criteria.ComparisonStyle.Default
- All Implemented Interfaces:
ComparisonStyle
- Enclosing interface:
- ComparisonStyle
Default implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.openjpa.persistence.criteria.ComparisonStyle
ComparisonStyle.Default, ComparisonStyle.StringComparisonMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAffirms if the default-valued attribute be excluded from comparison.booleanAffirms if the identity attribute be excluded from comparison.booleanAffirms if the null-valued attribute be excluded from comparison.booleanAffirms if the version attribute be excluded from comparison.Gets how string-valued attributes be compared.booleanAffirms if the attribute comparisons are OR'ed.setDisjunction(boolean flag) Sets whether the comparison to OR the attribute comparisons.setExcludeDefault(boolean flag) Sets whether the comparison excludes default-valued attributes.setExcludeIdentity(boolean flag) Sets whether the comparison excludes identity attribute.setExcludeNull(boolean flag) Sets whether the comparison excludes null-valued attributes.setExcludeVersion(boolean flag) Sets whether the comparison excludes version attribute.Sets the comparison mode for String-valued attributes.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
excludeDefault
public boolean excludeDefault()Description copied from interface:ComparisonStyleAffirms if the default-valued attribute be excluded from comparison. Defaults to true.- Specified by:
excludeDefaultin interfaceComparisonStyle
-
excludeNull
public boolean excludeNull()Description copied from interface:ComparisonStyleAffirms if the null-valued attribute be excluded from comparison. Defaults to true.- Specified by:
excludeNullin interfaceComparisonStyle
-
getStringComparsionMode
Description copied from interface:ComparisonStyleGets how string-valued attributes be compared.- Specified by:
getStringComparsionModein interfaceComparisonStyle
-
isDisjunction
public boolean isDisjunction()Description copied from interface:ComparisonStyleAffirms if the attribute comparisons are OR'ed. Defaults to false.- Specified by:
isDisjunctionin interfaceComparisonStyle
-
setExcludeDefault
Description copied from interface:ComparisonStyleSets whether the comparison excludes default-valued attributes.- Specified by:
setExcludeDefaultin interfaceComparisonStyle
-
setExcludeNull
Description copied from interface:ComparisonStyleSets whether the comparison excludes null-valued attributes.- Specified by:
setExcludeNullin interfaceComparisonStyle
-
setStringComparisonMode
Description copied from interface:ComparisonStyleSets the comparison mode for String-valued attributes.- Specified by:
setStringComparisonModein interfaceComparisonStyle
-
setDisjunction
Description copied from interface:ComparisonStyleSets whether the comparison to OR the attribute comparisons.- Specified by:
setDisjunctionin interfaceComparisonStyle
-
excludeIdentity
public boolean excludeIdentity()Description copied from interface:ComparisonStyleAffirms if the identity attribute be excluded from comparison. Defaults to true.- Specified by:
excludeIdentityin interfaceComparisonStyle
-
setExcludeIdentity
Description copied from interface:ComparisonStyleSets whether the comparison excludes identity attribute.- Specified by:
setExcludeIdentityin interfaceComparisonStyle
-
excludeVersion
public boolean excludeVersion()Description copied from interface:ComparisonStyleAffirms if the version attribute be excluded from comparison. Defaults to true.- Specified by:
excludeVersionin interfaceComparisonStyle
-
setExcludeVersion
Description copied from interface:ComparisonStyleSets whether the comparison excludes version attribute.- Specified by:
setExcludeVersionin interfaceComparisonStyle
-