/** * If not already created, a new <code>entity-listeners</code> element with the given value will be created. * Otherwise, the existing <code>entity-listeners</code> element will be returned. * @return a new or existing instance of <code>EntityListeners<Entity<T>></code> */ public EntityListeners<Entity<T>> getOrCreateEntityListeners() { Node node = childNode.getOrCreate("entity-listeners"); EntityListeners<Entity<T>> entityListeners = new EntityListenersImpl<Entity<T>>(this, "entity-listeners", childNode, node); return entityListeners; }
/** * If not already created, a new <code>entity-listener</code> element will be created and returned. * Otherwise, the first existing <code>entity-listener</code> element will be returned. * @return the instance defined for the element <code>entity-listener</code> */ public EntityListener<EntityListeners<T>> getOrCreateEntityListener() { List<Node> nodeList = childNode.get("entity-listener"); if (nodeList != null && nodeList.size() > 0) { return new EntityListenerImpl<EntityListeners<T>>(this, "entity-listener", childNode, nodeList.get(0)); } return createEntityListener(); }
/** * If not already created, a new <code>entity-listener</code> element will be created and returned. * Otherwise, the first existing <code>entity-listener</code> element will be returned. * @return the instance defined for the element <code>entity-listener</code> */ public EntityListener<EntityListeners<T>> getOrCreateEntityListener() { List<Node> nodeList = childNode.get("entity-listener"); if (nodeList != null && nodeList.size() > 0) { return new EntityListenerImpl<EntityListeners<T>>(this, "entity-listener", childNode, nodeList.get(0)); } return createEntityListener(); }
/** * If not already created, a new <code>entity-listeners</code> element with the given value will be created. * Otherwise, the existing <code>entity-listeners</code> element will be returned. * @return a new or existing instance of <code>EntityListeners<MappedSuperclass<T>></code> */ public EntityListeners<MappedSuperclass<T>> getOrCreateEntityListeners() { Node node = childNode.getOrCreate("entity-listeners"); EntityListeners<MappedSuperclass<T>> entityListeners = new EntityListenersImpl<MappedSuperclass<T>>(this, "entity-listeners", childNode, node); return entityListeners; }
/** * If not already created, a new <code>entity-listeners</code> element with the given value will be created. * Otherwise, the existing <code>entity-listeners</code> element will be returned. * @return a new or existing instance of <code>EntityListeners<MappedSuperclass<T>></code> */ public EntityListeners<MappedSuperclass<T>> getOrCreateEntityListeners() { Node node = childNode.getOrCreate("entity-listeners"); EntityListeners<MappedSuperclass<T>> entityListeners = new EntityListenersImpl<MappedSuperclass<T>>(this, "entity-listeners", childNode, node); return entityListeners; }
/** * If not already created, a new <code>entity-listeners</code> element with the given value will be created. * Otherwise, the existing <code>entity-listeners</code> element will be returned. * @return a new or existing instance of <code>EntityListeners<PersistenceUnitDefaults<T>></code> */ public EntityListeners<PersistenceUnitDefaults<T>> getOrCreateEntityListeners() { Node node = childNode.getOrCreate("entity-listeners"); EntityListeners<PersistenceUnitDefaults<T>> entityListeners = new EntityListenersImpl<PersistenceUnitDefaults<T>>(this, "entity-listeners", childNode, node); return entityListeners; }
/** * If not already created, a new <code>entity-listeners</code> element with the given value will be created. * Otherwise, the existing <code>entity-listeners</code> element will be returned. * @return a new or existing instance of <code>EntityListeners<Entity<T>></code> */ public EntityListeners<Entity<T>> getOrCreateEntityListeners() { Node node = childNode.getOrCreate("entity-listeners"); EntityListeners<Entity<T>> entityListeners = new EntityListenersImpl<Entity<T>>(this, "entity-listeners", childNode, node); return entityListeners; }
/** * If not already created, a new <code>entity-listeners</code> element with the given value will be created. * Otherwise, the existing <code>entity-listeners</code> element will be returned. * @return a new or existing instance of <code>EntityListeners<PersistenceUnitDefaults<T>></code> */ public EntityListeners<PersistenceUnitDefaults<T>> getOrCreateEntityListeners() { Node node = childNode.getOrCreate("entity-listeners"); EntityListeners<PersistenceUnitDefaults<T>> entityListeners = new EntityListenersImpl<PersistenceUnitDefaults<T>>(this, "entity-listeners", childNode, node); return entityListeners; }