@Beta public class JdbiImmutables extends Object implements JdbiConfig<JdbiImmutables>
| Constructor and Description |
|---|
JdbiImmutables() |
| Modifier and Type | Method and Description |
|---|---|
JdbiImmutables |
createCopy()
Returns a copy of this configuration object.
|
JdbiImmutables |
registerImmutable(Class<?>... specs)
Convenience method for registering many immutable types.
|
<S> JdbiImmutables |
registerImmutable(Class<S> spec)
Register bean arguments and row mapping for an
Immutable* value class, expecting the default generated class and builder names. |
<S,I extends S> |
registerImmutable(Class<S> spec,
Class<I> impl,
Supplier<?> builder)
Register bean arguments and row mapping for an
Immutable* value class, using a supplied implementation and builder. |
JdbiImmutables |
registerImmutable(Iterable<Class<?>> specs)
Convenience method for registering many immutable types.
|
JdbiImmutables |
registerModifiable(Class<?>... specs)
Convenience method for registering many modifiable types.
|
<S> JdbiImmutables |
registerModifiable(Class<S> spec)
Register bean arguments and row mapping for an
Modifiable* value class, expecting the default generated class and public nullary constructor. |
<S,M extends S> |
registerModifiable(Class<S> spec,
Class<M> impl,
Supplier<?> constructor)
Register bean arguments and row mapping for an
Modifiable* value class, using a supplied implementation and constructor. |
JdbiImmutables |
registerModifiable(Iterable<Class<?>> specs)
Convenience method for registering many modifiable types.
|
void |
setRegistry(ConfigRegistry registry)
The registry will inject itself into the configuration object.
|
public JdbiImmutables createCopy()
JdbiConfigcreateCopy in interface JdbiConfig<JdbiImmutables>public JdbiImmutables registerImmutable(Class<?>... specs)
registerImmutable(Class)public <S> JdbiImmutables registerImmutable(Class<S> spec)
Immutable* value class, expecting the default generated class and builder names.S - the specification classspec - the specification interface or abstract classpublic <S,I extends S> JdbiImmutables registerImmutable(Class<S> spec, Class<I> impl, Supplier<?> builder)
Immutable* value class, using a supplied implementation and builder.S - the specification classI - the implementation classspec - the specification interface or abstract classimpl - the generated implementation classbuilder - a supplier of new Builder instancespublic JdbiImmutables registerImmutable(Iterable<Class<?>> specs)
registerImmutable(Class)public JdbiImmutables registerModifiable(Class<?>... specs)
registerModifiable(Class)public <S> JdbiImmutables registerModifiable(Class<S> spec)
Modifiable* value class, expecting the default generated class and public nullary constructor.S - the specification classspec - the specification interface or abstract classpublic <S,M extends S> JdbiImmutables registerModifiable(Class<S> spec, Class<M> impl, Supplier<?> constructor)
Modifiable* value class, using a supplied implementation and constructor.S - the specification classM - the modifiable classspec - the specification interface or abstract classimpl - the modifiable classconstructor - a supplier of new Modifiable instancespublic JdbiImmutables registerModifiable(Iterable<Class<?>> specs)
registerModifiable(Class)public void setRegistry(ConfigRegistry registry)
JdbiConfigsetRegistry in interface JdbiConfig<JdbiImmutables>registry - the registry that owns this configuration objectCopyright © 2019. All rights reserved.