Tabnine Logo
RegisterMapperFactory.value
Code IndexAdd Tabnine to your IDE (free)

How to use
value
method
in
org.skife.jdbi.v2.sqlobject.customizers.RegisterMapperFactory

Best Java code snippets using org.skife.jdbi.v2.sqlobject.customizers.RegisterMapperFactory.value (Showing top 4 results out of 315)

origin: com.ning.billing/killbill-osgi-bundles-analytics

public SqlStatementCustomizer createForType(Annotation annotation, Class sqlObjectType)
{
  final RegisterMapperFactory ma = (RegisterMapperFactory) annotation;
  final ResultSetMapperFactory[] m = new ResultSetMapperFactory[ma.value().length];
  try {
    Class<? extends ResultSetMapperFactory>[] mcs = ma.value();
    for (int i = 0; i < mcs.length; i++) {
      m[i] = mcs[i].newInstance();
    }
  }
  catch (Exception e) {
    throw new IllegalStateException("unable to create a specified result set mapper", e);
  }
  return new SqlStatementCustomizer()
  {
    public void apply(SQLStatement statement)
    {
      if (statement instanceof Query) {
        Query q = (Query) statement;
        for (ResultSetMapperFactory factory : m) {
          q.registerMapper(factory);
        }
      }
    }
  };
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

public SqlStatementCustomizer createForMethod(Annotation annotation, Class sqlObjectType, Method method)
{
  final RegisterMapperFactory ma = (RegisterMapperFactory) annotation;
  final ResultSetMapperFactory[] m = new ResultSetMapperFactory[ma.value().length];
  try {
    Class<? extends ResultSetMapperFactory>[] mcs = ma.value();
    for (int i = 0; i < mcs.length; i++) {
      m[i] = mcs[i].newInstance();
    }
  }
  catch (Exception e) {
    throw new IllegalStateException("unable to create a specified result set mapper", e);
  }
  return new SqlStatementCustomizer()
  {
    public void apply(SQLStatement statement)
    {
      if (statement instanceof Query) {
        Query q = (Query) statement;
        for (ResultSetMapperFactory factory : m) {
          q.registerMapper(factory);
        }
      }
    }
  };
}
origin: org.kill-bill.commons/killbill-jdbi

@Override
public SqlStatementCustomizer createForMethod(Annotation annotation, Class sqlObjectType, Method method)
{
  final RegisterMapperFactory ma = (RegisterMapperFactory) annotation;
  final ResultSetMapperFactory[] m = new ResultSetMapperFactory[ma.value().length];
  try {
    Class<? extends ResultSetMapperFactory>[] mcs = ma.value();
    for (int i = 0; i < mcs.length; i++) {
      m[i] = mcs[i].newInstance();
    }
  }
  catch (Exception e) {
    throw new IllegalStateException("unable to create a specified result set mapper", e);
  }
  return new SqlStatementCustomizer()
  {
    @Override
    public void apply(SQLStatement statement)
    {
      if (statement instanceof Query) {
        Query q = (Query) statement;
        for (ResultSetMapperFactory factory : m) {
          q.registerMapper(factory);
        }
      }
    }
  };
}
origin: org.kill-bill.commons/killbill-jdbi

@Override
public SqlStatementCustomizer createForType(Annotation annotation, Class sqlObjectType)
{
  final RegisterMapperFactory ma = (RegisterMapperFactory) annotation;
  final ResultSetMapperFactory[] m = new ResultSetMapperFactory[ma.value().length];
  try {
    Class<? extends ResultSetMapperFactory>[] mcs = ma.value();
    for (int i = 0; i < mcs.length; i++) {
      m[i] = mcs[i].newInstance();
    }
  }
  catch (Exception e) {
    throw new IllegalStateException("unable to create a specified result set mapper", e);
  }
  return new SqlStatementCustomizer()
  {
    @Override
    public void apply(SQLStatement statement)
    {
      if (statement instanceof Query) {
        Query q = (Query) statement;
        for (ResultSetMapperFactory factory : m) {
          q.registerMapper(factory);
        }
      }
    }
  };
}
org.skife.jdbi.v2.sqlobject.customizersRegisterMapperFactoryvalue

Popular methods of RegisterMapperFactory

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JButton (javax.swing)
  • From CI to AI: The AI layer in your organization
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