Class EPSGCodeFinder.Condition
java.lang.Object
org.apache.sis.referencing.factory.sql.EPSGCodeFinder.Condition
- Direct Known Subclasses:
EPSGCodeFinder.FloatCondition
- Enclosing class:
EPSGCodeFinder
A condition to put in a SQL
WHERE clause. SQL query will be one of the forms shown below,
where <column> and <values> are column and values respectively.
The latter form is used if <filters> is a floating point value.
Otherwise, <filters> are typically EPSG codes of dependencies.- Since:
- 0.7
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidappendToOrderBy(StringBuilder buffer) Appends an ordering criterion.(package private) booleanappendToWhere(StringBuilder buffer, boolean isNext) Appends this condition into the given buffer.final StringtoString()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
-
-
Constructor Details
-
Condition
-
-
Method Details
-
appendToWhere
Appends this condition into the given buffer. IfisNextistrue, 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:
buffer- where to append the SQL fragment.isNext- whether to append a"AND"keyword before the condition.- 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
-