boolean isXACompliant(DataSource ds) { if (ds instanceof DelegatingDataSource) return ((DelegatingDataSource) ds).getInnermostDelegate() instanceof XADataSource; return ds instanceof XADataSource; }
boolean isXACompliant(DataSource ds) { if (ds instanceof DelegatingDataSource) return ((DelegatingDataSource) ds).getInnermostDelegate() instanceof XADataSource; return ds instanceof XADataSource; }
boolean isXACompliant(DataSource ds) { if (ds instanceof DelegatingDataSource) return ((DelegatingDataSource) ds).getInnermostDelegate() instanceof XADataSource; return ds instanceof XADataSource; }
/** * Return the inner-most wrapped delegate. */ public DataSource getInnermostDelegate() { return (_del == null) ? _ds : _del.getInnermostDelegate(); }
/** * Return the inner-most wrapped delegate. */ public DataSource getInnermostDelegate() { return (_del == null) ? _ds : _del.getInnermostDelegate(); }
boolean isXACompliant(DataSource ds) { if (ds instanceof DelegatingDataSource) return ((DelegatingDataSource) ds).getInnermostDelegate() instanceof XADataSource; return ds instanceof XADataSource; }
/** * Return the inner-most wrapped delegate. */ public DataSource getInnermostDelegate() { return (_del == null) ? _ds : _del.getInnermostDelegate(); }
/** * Return the inner-most wrapped delegate. */ public DataSource getInnermostDelegate() { return (_del == null) ? _ds : _del.getInnermostDelegate(); }
public boolean equals(Object other) { if (other == this) return true; if (other instanceof DelegatingDataSource) other = ((DelegatingDataSource) other).getInnermostDelegate(); return getInnermostDelegate().equals(other); }
public boolean equals(Object other) { if (other == this) return true; if (other instanceof DelegatingDataSource) other = ((DelegatingDataSource) other).getInnermostDelegate(); return getInnermostDelegate().equals(other); }
public boolean equals(Object other) { if (other == this) return true; if (other instanceof DelegatingDataSource) other = ((DelegatingDataSource) other).getInnermostDelegate(); return getInnermostDelegate().equals(other); }
public boolean equals(Object other) { if (other == this) return true; if (other instanceof DelegatingDataSource) other = ((DelegatingDataSource) other).getInnermostDelegate(); return getInnermostDelegate().equals(other); }
public int hashCode() { return getInnermostDelegate().hashCode(); }
public int hashCode() { return getInnermostDelegate().hashCode(); }
public int hashCode() { return getInnermostDelegate().hashCode(); }
/** * Close the given data source. */ public static void closeDataSource(DataSource ds) { if (ds instanceof DelegatingDataSource) ds = ((DelegatingDataSource) ds).getInnermostDelegate(); ImplHelper.close(ds); }
/** * Close the given data source. */ public static void closeDataSource(DataSource ds) { if (ds instanceof DelegatingDataSource) ds = ((DelegatingDataSource) ds).getInnermostDelegate(); ImplHelper.close(ds); }
/** * Close the given data source. */ public static void closeDataSource(DataSource ds) { if (ds instanceof DelegatingDataSource) ds = ((DelegatingDataSource) ds).getInnermostDelegate(); ImplHelper.close(ds); }
/** * Close the given data source. */ public static void closeDataSource(DataSource ds) { if (ds instanceof DelegatingDataSource) ds = ((DelegatingDataSource) ds).getInnermostDelegate(); ImplHelper.close(ds); }
/** * Close the given data source. */ public static void closeDataSource(DataSource ds) { if (ds instanceof DelegatingDataSource) ds = ((DelegatingDataSource) ds).getInnermostDelegate(); ImplHelper.close(ds); }