Package com.pyranid
Class DefaultResultSetMapper
java.lang.Object
com.pyranid.DefaultResultSetMapper
- All Implemented Interfaces:
ResultSetMapper
Basic implementation of
ResultSetMapper
.- Since:
- 1.0.0
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultResultSetMapper
(DatabaseType databaseType, InstanceProvider instanceProvider) Creates aResultSetMapper
for the givendatabaseType
andinstanceProvider
.DefaultResultSetMapper
(DatabaseType databaseType, InstanceProvider instanceProvider, ZoneId timeZone) Creates aResultSetMapper
for the givendatabaseType
andinstanceProvider
. -
Method Summary
-
Constructor Details
-
DefaultResultSetMapper
Creates aResultSetMapper
for the givendatabaseType
andinstanceProvider
.- Parameters:
databaseType
- the type of database we're working withinstanceProvider
- instance-creation factory, used to instantiate resultset row objects as needed
-
DefaultResultSetMapper
public DefaultResultSetMapper(DatabaseType databaseType, InstanceProvider instanceProvider, ZoneId timeZone) Creates aResultSetMapper
for the givendatabaseType
andinstanceProvider
.- Parameters:
databaseType
- the type of database we're working withinstanceProvider
- instance-creation factory, used to instantiate resultset row objects as neededtimeZone
- the timezone to use when working withTimestamp
and similar values- Since:
- 1.0.15
-
-
Method Details
-
map
Description copied from interface:ResultSetMapper
Maps the current row ofresultSet
into an instance ofresultClass
.- Specified by:
map
in interfaceResultSetMapper
- Type Parameters:
T
- result instance type token- Parameters:
resultSet
- provides raw row data to pull fromresultClass
- the type of instance to map to- Returns:
- an instance of the given
resultClass
-