Class ComparisonStyle.Default
- java.lang.Object
-
- org.apache.openjpa.persistence.criteria.ComparisonStyle.Default
-
- All Implemented Interfaces:
ComparisonStyle
- Enclosing interface:
- ComparisonStyle
public static class ComparisonStyle.Default extends Object implements 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 Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete 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
-
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
public ComparisonStyle.StringComparisonMode 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
public ComparisonStyle setExcludeDefault(boolean flag)
Description copied from interface:ComparisonStyleSets whether the comparison excludes default-valued attributes.- Specified by:
setExcludeDefaultin interfaceComparisonStyle
-
setExcludeNull
public ComparisonStyle setExcludeNull(boolean flag)
Description copied from interface:ComparisonStyleSets whether the comparison excludes null-valued attributes.- Specified by:
setExcludeNullin interfaceComparisonStyle
-
setStringComparisonMode
public ComparisonStyle setStringComparisonMode(ComparisonStyle.StringComparisonMode mode)
Description copied from interface:ComparisonStyleSets the comparison mode for String-valued attributes.- Specified by:
setStringComparisonModein interfaceComparisonStyle
-
setDisjunction
public ComparisonStyle setDisjunction(boolean flag)
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
public ComparisonStyle setExcludeIdentity(boolean flag)
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
public ComparisonStyle setExcludeVersion(boolean flag)
Description copied from interface:ComparisonStyleSets whether the comparison excludes version attribute.- Specified by:
setExcludeVersionin interfaceComparisonStyle
-
-