Type
- the key type returnedpublic class GeneratedKeys<Type> extends Object implements ResultBearing<Type>
Statement.getGeneratedKeys()
Modifier and Type | Method and Description |
---|---|
Type |
first()
Returns the first generated key.
|
<T> T |
first(Class<T> containerType) |
<AccumulatorType> |
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.
|
<ContainerType> |
list(Class<ContainerType> containerType) |
List<Type> |
list(int maxRows) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Type first()
first
in interface ResultBearing<Type>
public <T> T first(Class<T> containerType)
first
in interface ResultBearing<Type>
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)
Folder
public ResultIterator<Type> iterator()
public List<Type> list()
list
in interface ResultBearing<Type>
public <ContainerType> ContainerType list(Class<ContainerType> containerType)
list
in interface ResultBearing<Type>
public List<Type> list(int maxRows)
list
in interface ResultBearing<Type>
Copyright © 2018. All rights reserved.