Class EPSGCodeFinder.Condition
java.lang.Object
org.apache.sis.referencing.factory.sql.EPSGCodeFinder.Condition
- Direct Known Subclasses:
EPSGCodeFinder.FloatCondition
- Enclosing class:
- EPSGCodeFinder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
appendToOrderBy
(StringBuilder buffer) Appends an ordering criterion.(package private) boolean
appendToWhere
(StringBuilder buffer, boolean isNext) Appends this condition into the given buffer.final String
toString()
Returns a string representation of this condition for debugging purpose.
-
Field Details
-
NAME
A sentinel value for filtering by name. -
column
The column on which the condition apply. -
values
The values of the conditions.
-
-
Constructor Details
-
Condition
Creates a new condition.
-
-
Method Details
-
appendToWhere
Appends this condition into the given buffer. IfisNext
istrue
, then an"AND"
keyword is appended before the condition. Otherwise this method presumes that the given buffer already ends with"WHERE "
or"AND "
keyword. This method does not append a new"AND"
keyword after the condition.- Parameters:
isNext
- whether to append a"AND"
keyword before the condition.buffer
- where to append the SQL fragment.- Returns:
- whether a SQL fragment has been appended.
-
appendToOrderBy
Appends an ordering criterion. The buffer shall ends with"ORDER BY"
keyword before this method is invoked. If this method appends a criterion, then a comma will be appended after that criterion for allowing chaining.- Parameters:
buffer
- where to append the SQL fragment.
-
toString
Returns a string representation of this condition for debugging purpose.
-