@Override
@TransactionAttribute(TransactionAttributeType.MANDATORY)
public Date loadPriceModelStartDate(long priceModelKeyForSubscription) {
TypedQuery<PriceModelHistory> query = dm.createNamedQuery(
"PriceModelHistory.findByObjectAndProvisioningCompleted",
PriceModelHistory.class);
query.setParameter("objKey", Long.valueOf(priceModelKeyForSubscription));
query.setParameter("provisioningCompleted", Boolean.TRUE);
List<PriceModelHistory> resultList = query.getResultList();
if (resultList.isEmpty()) {
throw new BillingRunFailed(
"History data is missing for price model with key "
+ priceModelKeyForSubscription);
}
return resultList.get(0).getModdate();
}
BillingDataRetrievalServiceBean.java 文件源码
java
阅读 49
收藏 0
点赞 0
评论 0
项目:oscm
作者:
评论列表
文章目录