T - public class InClauseBatchCommand<T> extends Object implements ParameterizedQuery
| Constructor and Description |
|---|
InClauseBatchCommand(String query,
org.springframework.jdbc.core.namedparam.SqlParameterSource queryParameters,
String inClauseParameterName,
Comparator<T> parmeterLengthComparator) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInClauseParameterName() |
String |
getParameterizedQueryString(DatabaseProduct databaseProduct)
The parameterized query string.
|
Comparator<T> |
getParameterLengthComparator() |
org.springframework.jdbc.core.namedparam.SqlParameterSource |
getQueryParameters()
An
SqlParameterSource instance containing the required parameters for the query string. |
public InClauseBatchCommand(String query, org.springframework.jdbc.core.namedparam.SqlParameterSource queryParameters, String inClauseParameterName, Comparator<T> parmeterLengthComparator)
public String getParameterizedQueryString(DatabaseProduct databaseProduct)
getParameterizedQueryString in interface ParameterizedQuerydatabaseProduct - A DatabaseProduct instance representing the type of the underlying HMS dabatabe.ParameterizedQuery.getParameterizedQueryString(DatabaseProduct)public org.springframework.jdbc.core.namedparam.SqlParameterSource getQueryParameters()
ParameterizedQuerySqlParameterSource instance containing the required parameters for the query string. If the query is not
parameterized, this method can either return null or an empty SqlParameterSource.getQueryParameters in interface ParameterizedQuerySqlParameterSource containing the parameters for the query.public String getInClauseParameterName()
public Comparator<T> getParameterLengthComparator()
Comparator instance which can be used to determine the longest element in the
list IN clause parameters. This is required to be able to estimate the final legth of the command.Copyright © 2024 The Apache Software Foundation. All rights reserved.