|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RowMapper<I>
Defines a mapping between objects of some given type and table row index.
The following invariants must hold:
rowIdToIndex(rowIndexToId(ix)) == ix rowIndexToId(rowIdToIndex(id)) == id
Method Summary | |
---|---|
Class<I> |
getIdClass()
Returns the type of object used for representing row indices. |
long |
rowIdToIndex(I id)
Returns the table row index corresponding to a given typed identifier. |
I |
rowIndexToId(long index)
Returns a typed identifer corresponding to a given row index. |
Method Detail |
---|
Class<I> getIdClass()
long rowIdToIndex(I id)
id
- identifier object
I rowIndexToId(long index)
index
- row index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |