return newSubscriptionVO;
}
public Subscription create(SubscriptionVO subscriptionVO,List<SubscriptionFilterVO> subscriptionFilterVOList, Database db) throws ConstraintException, SystemException, Exception
{
Subscription subscription = new SubscriptionImpl();
subscription.setValueObject(subscriptionVO);
subscription = (Subscription) createEntity(subscription, db);
Iterator<SubscriptionFilterVO> subscriptionFilterVOListIterator = subscriptionFilterVOList.iterator();
while(subscriptionFilterVOListIterator.hasNext())
{
SubscriptionFilterVO subscriptionFilterVO = subscriptionFilterVOListIterator.next();
SubscriptionFilterImpl subscriptionFilter = new SubscriptionFilterImpl();
subscriptionFilter.setValueObject(subscriptionFilterVO);
subscriptionFilter.setSubscription(subscription);
subscription.getSubscriptionFilters().add(subscriptionFilter);
}
return subscription;
}