Module spring.data.relational
Interface Segment
- All Superinterfaces:
Visitable
- All Known Subinterfaces:
Assignment,Condition,Delete,Expression,Insert,Select,TableLike,Update
- All Known Implementing Classes:
AliasedExpression,AnalyticFunction,AnalyticFunction.Partition,AndCondition,AssignValue,AsteriskFromTable,Between,BindMarker,BooleanLiteral,Cast,Column,Comparison,ConstantCondition,Expressions.SimpleExpression,FalseCondition,From,In,InlineQuery,Into,IsNull,Join,Like,Literal,MultipleCondition,NestedCondition,Not,NumericLiteral,OrCondition,OrderBy,OrderByField,SegmentList,SelectList,SimpleFunction,SimpleSegment,StringLiteral,Subselect,SubselectExpression,Table,TrueCondition,Values,Where
Supertype of all Abstract Syntax Tree (AST) segments. Segments are typically immutable and mutator methods return new
instances instead of changing the called instance.
- Since:
- 1.1
- Author:
- Mark Paluch
-
Method Summary
-
Method Details
-
equals
Check whether thisSegmentis equal to anotherSegment.Equality is typically given if the
toString()representation matches. -
hashCode
int hashCode()Generate a hash code from thisSegment.Hashcode typically derives from the
toString()representation so twoSegments yield the samehashCode()if theirtoString()representation matches. -
toString
String toString()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
toString()representation works across multiple databases.
-