Interface ComparisonStyle
- All Known Implementing Classes:
ComparisonStyle.Default
public interface ComparisonStyle
Defines a comparison style to be applied for query-by-example attribute comparison.
- Since:
- 2.0.0
- Author:
- Pinaki Poddar
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Default implementation.static enum
-
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.
-
Method Details
-
isDisjunction
boolean isDisjunction()Affirms if the attribute comparisons are OR'ed. Defaults to false. -
setDisjunction
Sets whether the comparison to OR the attribute comparisons. -
excludeNull
boolean excludeNull()Affirms if the null-valued attribute be excluded from comparison. Defaults to true. -
setExcludeNull
Sets whether the comparison excludes null-valued attributes. -
excludeIdentity
boolean excludeIdentity()Affirms if the identity attribute be excluded from comparison. Defaults to true. -
setExcludeIdentity
Sets whether the comparison excludes identity attribute. -
excludeVersion
boolean excludeVersion()Affirms if the version attribute be excluded from comparison. Defaults to true. -
setExcludeVersion
Sets whether the comparison excludes version attribute. -
excludeDefault
boolean excludeDefault()Affirms if the default-valued attribute be excluded from comparison. Defaults to true. -
setExcludeDefault
Sets whether the comparison excludes default-valued attributes. -
getStringComparsionMode
ComparisonStyle.StringComparisonMode getStringComparsionMode()Gets how string-valued attributes be compared. -
setStringComparisonMode
Sets the comparison mode for String-valued attributes.
-