Package org.jdbi.v3.core.result
Class ResultProducers
java.lang.Object
org.jdbi.v3.core.result.ResultProducers
- All Implemented Interfaces:
 JdbiConfig<ResultProducers>
Commonly used ResultProducer implementations.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionallowNoResults(boolean allowed) Normally a query that doesn't return a result set throws an exception.Returns a copy of this configuration object.static ResultProducer<ResultBearing>returningGeneratedKeys(String... generatedKeyColumnNames) Result producer that returns aResultBearingover the statement-generated keys.static ResultProducer<ResultBearing>Result producer that returns aResultBearingover the statement result rows.static ResultProducer<Integer>Result producer that eagerly executes the statement, returning the update countMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry 
- 
Constructor Details
- 
ResultProducers
public ResultProducers() 
 - 
 - 
Method Details
- 
returningUpdateCount
Result producer that eagerly executes the statement, returning the update count- Returns:
 - update count
 - See Also:
 
 - 
returningResults
Result producer that returns aResultBearingover the statement result rows.- Returns:
 - ResultBearing of result rows.
 - See Also:
 
 - 
returningGeneratedKeys
public static ResultProducer<ResultBearing> returningGeneratedKeys(String... generatedKeyColumnNames) Result producer that returns aResultBearingover the statement-generated keys.- Parameters:
 generatedKeyColumnNames- optional list of generated key column names.- Returns:
 - ResultBearing of generated keys
 - See Also:
 
 - 
createCopy
Description copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
 createCopyin interfaceJdbiConfig<ResultProducers>- Returns:
 - a copy of this configuration object.
 
 - 
allowNoResults
Normally a query that doesn't return a result set throws an exception. With this option, we will replace it with an empty result set instead.- Parameters:
 allowed- the new allowNoResults setting- Returns:
 - this
 
 
 -