|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.skife.jdbi.v2.GeneratedKeys<Type>
Type - the key type returnedpublic class GeneratedKeys<Type>
Wrapper object for generated keys as returned by the Statement.getGeneratedKeys()
| Constructor Summary | |
|---|---|
GeneratedKeys(ResultSetMapper<Type> mapper,
SQLStatement<?> jdbiStatement,
Statement stmt,
StatementContext context)
Creates a new wrapper object for generated keys as returned by the Statement.getGeneratedKeys()
method for update and insert statement for drivers that support this function. |
|
| Method Summary | ||
|---|---|---|
Type |
first()
Returns the first generated key. |
|
|
fold(AccumulatorType accumulator,
Folder2<AccumulatorType> folder)
Used to execute the query and traverse the generated keys with a accumulator. |
|
ResultIterator<Type> |
iterator()
Returns a iterator over all generated keys. |
|
List<Type> |
list()
Returns a list of all generated keys. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneratedKeys(ResultSetMapper<Type> mapper,
SQLStatement<?> jdbiStatement,
Statement stmt,
StatementContext context)
throws SQLException
Statement.getGeneratedKeys()
method for update and insert statement for drivers that support this function.
mapper - Maps the generated keys result set to an objectjdbiStatement - The original jDBI statementstmt - The corresponding sql statementcontext - The statement context
SQLException| Method Detail |
|---|
public Type first()
public <AccumulatorType> AccumulatorType fold(AccumulatorType accumulator,
Folder2<AccumulatorType> folder)
accumulator - The initial accumulator valuefolder - Defines the function which will fold over the result set.
Folder.fold(Object, java.sql.ResultSet)Folderpublic ResultIterator<Type> iterator()
public List<Type> list()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||