public DatasourcesDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }
/** * If not already created, a new <code>datasource</code> element will be created and returned. * Otherwise, the first existing <code>datasource</code> element will be returned. * @return the instance defined for the element <code>datasource</code> */ public DatasourceType<DatasourcesDescriptor> getOrCreateDatasource() { List<Node> nodeList = model.get("datasource"); if (nodeList != null && nodeList.size() > 0) { return new DatasourceTypeImpl<DatasourcesDescriptor>(this, "datasource", model, nodeList.get(0)); } return createDatasource(); }
/** * If not already created, a new <code>xa-datasource</code> element will be created and returned. * Otherwise, the first existing <code>xa-datasource</code> element will be returned. * @return the instance defined for the element <code>xa-datasource</code> */ public XaDatasourceType<DatasourcesDescriptor> getOrCreateXaDatasource() { List<Node> nodeList = model.get("xa-datasource"); if (nodeList != null && nodeList.size() > 0) { return new XaDatasourceTypeImpl<DatasourcesDescriptor>(this, "xa-datasource", model, nodeList.get(0)); } return createXaDatasource(); }
/** * If not already created, a new <code>datasource</code> element will be created and returned. * Otherwise, the first existing <code>datasource</code> element will be returned. * @return the instance defined for the element <code>datasource</code> */ public DatasourceType<DatasourcesDescriptor> getOrCreateDatasource() { List<Node> nodeList = model.get("datasource"); if (nodeList != null && nodeList.size() > 0) { return new DatasourceTypeImpl<DatasourcesDescriptor>(this, "datasource", model, nodeList.get(0)); } return createDatasource(); }
/** * If not already created, a new <code>xa-datasource</code> element will be created and returned. * Otherwise, the first existing <code>xa-datasource</code> element will be returned. * @return the instance defined for the element <code>xa-datasource</code> */ public XaDatasourceType<DatasourcesDescriptor> getOrCreateXaDatasource() { List<Node> nodeList = model.get("xa-datasource"); if (nodeList != null && nodeList.size() > 0) { return new XaDatasourceTypeImpl<DatasourcesDescriptor>(this, "xa-datasource", model, nodeList.get(0)); } return createXaDatasource(); }
public DatasourcesDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }