public class GetOpenTxnTypeAndLockHandler extends Object implements QueryHandler<TxnType>
| Constructor and Description |
|---|
GetOpenTxnTypeAndLockHandler(SQLGenerator sqlGenerator,
long txnId) |
| Modifier and Type | Method and Description |
|---|---|
TxnType |
extractData(ResultSet rs) |
String |
getParameterizedQueryString(DatabaseProduct databaseProduct)
Note that by definition select for update is divorced from update, i.e.
|
org.springframework.jdbc.core.namedparam.SqlParameterSource |
getQueryParameters()
An
SqlParameterSource instance containing the required parameters for the query string. |
public GetOpenTxnTypeAndLockHandler(SQLGenerator sqlGenerator, long txnId)
public String getParameterizedQueryString(DatabaseProduct databaseProduct) throws MetaException
getParameterizedQueryString in interface ParameterizedQuerydatabaseProduct - A DatabaseProduct instance representing the type of the underlying HMS dabatabe.OptionalMetaException - Thrown if the query string cannot be assembled.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 TxnType extractData(ResultSet rs) throws SQLException, org.springframework.dao.DataAccessException
extractData in interface org.springframework.jdbc.core.ResultSetExtractor<TxnType>SQLExceptionorg.springframework.dao.DataAccessExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.