/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<SessionBeanType<T>></code> */ public PersistenceUnitRefType<SessionBeanType<T>> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<SessionBeanType<T>>(this, "persistence-unit-ref", childNode); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<WebAppDescriptor></code> */ public PersistenceUnitRefType<WebAppDescriptor> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<WebAppDescriptor>(this, "persistence-unit-ref", model); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<WebFragmentDescriptor></code> */ public PersistenceUnitRefType<WebFragmentDescriptor> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<WebFragmentDescriptor>(this, "persistence-unit-ref", model); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<MessageDrivenBeanType<T>></code> */ public PersistenceUnitRefType<MessageDrivenBeanType<T>> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<MessageDrivenBeanType<T>>(this, "persistence-unit-ref", childNode); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<MessageDrivenBeanType<T>></code> */ public PersistenceUnitRefType<MessageDrivenBeanType<T>> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<MessageDrivenBeanType<T>>(this, "persistence-unit-ref", childNode); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<ApplicationDescriptor></code> */ public PersistenceUnitRefType<ApplicationDescriptor> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<ApplicationDescriptor>(this, "persistence-unit-ref", model); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<ApplicationDescriptor></code> */ public PersistenceUnitRefType<ApplicationDescriptor> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<ApplicationDescriptor>(this, "persistence-unit-ref", model); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<InterceptorType<T>></code> */ public PersistenceUnitRefType<InterceptorType<T>> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<InterceptorType<T>>(this, "persistence-unit-ref", childNode); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<InterceptorType<T>></code> */ public PersistenceUnitRefType<InterceptorType<T>> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<InterceptorType<T>>(this, "persistence-unit-ref", childNode); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<SessionBeanType<T>></code> */ public PersistenceUnitRefType<SessionBeanType<T>> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<SessionBeanType<T>>(this, "persistence-unit-ref", childNode); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<EntityBeanType<T>></code> */ public PersistenceUnitRefType<EntityBeanType<T>> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<EntityBeanType<T>>(this, "persistence-unit-ref", childNode); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<WebAppDescriptor></code> */ public PersistenceUnitRefType<WebAppDescriptor> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<WebAppDescriptor>(this, "persistence-unit-ref", model); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<WebFragmentDescriptor></code> */ public PersistenceUnitRefType<WebFragmentDescriptor> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<WebFragmentDescriptor>(this, "persistence-unit-ref", model); }
/** * Creates a new <code>persistence-unit-ref</code> element * @return the new created instance of <code>PersistenceUnitRefType<EntityBeanType<T>></code> */ public PersistenceUnitRefType<EntityBeanType<T>> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<EntityBeanType<T>>(this, "persistence-unit-ref", childNode); }
/** * Returns all <code>persistence-unit-ref</code> elements * @return list of <code>persistence-unit-ref</code> */ public List<PersistenceUnitRefType<SessionBeanType<T>>> getAllPersistenceUnitRef() { List<PersistenceUnitRefType<SessionBeanType<T>>> list = new ArrayList<PersistenceUnitRefType<SessionBeanType<T>>>(); List<Node> nodeList = childNode.get("persistence-unit-ref"); for(Node node: nodeList) { PersistenceUnitRefType<SessionBeanType<T>> type = new PersistenceUnitRefTypeImpl<SessionBeanType<T>>(this, "persistence-unit-ref", childNode, node); list.add(type); } return list; }
/** * Returns all <code>persistence-unit-ref</code> elements * @return list of <code>persistence-unit-ref</code> */ public List<PersistenceUnitRefType<EntityBeanType<T>>> getAllPersistenceUnitRef() { List<PersistenceUnitRefType<EntityBeanType<T>>> list = new ArrayList<PersistenceUnitRefType<EntityBeanType<T>>>(); List<Node> nodeList = childNode.get("persistence-unit-ref"); for(Node node: nodeList) { PersistenceUnitRefType<EntityBeanType<T>> type = new PersistenceUnitRefTypeImpl<EntityBeanType<T>>(this, "persistence-unit-ref", childNode, node); list.add(type); } return list; }
/** * Returns all <code>persistence-unit-ref</code> elements * @return list of <code>persistence-unit-ref</code> */ public List<PersistenceUnitRefType<WebAppDescriptor>> getAllPersistenceUnitRef() { List<PersistenceUnitRefType<WebAppDescriptor>> list = new ArrayList<PersistenceUnitRefType<WebAppDescriptor>>(); List<Node> nodeList = model.get("persistence-unit-ref"); for(Node node: nodeList) { PersistenceUnitRefType<WebAppDescriptor> type = new PersistenceUnitRefTypeImpl<WebAppDescriptor>(this, "persistence-unit-ref", model, node); list.add(type); } return list; }
/** * If not already created, a new <code>persistence-unit-ref</code> element will be created and returned. * Otherwise, the first existing <code>persistence-unit-ref</code> element will be returned. * @return the instance defined for the element <code>persistence-unit-ref</code> */ public PersistenceUnitRefType<WebAppDescriptor> getOrCreatePersistenceUnitRef() { List<Node> nodeList = model.get("persistence-unit-ref"); if (nodeList != null && nodeList.size() > 0) { return new PersistenceUnitRefTypeImpl<WebAppDescriptor>(this, "persistence-unit-ref", model, nodeList.get(0)); } return createPersistenceUnitRef(); }
/** * If not already created, a new <code>persistence-unit-ref</code> element will be created and returned. * Otherwise, the first existing <code>persistence-unit-ref</code> element will be returned. * @return the instance defined for the element <code>persistence-unit-ref</code> */ public PersistenceUnitRefType<WebAppDescriptor> getOrCreatePersistenceUnitRef() { List<Node> nodeList = model.get("persistence-unit-ref"); if (nodeList != null && nodeList.size() > 0) { return new PersistenceUnitRefTypeImpl<WebAppDescriptor>(this, "persistence-unit-ref", model, nodeList.get(0)); } return createPersistenceUnitRef(); }
/** * If not already created, a new <code>persistence-unit-ref</code> element will be created and returned. * Otherwise, the first existing <code>persistence-unit-ref</code> element will be returned. * @return the instance defined for the element <code>persistence-unit-ref</code> */ public PersistenceUnitRefType<MessageDrivenBeanType<T>> getOrCreatePersistenceUnitRef() { List<Node> nodeList = childNode.get("persistence-unit-ref"); if (nodeList != null && nodeList.size() > 0) { return new PersistenceUnitRefTypeImpl<MessageDrivenBeanType<T>>(this, "persistence-unit-ref", childNode, nodeList.get(0)); } return createPersistenceUnitRef(); }