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