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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Affirms if the default-valued attribute be excluded from comparison.boolean
Affirms if the identity attribute be excluded from comparison.boolean
Affirms if the null-valued attribute be excluded from comparison.boolean
Affirms if the version attribute be excluded from comparison.Gets how string-valued attributes be compared.boolean
Affirms 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:ComparisonStyle
Affirms if the default-valued attribute be excluded from comparison. Defaults to true.- Specified by:
excludeDefault
in interfaceComparisonStyle
-
excludeNull
public boolean excludeNull()Description copied from interface:ComparisonStyle
Affirms if the null-valued attribute be excluded from comparison. Defaults to true.- Specified by:
excludeNull
in interfaceComparisonStyle
-
getStringComparsionMode
Description copied from interface:ComparisonStyle
Gets how string-valued attributes be compared.- Specified by:
getStringComparsionMode
in interfaceComparisonStyle
-
isDisjunction
public boolean isDisjunction()Description copied from interface:ComparisonStyle
Affirms if the attribute comparisons are OR'ed. Defaults to false.- Specified by:
isDisjunction
in interfaceComparisonStyle
-
setExcludeDefault
Description copied from interface:ComparisonStyle
Sets whether the comparison excludes default-valued attributes.- Specified by:
setExcludeDefault
in interfaceComparisonStyle
-
setExcludeNull
Description copied from interface:ComparisonStyle
Sets whether the comparison excludes null-valued attributes.- Specified by:
setExcludeNull
in interfaceComparisonStyle
-
setStringComparisonMode
Description copied from interface:ComparisonStyle
Sets the comparison mode for String-valued attributes.- Specified by:
setStringComparisonMode
in interfaceComparisonStyle
-
setDisjunction
Description copied from interface:ComparisonStyle
Sets whether the comparison to OR the attribute comparisons.- Specified by:
setDisjunction
in interfaceComparisonStyle
-
excludeIdentity
public boolean excludeIdentity()Description copied from interface:ComparisonStyle
Affirms if the identity attribute be excluded from comparison. Defaults to true.- Specified by:
excludeIdentity
in interfaceComparisonStyle
-
setExcludeIdentity
Description copied from interface:ComparisonStyle
Sets whether the comparison excludes identity attribute.- Specified by:
setExcludeIdentity
in interfaceComparisonStyle
-
excludeVersion
public boolean excludeVersion()Description copied from interface:ComparisonStyle
Affirms if the version attribute be excluded from comparison. Defaults to true.- Specified by:
excludeVersion
in interfaceComparisonStyle
-
setExcludeVersion
Description copied from interface:ComparisonStyle
Sets whether the comparison excludes version attribute.- Specified by:
setExcludeVersion
in interfaceComparisonStyle
-