public class MapCreator extends Object implements ObjectCreator<Map<String,Object>>
ObjectCreator implementation that creates a Map from the
current row of a ResultSet. The display names of the columns are used
as keys, the values are mapped to objects of a fitting type.
The following Types are currently mapped:
Types.INTEGER is mapped to Integer.Types.BIGINT is mapped to Long.Types.BOOLEAN is mapped to Boolean.Types.VARCHAR is mapped to String.ObjectCreator.IntegerCreator, ObjectCreator.StringCreatorINTEGER_CREATOR, STRING_CREATOR| Constructor and Description |
|---|
MapCreator() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
createObject(ResultSet resultSet)
Creates a new object from the current row in the given result set.
|
public Map<String,Object> createObject(ResultSet resultSet) throws SQLException
ObjectCreatorcreateObject in interface ObjectCreator<Map<String,Object>>resultSet - The result set to create a new object fromnull if the result set is not on a valid row, i.e. if the
result set is empty or there are no more rows left in itSQLException - if an SQL error occursObjectCreator.createObject(java.sql.ResultSet)Copyright © 2026. All rights reserved.