public class ResultProducers extends Object implements JdbiConfig<ResultProducers>
| Constructor and Description |
|---|
ResultProducers() |
| Modifier and Type | Method and Description |
|---|---|
ResultProducers |
allowNoResults(boolean allowNoResults)
Normally a query that doesn't return a result set throws an exception.
|
ResultProducers |
createCopy()
Returns a copy of this configuration object.
|
static ResultProducer<ResultBearing> |
returningGeneratedKeys(String... generatedKeyColumnNames)
Result producer that returns a
ResultBearing over the statement-generated keys. |
static ResultProducer<ResultBearing> |
returningResults()
Result producer that returns a
ResultBearing over the statement result rows. |
static ResultProducer<Integer> |
returningUpdateCount()
Result producer that eagerly executes the statement, returning the update count
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRegistrypublic ResultProducers allowNoResults(boolean allowNoResults)
allowNoResults - the new allowNoResults settingpublic ResultProducers createCopy()
JdbiConfigcreateCopy in interface JdbiConfig<ResultProducers>public static ResultProducer<ResultBearing> returningGeneratedKeys(String... generatedKeyColumnNames)
ResultBearing over the statement-generated keys.generatedKeyColumnNames - optional list of generated key column names.Statement.getGeneratedKeys()public static ResultProducer<ResultBearing> returningResults()
ResultBearing over the statement result rows.Statement.getResultSet()public static ResultProducer<Integer> returningUpdateCount()
Statement.getUpdateCount()Copyright © 2019. All rights reserved.