jodd.db.orm.mapper
Interface ResultSetMapper

All Known Implementing Classes:
DefaultResultSetMapper

public interface ResultSetMapper

ResultSet mapper which implementations parse objects from one result set row. There are two ways of mapping. The basic way is mapping against provided entity types. The second, extended, way is auto-mapping, where no types are provided. Instead, they are mapped by DbOrm or similar external class.

This interface also specifies some simple and most used ResultSet wrapper methods.


Method Summary
 void close()
          Releases this ResultSet object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
 java.sql.ResultSet getResultSet()
          Return JDBC result set.
 boolean next()
          Moves the cursor down one row from its current position.
 java.lang.Object[] parseObjects(java.lang.Class... types)
          Parse objects from result set row to specified types.
 java.lang.Object parseOneObject(java.lang.Class... types)
          Parse single object from result set row to specified type.
 

Method Detail

next

boolean next()
Moves the cursor down one row from its current position.


close

void close()
Releases this ResultSet object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.


getResultSet

java.sql.ResultSet getResultSet()
Return JDBC result set.


parseObjects

java.lang.Object[] parseObjects(java.lang.Class... types)
Parse objects from result set row to specified types.


parseOneObject

java.lang.Object parseOneObject(java.lang.Class... types)
Parse single object from result set row to specified type.

See Also:
parseObjects(Class[])


Copyright ©2008 Jodd Team