Klasse NullValueBuilder
java.lang.Object
org.apache.torque.sql.whereclausebuilder.AbstractWhereClausePsPartBuilder
org.apache.torque.sql.whereclausebuilder.NullValueBuilder
- Alle implementierten Schnittstellen:
WhereClausePsPartBuilder
Builds a PreparedStatementPart from a WhereClauseExpression which
rhs is null and which has one of the comparison opertator =, <>, or !=,
or which operator is SqlEnum.ISNULL or SqlEnum.ISNOTNULL
- Version:
- $Id: NullValueBuilder.java 1896195 2021-12-20 17:41:20Z gk $
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuildPs
(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) Builds a PreparedStatementPart from a WhereClauseExpression which rhs is null and which has one of the comparison opertator =, <>, or !boolean
isApplicable
(WhereClauseExpression whereClauseExpression, Adapter adapter) Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.Von Klasse geerbte Methoden org.apache.torque.sql.whereclausebuilder.AbstractWhereClausePsPartBuilder
getObjectOrColumnPsPartBuilder, setObjectOrColumnPsPartBuilder
-
Konstruktordetails
-
NullValueBuilder
public NullValueBuilder()
-
-
Methodendetails
-
buildPs
public PreparedStatementPart buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) throws TorqueException Builds a PreparedStatementPart from a WhereClauseExpression which rhs is null and which has one of the comparison opertator =, <>, or !=.- Parameter:
whereClausePart
- the part of the where clause to build. Can be modified in this method.ignoreCase
- If true and columns represent Strings, the appropriate function defined for the database will be used to ignore differences in case.query
- the query which is currently builtadapter
- The adapter for the database for which the SQL should be created, not null.- Gibt zurück:
- the rendered SQL for the WhereClauseExpression
- Löst aus:
TorqueException
- when rendering fails.
-
isApplicable
Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.- Parameter:
whereClauseExpression
- the WhereClauseExpression in question.adapter
- The adapter for the database for which the SQL should be created, not null.- Gibt zurück:
- true if applicable, false otherwise.
-