/** * If not already created, a new <code>xa-pool</code> element with the given value will be created. * Otherwise, the existing <code>xa-pool</code> element will be returned. * @return a new or existing instance of <code>XaPoolType<ConnectionDefinitionType<T>></code> */ public XaPoolType<ConnectionDefinitionType<T>> getOrCreateXaPool() { Node node = childNode.getOrCreate("xa-pool"); XaPoolType<ConnectionDefinitionType<T>> xaPool = new XaPoolTypeImpl<ConnectionDefinitionType<T>>(this, "xa-pool", childNode, node); return xaPool; }
/** * If not already created, a new <code>xa-pool</code> element with the given value will be created. * Otherwise, the existing <code>xa-pool</code> element will be returned. * @return a new or existing instance of <code>XaPoolType<ConnectionDefinitionType<T>></code> */ public XaPoolType<ConnectionDefinitionType<T>> getOrCreateXaPool() { Node node = childNode.getOrCreate("xa-pool"); XaPoolType<ConnectionDefinitionType<T>> xaPool = new XaPoolTypeImpl<ConnectionDefinitionType<T>>(this, "xa-pool", childNode, node); return xaPool; }