Class NestedCondition
java.lang.Object
org.springframework.data.relational.core.sql.MultipleCondition
org.springframework.data.relational.core.sql.NestedCondition
- All Implemented Interfaces:
Condition
,Expression
,Segment
,Visitable
Condition group wrapping a nested
Condition
with parentheses.- Since:
- 2.0
- Author:
- Mark Paluch
-
Method Summary
Methods inherited from class org.springframework.data.relational.core.sql.MultipleCondition
getConditions
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.data.relational.core.sql.Condition
and, not, or
-
Method Details
-
toString
Description copied from interface:Segment
Return a SQL string representation of thisSegment
.The representation is intended for debugging purposes and an approximation to the generated SQL. While it might work in the context of a specific dialect, you should not assume that the
Segment.toString()
representation works across multiple databases.- Specified by:
toString
in interfaceSegment
- Overrides:
toString
in classMultipleCondition
- Returns:
- a SQL string representation of this
Segment
.
-
visit
Description copied from interface:Visitable
-
hashCode
public int hashCode()Description copied from interface:Segment
Generate a hash code from thisSegment
.Hashcode typically derives from the
Segment.toString()
representation so twoSegment
s yield the sameSegment.hashCode()
if theirSegment.toString()
representation matches. -
equals
Description copied from interface:Segment
Check whether thisSegment
is equal to anotherSegment
.Equality is typically given if the
Segment.toString()
representation matches.
-