Class JdbiCollectors
java.lang.Object
org.jdbi.v3.core.collector.JdbiCollectors
- All Implemented Interfaces:
JdbiConfig<JdbiCollectors>
Registry of collector factories.
Contains a set of collector factories, registered by the application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.findElementTypeFor(Type containerType) Returns the element type for the given container type.Obtain a collector for the given type.register(CollectorFactory factory) Register a newCollectorFactory.registerCollector(Type collectionType, Collector<?, ?, ?> collector) Register a newCollectorfor the given type.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JdbiConfig
setRegistry
-
Constructor Details
-
JdbiCollectors
public JdbiCollectors()
-
-
Method Details
-
register
Register a newCollectorFactory.- Parameters:
factory- A collector factory- Returns:
- this
-
registerCollector
-
findFor
-
findElementTypeFor
-
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<JdbiCollectors>- Returns:
- a copy of this configuration object.
-