public class GetCompactionInfoHandler extends Object implements QueryHandler<CompactionInfo>
| Modifier and Type | Field and Description |
|---|---|
static String |
SELECT_BY_ID |
static String |
SELECT_BY_TXN_ID |
| Constructor and Description |
|---|
GetCompactionInfoHandler(long id,
boolean isTransactionId) |
| Modifier and Type | Method and Description |
|---|---|
CompactionInfo |
extractData(ResultSet rs) |
String |
getParameterizedQueryString(DatabaseProduct databaseProduct)
The parameterized query string.
|
org.springframework.jdbc.core.namedparam.SqlParameterSource |
getQueryParameters()
An
SqlParameterSource instance containing the required parameters for the query string. |
public static final String SELECT_BY_ID
public static final String SELECT_BY_TXN_ID
public GetCompactionInfoHandler(long id,
boolean isTransactionId)
public String getParameterizedQueryString(DatabaseProduct databaseProduct) throws MetaException
ParameterizedQuerygetParameterizedQueryString in interface ParameterizedQuerydatabaseProduct - A DatabaseProduct instance representing the type of the underlying HMS dabatabe.MetaException - 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 CompactionInfo extractData(ResultSet rs) throws SQLException, org.springframework.dao.DataAccessException
extractData in interface org.springframework.jdbc.core.ResultSetExtractor<CompactionInfo>SQLExceptionorg.springframework.dao.DataAccessExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.