/** * write a list of entity manager reference descriptors to a DOM Tree * * @param parentNode parent node for the DOM tree * @param entityMgrRefs the iterator over the descriptors to write */ protected void writeEntityManagerReferenceDescriptors(Node parentNode, Iterator entityMgrRefs) { if (entityMgrRefs==null || !entityMgrRefs.hasNext()) return; EntityManagerReferenceNode subNode = new EntityManagerReferenceNode(); for (;entityMgrRefs.hasNext();) { EntityManagerReferenceDescriptor aEntityMgrRef = (EntityManagerReferenceDescriptor)entityMgrRefs.next(); subNode.writeDescriptor(parentNode, TagNames.PERSISTENCE_CONTEXT_REF, aEntityMgrRef); } }
/** * write a list of entity manager reference descriptors to a DOM Tree * * @param parentNode parent node for the DOM tree * @param entityMgrRefs the iterator over the descriptors to write */ protected void writeEntityManagerReferenceDescriptors(Node parentNode, Iterator entityMgrRefs) { if (entityMgrRefs==null || !entityMgrRefs.hasNext()) return; EntityManagerReferenceNode subNode = new EntityManagerReferenceNode(); for (;entityMgrRefs.hasNext();) { EntityManagerReferenceDescriptor aEntityMgrRef = (EntityManagerReferenceDescriptor)entityMgrRefs.next(); subNode.writeDescriptor(parentNode, TagNames.PERSISTENCE_CONTEXT_REF, aEntityMgrRef); } }