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

How to use
org.killbill.billing.util.entity.dao.DBRouterUntyped
constructor

Best Java code snippets using org.killbill.billing.util.entity.dao.DBRouterUntyped.<init> (Showing top 3 results out of 315)

origin: killbill/killbill

public EntitySqlDaoTransactionalJdbiWrapper(final IDBI dbi, final IDBI roDbi, final Clock clock, final CacheControllerDispatcher cacheControllerDispatcher,
                      final NonEntityDao nonEntityDao, final InternalCallContextFactory internalCallContextFactory) {
  this.clock = clock;
  this.cacheControllerDispatcher = cacheControllerDispatcher;
  this.nonEntityDao = nonEntityDao;
  this.internalCallContextFactory = internalCallContextFactory;
  this.dbRouter = new DBRouterUntyped(dbi, roDbi);
}
origin: org.kill-bill.billing/killbill-util

public EntitySqlDaoTransactionalJdbiWrapper(final IDBI dbi, final IDBI roDbi, final Clock clock, final CacheControllerDispatcher cacheControllerDispatcher,
                      final NonEntityDao nonEntityDao, final InternalCallContextFactory internalCallContextFactory) {
  this.clock = clock;
  this.cacheControllerDispatcher = cacheControllerDispatcher;
  this.nonEntityDao = nonEntityDao;
  this.internalCallContextFactory = internalCallContextFactory;
  this.dbRouter = new DBRouterUntyped(dbi, roDbi);
}
origin: org.kill-bill.billing/killbill-beatrix

@Inject
public TestDBRouterAPI() {
  final IDBI dbi = Mockito.mock(IDBI.class);
  Mockito.when(dbi.open()).thenAnswer(new Answer<Handle>() {
    @Override
    public Handle answer(final InvocationOnMock invocation) {
      rwCalls.incrementAndGet();
      return null;
    }
  });
  final IDBI roDbi = Mockito.mock(IDBI.class);
  Mockito.when(roDbi.open()).thenAnswer(new Answer<Handle>() {
    @Override
    public Handle answer(final InvocationOnMock invocation) {
      roCalls.incrementAndGet();
      return null;
    }
  });
  this.dbRouter = new DBRouterUntyped(dbi, roDbi);
}
org.killbill.billing.util.entity.daoDBRouterUntyped<init>

Popular methods of DBRouterUntyped

  • withRODBIAllowed
  • getCurrentState
  • getHandle
  • disallowRODBI
  • isRODBIAllowed
  • onDemand
  • shouldUseRODBI

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Collectors (java.util.stream)
  • JPanel (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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