/** * If not already created, a new <code>named-stored-procedure-query</code> element will be created and returned. * Otherwise, the first existing <code>named-stored-procedure-query</code> element will be returned. * @return the instance defined for the element <code>named-stored-procedure-query</code> */ public NamedStoredProcedureQuery<Entity<T>> getOrCreateNamedStoredProcedureQuery() { List<Node> nodeList = childNode.get("named-stored-procedure-query"); if (nodeList != null && nodeList.size() > 0) { return new NamedStoredProcedureQueryImpl<Entity<T>>(this, "named-stored-procedure-query", childNode, nodeList.get(0)); } return createNamedStoredProcedureQuery(); }
/** * If not already created, a new <code>named-stored-procedure-query</code> element will be created and returned. * Otherwise, the first existing <code>named-stored-procedure-query</code> element will be returned. * @return the instance defined for the element <code>named-stored-procedure-query</code> */ public NamedStoredProcedureQuery<Entity<T>> getOrCreateNamedStoredProcedureQuery() { List<Node> nodeList = childNode.get("named-stored-procedure-query"); if (nodeList != null && nodeList.size() > 0) { return new NamedStoredProcedureQueryImpl<Entity<T>>(this, "named-stored-procedure-query", childNode, nodeList.get(0)); } return createNamedStoredProcedureQuery(); }