Class JdbiImmutables
java.lang.Object
org.jdbi.v3.core.mapper.immutables.JdbiImmutables
- All Implemented Interfaces:
- JdbiConfig<JdbiImmutables>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns a copy of this configuration object.registerImmutable(Class<?>... specs) Convenience method for registering many immutable types.<S> JdbiImmutablesregisterImmutable(Class<S> spec) Register bean arguments and row mapping for anImmutable*value class, expecting the default generated class and builder names.<S,I extends S> 
 JdbiImmutablesregisterImmutable(Class<S> spec, Class<I> impl, Supplier<?> builder) Register bean arguments and row mapping for anImmutable*value class, using a supplied implementation and builder.registerImmutable(Iterable<Class<?>> specs) Convenience method for registering many immutable types.registerModifiable(Class<?>... specs) Convenience method for registering many modifiable types.<S> JdbiImmutablesregisterModifiable(Class<S> spec) Register bean arguments and row mapping for anModifiable*value class, expecting the default generated class and public nullary constructor.<S,M extends S> 
 JdbiImmutablesregisterModifiable(Class<S> spec, Class<M> impl, Supplier<?> constructor) Register bean arguments and row mapping for anModifiable*value class, using a supplied implementation and constructor.registerModifiable(Iterable<Class<?>> specs) Convenience method for registering many modifiable types.voidsetRegistry(ConfigRegistry registry) The registry will inject itself into the configuration object.
- 
Constructor Details- 
JdbiImmutablespublic JdbiImmutables()
 
- 
- 
Method Details- 
setRegistryDescription copied from interface:JdbiConfigThe registry will inject itself into the configuration object. This can be useful if you need to look up dependencies. You will get a new registry after being copied.- Specified by:
- setRegistryin interface- JdbiConfig<JdbiImmutables>
- Parameters:
- registry- the registry that owns this configuration object
 
- 
registerImmutableRegister bean arguments and row mapping for anImmutable*value class, expecting the default generated class and builder names.- Type Parameters:
- S- the specification class
- Parameters:
- spec- the specification interface or abstract class
- Returns:
- a plugin that configures type mapping for the given class
 
- 
registerImmutableConvenience method for registering many immutable types.- See Also:
 
- 
registerImmutableConvenience method for registering many immutable types.- See Also:
 
- 
registerImmutablepublic <S,I extends S> JdbiImmutables registerImmutable(Class<S> spec, Class<I> impl, Supplier<?> builder) Register bean arguments and row mapping for anImmutable*value class, using a supplied implementation and builder.- Type Parameters:
- S- the specification class
- I- the implementation class
- Parameters:
- spec- the specification interface or abstract class
- impl- the generated implementation class
- builder- a supplier of new Builder instances
- Returns:
- a plugin that configures type mapping for the given class
 
- 
registerModifiableConvenience method for registering many modifiable types.- See Also:
 
- 
registerModifiableConvenience method for registering many modifiable types.- See Also:
 
- 
registerModifiableRegister bean arguments and row mapping for anModifiable*value class, expecting the default generated class and public nullary constructor.- Type Parameters:
- S- the specification class
- Parameters:
- spec- the specification interface or abstract class
- Returns:
- a plugin that configures type mapping for the given class
 
- 
registerModifiablepublic <S,M extends S> JdbiImmutables registerModifiable(Class<S> spec, Class<M> impl, Supplier<?> constructor) Register bean arguments and row mapping for anModifiable*value class, using a supplied implementation and constructor.- Type Parameters:
- S- the specification class
- M- the modifiable class
- Parameters:
- spec- the specification interface or abstract class
- impl- the modifiable class
- constructor- a supplier of new Modifiable instances
- Returns:
- a plugin that configures type mapping for the given class
 
- 
createCopyDescription 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 interface- JdbiConfig<JdbiImmutables>
- Returns:
- a copy of this configuration object.
 
 
-