Tabnine Logo
EntitySqlDaoTransactionalJdbiWrapper.populateCaches
Code IndexAdd Tabnine to your IDE (free)

How to use
populateCaches
method
in
org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper

Best Java code snippets using org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper.populateCaches (Showing top 6 results out of 315)

origin: killbill/killbill

public void create(final Iterable<M> entities, final InternalCallContext context) throws U {
  final List<M> refreshedEntities = transactionalSqlDao.execute(false, targetExceptionClass, getCreateEntitySqlDaoTransactionWrapper(entities, context));
  // Populate the caches only after the transaction has been committed, in case of rollbacks
  for (M refreshedEntity : refreshedEntities) {
    transactionalSqlDao.populateCaches(refreshedEntity);
  }
}
origin: killbill/killbill

@Override
public void create(final M entity, final InternalCallContext context) throws U {
  final M refreshedEntity = transactionalSqlDao.execute(false, targetExceptionClass, getCreateEntitySqlDaoTransactionWrapper(entity, context));
  // Populate the caches only after the transaction has been committed, in case of rollbacks
  transactionalSqlDao.populateCaches(refreshedEntity);
}
origin: killbill/killbill

@Override
public void create(final AccountModelDao entity, final InternalCallContext context) throws AccountApiException {
  // We don't enforce the created_date for the Account because it is extracted from context
  // so, if there is no referenceTime specified we have to set it from the InternalCallContext#created_date
  //
  if (entity.getReferenceTime() == null) {
    entity.setReferenceTime(context.getCreatedDate());
  }
  final AccountModelDao refreshedEntity = transactionalSqlDao.execute(false, getCreateEntitySqlDaoTransactionWrapper(entity, context));
  // Populate the caches only after the transaction has been committed, in case of rollbacks
  transactionalSqlDao.populateCaches(refreshedEntity);
  // Eagerly populate the account-immutable cache as well
  accountImmutableCacheController.putIfAbsent(refreshedEntity.getRecordId(), new DefaultImmutableAccountData(refreshedEntity));
}
origin: org.kill-bill.billing/killbill-util

public void create(final Iterable<M> entities, final InternalCallContext context) throws U {
  final List<M> refreshedEntities = transactionalSqlDao.execute(false, targetExceptionClass, getCreateEntitySqlDaoTransactionWrapper(entities, context));
  // Populate the caches only after the transaction has been committed, in case of rollbacks
  for (M refreshedEntity : refreshedEntities) {
    transactionalSqlDao.populateCaches(refreshedEntity);
  }
}
origin: org.kill-bill.billing/killbill-util

@Override
public void create(final M entity, final InternalCallContext context) throws U {
  final M refreshedEntity = transactionalSqlDao.execute(false, targetExceptionClass, getCreateEntitySqlDaoTransactionWrapper(entity, context));
  // Populate the caches only after the transaction has been committed, in case of rollbacks
  transactionalSqlDao.populateCaches(refreshedEntity);
}
origin: org.kill-bill.billing/killbill-account

@Override
public void create(final AccountModelDao entity, final InternalCallContext context) throws AccountApiException {
  // We don't enforce the created_date for the Account because it is extracted from context
  // so, if there is no referenceTime specified we have to set it from the InternalCallContext#created_date
  //
  if (entity.getReferenceTime() == null) {
    entity.setReferenceTime(context.getCreatedDate());
  }
  final AccountModelDao refreshedEntity = transactionalSqlDao.execute(false, getCreateEntitySqlDaoTransactionWrapper(entity, context));
  // Populate the caches only after the transaction has been committed, in case of rollbacks
  transactionalSqlDao.populateCaches(refreshedEntity);
  // Eagerly populate the account-immutable cache as well
  accountImmutableCacheController.putIfAbsent(refreshedEntity.getRecordId(), new DefaultImmutableAccountData(refreshedEntity));
}
org.killbill.billing.util.entity.daoEntitySqlDaoTransactionalJdbiWrapperpopulateCaches

Popular methods of EntitySqlDaoTransactionalJdbiWrapper

  • <init>
  • execute
  • getDebugInfo
  • onDemandForStreamingResults

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Runner (org.openjdk.jmh.runner)
  • Top Vim 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