/** * 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); }
/** * If not already created, a new <code>injection-target</code> element will be created and returned. * Otherwise, the first existing <code>injection-target</code> element will be returned. * @return the instance defined for the element <code>injection-target</code> */ public InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget() { List<Node> nodeList = childNode.get("injection-target"); if (nodeList != null && nodeList.size() > 0) { return new InjectionTargetTypeImpl<PersistenceUnitRefType<T>>(this, "injection-target", childNode, nodeList.get(0)); } return createInjectionTarget(); }
/** * If not already created, a new <code>injection-target</code> element will be created and returned. * Otherwise, the first existing <code>injection-target</code> element will be returned. * @return the instance defined for the element <code>injection-target</code> */ public InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget() { List<Node> nodeList = childNode.get("injection-target"); if (nodeList != null && nodeList.size() > 0) { return new InjectionTargetTypeImpl<PersistenceUnitRefType<T>>(this, "injection-target", childNode, nodeList.get(0)); } return createInjectionTarget(); }
/** * 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); }
/** * If not already created, a new <code>injection-target</code> element will be created and returned. * Otherwise, the first existing <code>injection-target</code> element will be returned. * @return the instance defined for the element <code>injection-target</code> */ public InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget() { List<Node> nodeList = childNode.get("injection-target"); if (nodeList != null && nodeList.size() > 0) { return new InjectionTargetTypeImpl<PersistenceUnitRefType<T>>(this, "injection-target", childNode, nodeList.get(0)); } return createInjectionTarget(); }
/** * 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); }
/** * If not already created, a new <code>injection-target</code> element will be created and returned. * Otherwise, the first existing <code>injection-target</code> element will be returned. * @return the instance defined for the element <code>injection-target</code> */ public InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget() { List<Node> nodeList = childNode.get("injection-target"); if (nodeList != null && nodeList.size() > 0) { return new InjectionTargetTypeImpl<PersistenceUnitRefType<T>>(this, "injection-target", childNode, nodeList.get(0)); } return createInjectionTarget(); }
/** * 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<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<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<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<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<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<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<ApplicationDescriptor></code> */ public PersistenceUnitRefType<ApplicationDescriptor> createPersistenceUnitRef() { return new PersistenceUnitRefTypeImpl<ApplicationDescriptor>(this, "persistence-unit-ref", model); }
/** * Returns all <code>persistence-unit-ref</code> elements * @return list of <code>persistence-unit-ref</code> */ public List<PersistenceUnitRefType<WebFragmentDescriptor>> getAllPersistenceUnitRef() { List<PersistenceUnitRefType<WebFragmentDescriptor>> list = new ArrayList<PersistenceUnitRefType<WebFragmentDescriptor>>(); List<Node> nodeList = model.get("persistence-unit-ref"); for(Node node: nodeList) { PersistenceUnitRefType<WebFragmentDescriptor> type = new PersistenceUnitRefTypeImpl<WebFragmentDescriptor>(this, "persistence-unit-ref", model, 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<ApplicationDescriptor>> getAllPersistenceUnitRef() { List<PersistenceUnitRefType<ApplicationDescriptor>> list = new ArrayList<PersistenceUnitRefType<ApplicationDescriptor>>(); List<Node> nodeList = model.get("persistence-unit-ref"); for(Node node: nodeList) { PersistenceUnitRefType<ApplicationDescriptor> type = new PersistenceUnitRefTypeImpl<ApplicationDescriptor>(this, "persistence-unit-ref", model, node); list.add(type); } return list; }