Tabnine Logo
JdbiImmutables.register
Code IndexAdd Tabnine to your IDE (free)

How to use
register
method
in
org.jdbi.v3.core.mapper.immutables.JdbiImmutables

Best Java code snippets using org.jdbi.v3.core.mapper.immutables.JdbiImmutables.register (Showing top 2 results out of 315)

origin: jdbi/jdbi

/**
 * Register bean arguments and row mapping for an {@code Modifiable*} value class, using a supplied implementation and constructor.
 * @param spec the specification interface or abstract class
 * @param impl the modifiable class
 * @param constructor a supplier of new Modifiable instances
 * @param <S> the specification class
 * @param <M> the modifiable class
 * @return a plugin that configures type mapping for the given class
 */
public <S, M extends S> JdbiImmutables registerModifiable(Class<S> spec, Class<M> impl, Supplier<?> constructor) {
  return register(spec, impl, ImmutablesPropertiesFactory.modifiable(spec, impl, () -> impl.cast(constructor.get())));
}
origin: jdbi/jdbi

/**
 * Register bean arguments and row mapping for an {@code Immutable*} value class, using a supplied implementation and builder.
 * @param spec the specification interface or abstract class
 * @param impl the generated implementation class
 * @param builder a supplier of new Builder instances
 * @param <S> the specification class
 * @param <I> the implementation class
 * @return a plugin that configures type mapping for the given class
 */
public <S, I extends S> JdbiImmutables registerImmutable(Class<S> spec, Class<I> impl, Supplier<?> builder) {
  return register(spec, impl, ImmutablesPropertiesFactory.immutable(spec, builder));
}
org.jdbi.v3.core.mapper.immutablesJdbiImmutablesregister

Javadoc

Register bean arguments and row mapping for an Immutable* value class, expecting the default generated class and builder names.

Popular methods of JdbiImmutables

  • registerImmutable
    Register bean arguments and row mapping for an Immutable* value class, using a supplied implementati
  • <init>
  • classByPrefix
  • constructorOf
  • nullaryMethodOf
  • registerModifiable
    Register bean arguments and row mapping for an Modifiable* value class, using a supplied implementat

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Path (java.nio.file)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JList (javax.swing)
  • JOptionPane (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now