public class VerbatimSqlConditionBuilder extends Object implements WhereClausePsPartBuilder
Constructor and Description |
---|
VerbatimSqlConditionBuilder() |
Modifier and Type | Method and Description |
---|---|
PreparedStatementPart |
buildPs(WhereClauseExpression whereClausePart,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds the PS part for a WhereClauseExpression with a verbatim
SQL condition.
|
boolean |
isApplicable(WhereClauseExpression whereClauseExpression,
Adapter adapter)
Returns whether this WhereClausePsPartBuilder is applicable for
a given WhereClauseExpression.
|
public PreparedStatementPart buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) throws TorqueException
buildPs
in interface WhereClausePsPartBuilder
whereClausePart
- the part of the where clause to build.
Can be modified in this method.ignoreCase
- is ignored here.query
- the query which is currently builtadapter
- The adapter for the database for which the SQL
should be created, not null.TorqueException
- when rendering fails.public boolean isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)
isApplicable
in interface WhereClausePsPartBuilder
whereClauseExpression
- the WhereClauseExpression in question.adapter
- The adapter for the database for which the SQL
should be created, not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.