Interface ComparisonStyle
- 
- All Known Implementing Classes:
- ComparisonStyle.Default
 
 public interface ComparisonStyleDefines a comparison style to be applied for query-by-example attribute comparison.- Since:
- 2.0.0
- Author:
- Pinaki Poddar
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classComparisonStyle.DefaultDefault implementation.static classComparisonStyle.StringComparisonMode
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexcludeDefault()Affirms if the default-valued attribute be excluded from comparison.booleanexcludeIdentity()Affirms if the identity attribute be excluded from comparison.booleanexcludeNull()Affirms if the null-valued attribute be excluded from comparison.booleanexcludeVersion()Affirms if the version attribute be excluded from comparison.ComparisonStyle.StringComparisonModegetStringComparsionMode()Gets how string-valued attributes be compared.booleanisDisjunction()Affirms if the attribute comparisons are OR'ed.ComparisonStylesetDisjunction(boolean flag)Sets whether the comparison to OR the attribute comparisons.ComparisonStylesetExcludeDefault(boolean flag)Sets whether the comparison excludes default-valued attributes.ComparisonStylesetExcludeIdentity(boolean flag)Sets whether the comparison excludes identity attribute.ComparisonStylesetExcludeNull(boolean flag)Sets whether the comparison excludes null-valued attributes.ComparisonStylesetExcludeVersion(boolean flag)Sets whether the comparison excludes version attribute.ComparisonStylesetStringComparisonMode(ComparisonStyle.StringComparisonMode mode)Sets the comparison mode for String-valued attributes.
 
- 
- 
- 
Method Detail- 
isDisjunctionboolean isDisjunction() Affirms if the attribute comparisons are OR'ed. Defaults to false.
 - 
setDisjunctionComparisonStyle setDisjunction(boolean flag) Sets whether the comparison to OR the attribute comparisons.
 - 
excludeNullboolean excludeNull() Affirms if the null-valued attribute be excluded from comparison. Defaults to true.
 - 
setExcludeNullComparisonStyle setExcludeNull(boolean flag) Sets whether the comparison excludes null-valued attributes.
 - 
excludeIdentityboolean excludeIdentity() Affirms if the identity attribute be excluded from comparison. Defaults to true.
 - 
setExcludeIdentityComparisonStyle setExcludeIdentity(boolean flag) Sets whether the comparison excludes identity attribute.
 - 
excludeVersionboolean excludeVersion() Affirms if the version attribute be excluded from comparison. Defaults to true.
 - 
setExcludeVersionComparisonStyle setExcludeVersion(boolean flag) Sets whether the comparison excludes version attribute.
 - 
excludeDefaultboolean excludeDefault() Affirms if the default-valued attribute be excluded from comparison. Defaults to true.
 - 
setExcludeDefaultComparisonStyle setExcludeDefault(boolean flag) Sets whether the comparison excludes default-valued attributes.
 - 
getStringComparsionModeComparisonStyle.StringComparisonMode getStringComparsionMode() Gets how string-valued attributes be compared.
 - 
setStringComparisonModeComparisonStyle setStringComparisonMode(ComparisonStyle.StringComparisonMode mode) Sets the comparison mode for String-valued attributes.
 
- 
 
-