public abstract class AbstractMapRowHandler extends Object implements RowHandler
| Modifier and Type | Field and Description |
|---|---|
protected Charset |
charset |
protected DbConnection |
dbConnection |
| Constructor and Description |
|---|
AbstractMapRowHandler(DbConnection dbConnection) |
AbstractMapRowHandler(DbConnection dbConnection,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getColumnKey(ResultSetMetaData metaData,
int columnIndex)
Determines the key to use for a column.
|
protected Object |
getMuleConsumableValue(Object value) |
protected org.mule.runtime.api.metadata.TypedValue<Object> |
handleBlobType(Blob value) |
protected org.mule.runtime.api.metadata.TypedValue<Object> |
handleClobType(Clob value) |
protected org.mule.runtime.api.metadata.TypedValue<Object> |
handleSqlXmlType(SQLXML value) |
Map<String,Object> |
process(ResultSet resultSet)
Process a row from a resultSet
|
protected void |
validateResult(Map<String,Object> result,
int columnCount)
Validates the result after processing.
|
protected DbConnection dbConnection
protected Charset charset
public AbstractMapRowHandler(DbConnection dbConnection)
public AbstractMapRowHandler(DbConnection dbConnection, Charset charset)
public Map<String,Object> process(ResultSet resultSet) throws SQLException
RowHandlerprocess in interface RowHandlerresultSet - resultset containing the row to process. Non nullSQLException - if a database access error occurs or this method is called on a closed result setprotected abstract String getColumnKey(ResultSetMetaData metaData, int columnIndex) throws SQLException
metaData - the ResultSetMetaDatacolumnIndex - the column index (1-based)SQLException - if an error occursprotected void validateResult(Map<String,Object> result, int columnCount) throws SQLException
result - the processed result mapcolumnCount - the number of columnsSQLException - if validation failsprotected Object getMuleConsumableValue(Object value) throws SQLException
SQLExceptionprotected org.mule.runtime.api.metadata.TypedValue<Object> handleSqlXmlType(SQLXML value) throws SQLException
SQLExceptionprotected org.mule.runtime.api.metadata.TypedValue<Object> handleBlobType(Blob value) throws SQLException
SQLExceptionprotected org.mule.runtime.api.metadata.TypedValue<Object> handleClobType(Clob value) throws SQLException
SQLExceptionCopyright © 2026. All rights reserved.