Tabnine Logo
EntitySqlDao.getByRecordId
Code IndexAdd Tabnine to your IDE (free)

How to use
getByRecordId
method
in
org.killbill.billing.util.entity.dao.EntitySqlDao

Best Java code snippets using org.killbill.billing.util.entity.dao.EntitySqlDao.getByRecordId (Showing top 5 results out of 315)

origin: killbill/killbill

  @Override
  public M inTransaction(final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory) throws Exception {
    final EntitySqlDao<M, E> transactional = entitySqlDaoWrapperFactory.become(realSqlDao);
    return transactional.getByRecordId(recordId, context);
  }
});
origin: killbill/killbill

  @Override
  public AccountModelDao inTransaction(final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory) throws Exception {
    final EntitySqlDao<AccountModelDao, Account> transactional = entitySqlDaoWrapperFactory.become(AccountSqlDao.class);
    return transactional.getByRecordId(recordId, context);
  }
});
origin: org.kill-bill.billing/killbill-account

  @Override
  public AccountModelDao inTransaction(final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory) throws Exception {
    final EntitySqlDao<AccountModelDao, Account> transactional = entitySqlDaoWrapperFactory.become(AccountSqlDao.class);
    return transactional.getByRecordId(recordId, context);
  }
});
origin: org.kill-bill.billing/killbill-util

  @Override
  public M inTransaction(final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory) throws Exception {
    final EntitySqlDao<M, E> transactional = entitySqlDaoWrapperFactory.become(realSqlDao);
    return transactional.getByRecordId(recordId, context);
  }
});
origin: org.kill-bill.billing/killbill-beatrix

private <T extends EntitySqlDao<M, E>, M extends EntityModelDao<E>, E extends Entity> M extractEntityModelFromEntityWithTargetRecordId(final UUID entityId, final UUID auditLogId, final Class<T> sqlDao, final CallContext context, final boolean useHistory) {
  final M modelDaoThatGivesMeTableName = dbi.onDemand(sqlDao).getById(entityId.toString(), callContextFactory.createInternalCallContextWithoutAccountRecordId(context));
  Integer targetRecordId = dbi.withHandle(new HandleCallback<Integer>() {
    @Override
    public Integer withHandle(final Handle handle) throws Exception {
      List<Map<String, Object>> res = handle.select("select target_record_id from audit_log where id = '" + auditLogId.toString() + "';");
      return Integer.valueOf(res.get(0).get("target_record_id").toString());
    }
  });
  if (useHistory) {
    Long entityRecordId = nonEntityDao.retrieveHistoryTargetRecordId(Long.valueOf(targetRecordId), modelDaoThatGivesMeTableName.getHistoryTableName());
    targetRecordId = new Integer(entityRecordId.intValue());
  }
  return dbi.onDemand(sqlDao).getByRecordId(Long.valueOf(targetRecordId), callContextFactory.createInternalCallContextWithoutAccountRecordId(context));
}
org.killbill.billing.util.entity.daoEntitySqlDaogetByRecordId

Popular methods of EntitySqlDao

  • getById
  • addHistoryFromTransaction
  • create
  • get
  • getAll
  • getAuditLogsForAccountRecordId
  • getAuditLogsForTableNameAndAccountRecordId
  • getAuditLogsForTargetRecordId
  • getAuditLogsViaHistoryForTargetRecordId
  • getByAccountRecordId
  • getCount
  • getRecordId
  • getCount,
  • getRecordId,
  • inTransaction,
  • insertAuditFromTransaction,
  • test

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • putExtra (Intent)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ImageIO (javax.imageio)
  • JTable (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
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