use of com.revolsys.record.query.functions.EnvelopeIntersects in project com.revolsys.open by revolsys.
the class PostgreSQLRecordStore method appendQueryValue.
@Override
public void appendQueryValue(final Query query, final StringBuilder sql, final QueryValue queryValue) {
if (queryValue instanceof EnvelopeIntersects) {
final EnvelopeIntersects envelopeIntersects = (EnvelopeIntersects) queryValue;
final QueryValue boundingBox1Value = envelopeIntersects.getBoundingBox1Value();
if (boundingBox1Value == null) {
sql.append("NULL");
} else {
boundingBox1Value.appendSql(query, this, sql);
}
sql.append(" && ");
final QueryValue boundingBox2Value = envelopeIntersects.getBoundingBox2Value();
if (boundingBox2Value == null) {
sql.append("NULL");
} else {
boundingBox2Value.appendSql(query, this, sql);
}
} else {
super.appendQueryValue(query, sql, queryValue);
}
}
Aggregations