Tabnine Logo
EnumArgumentFactory.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.ning.billing.util.dao.EnumArgumentFactory
constructor

Best Java code snippets using com.ning.billing.util.dao.EnumArgumentFactory.<init> (Showing top 2 results out of 315)

origin: com.ning.billing/killbill-analytics

  private DBI createDBI(final ConfigSource configSource) {
    final ComboPooledDataSource dataSource = new ComboPooledDataSource();
    dataSource.setJdbcUrl(configSource.getString(ANALYTICS_DBI_CONFIG_STRING + "url"));
    dataSource.setUser(configSource.getString(ANALYTICS_DBI_CONFIG_STRING + "user"));
    dataSource.setPassword(configSource.getString(ANALYTICS_DBI_CONFIG_STRING + "password"));
    dataSource.setMinPoolSize(1);
    dataSource.setMaxPoolSize(10);
    dataSource.setCheckoutTimeout(10 * 1000);
    dataSource.setMaxIdleTime(60 * 60);
    dataSource.setMaxConnectionAge(0);
    dataSource.setIdleConnectionTestPeriod(5 * 60);

    final DBI dbi = new DBI(dataSource);
    dbi.registerArgumentFactory(new UUIDArgumentFactory());
    dbi.registerArgumentFactory(new DateTimeZoneArgumentFactory());
    dbi.registerArgumentFactory(new DateTimeArgumentFactory());
    dbi.registerArgumentFactory(new LocalDateArgumentFactory());
    dbi.registerArgumentFactory(new EnumArgumentFactory());
    dbi.registerMapper(new UuidMapper());
    try {
      dbi.setTransactionHandler((TransactionHandler) Class.forName("com.ning.jetty.jdbi.RestartTransactionRunner").newInstance());
    } catch (Exception e) {
      logger.warn("Unable to register transaction handler");
    }

    return dbi;
  }
}
origin: com.ning.billing/killbill-util

  @Override
  public IDBI get() {
    final DBI dbi = new DBI(ds);
    dbi.registerArgumentFactory(new UUIDArgumentFactory());
    dbi.registerArgumentFactory(new DateTimeZoneArgumentFactory());
    dbi.registerArgumentFactory(new DateTimeArgumentFactory());
    dbi.registerArgumentFactory(new LocalDateArgumentFactory());
    dbi.registerArgumentFactory(new EnumArgumentFactory());
    dbi.registerMapper(new UuidMapper());
    dbi.registerMapper(new AuditLogModelDaoMapper());
    dbi.registerMapper(new RecordIdIdMappingsMapper());

    // Restart transactions in case of deadlocks
    dbi.setTransactionHandler(new SerializableTransactionRunner());
    //final SQLLog log = new Log4JLog();
    //dbi.setSQLLog(log);

    return dbi;
  }
}
com.ning.billing.util.daoEnumArgumentFactory<init>

Popular methods of EnumArgumentFactory

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getSupportFragmentManager (FragmentActivity)
    • getContentResolver (Context)
    • getApplicationContext (Context)
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • System (java.lang)
      Provides access to system-related information and resources including standard input and output. Ena
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • Random (java.util)
      This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
    • JTable (javax.swing)
    • Options (org.apache.commons.cli)
      Main entry-point into the library. Options represents a collection of Option objects, which describ
    • 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