private static Document getBillingResult(final long subscriptionKey,
final long billingPeriodStart, final long billingPeriodEnd)
throws Exception {
return runTX(new Callable<Document>() {
@Override
public Document call() throws Exception {
DataService dataService = container.get(DataService.class);
Query query = dataService
.createNamedQuery("BillingResult.findBillingResult");
query.setParameter("subscriptionKey",
Long.valueOf(subscriptionKey));
query.setParameter("startPeriod",
Long.valueOf(billingPeriodStart));
query.setParameter("endPeriod", Long.valueOf(billingPeriodEnd));
BillingResult billingResult = (BillingResult) query
.getSingleResult();
Document doc = XMLConverter.convertToDocument(
billingResult.getResultXML(), true);
return doc;
}
});
}
OneTimeFeeAsyncIT.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:oscm
作者:
评论列表
文章目录