Class In
java.lang.Object
org.springframework.data.relational.core.sql.In
- All Implemented Interfaces:
Condition, Expression, Segment, Visitable
-
Method Summary
Modifier and TypeMethodDescriptionstatic Increate(Expression columnOrExpression, Collection<? extends Expression> expressions) static Increate(Expression columnOrExpression, Expression arg) static Increate(Expression columnOrExpression, Expression... expressions) static IncreateNotIn(Expression columnOrExpression, Collection<? extends Expression> expressions) static IncreateNotIn(Expression columnOrExpression, Expression arg) static IncreateNotIn(Expression columnOrExpression, Expression... expressions) booleanbooleaninthashCode()Generate a hash code from thisSegment.booleanisNotIn()not()toString()Return a SQL string representation of thisSegment.void
-
Method Details
-
create
- Parameters:
columnOrExpression- left hand side of theConditionmust not be null.arg- right hand side (collectionExpression) must not be null.- Returns:
- the
InCondition.
-
create
public static In create(Expression columnOrExpression, Collection<? extends Expression> expressions) - Parameters:
columnOrExpression- left hand side of theConditionmust not be null.expressions- right hand side (collectionExpression) must not be null.- Returns:
- the
InCondition.
-
create
- Parameters:
columnOrExpression- left hand side of theConditionmust not be null.expressions- right hand side (collectionExpression) must not be null.- Returns:
- the
InCondition.
-
createNotIn
- Parameters:
columnOrExpression- left hand side of theConditionmust not be null.arg- right hand side (collectionExpression) must not be null.- Returns:
- the
InCondition.
-
createNotIn
public static In createNotIn(Expression columnOrExpression, Collection<? extends Expression> expressions) - Parameters:
columnOrExpression- left hand side of theConditionmust not be null.expressions- right hand side (collectionExpression) must not be null.- Returns:
- the
InCondition.
-
createNotIn
- Parameters:
columnOrExpression- left hand side of theConditionmust not be null.expressions- right hand side (collectionExpression) must not be null.- Returns:
- the
InCondition.
-
not
-
hasExpressions
public boolean hasExpressions()- Returns:
trueif this condition has at least one expression.- Since:
- 2.1
-
toString
Description copied from interface:SegmentReturn 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. -
isNotIn
public boolean isNotIn() -
visit
-
hashCode
public int hashCode()Description copied from interface:SegmentGenerate a hash code from thisSegment.Hashcode typically derives from the
Segment.toString()representation so twoSegments yield the sameSegment.hashCode()if theirSegment.toString()representation matches. -
equals
Description copied from interface:SegmentCheck whether thisSegmentis equal to anotherSegment.Equality is typically given if the
Segment.toString()representation matches.
-