Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.lib » jdbc » [javadoc | source]
org.apache.openjpa.lib.jdbc
public class: DelegatingDataSource [javadoc | source]
java.lang.Object
   org.apache.openjpa.lib.jdbc.DelegatingDataSource

All Implemented Interfaces:
    DataSource, Closeable

Direct Known Subclasses:
    DistributedDataSource, DecoratingDataSource, DefaultsDataSource

Wrapper around an existing data source. Subclasses can override the methods whose behavior they mean to change. The equals and hashCode methods pass through to the base underlying data store.
Constructor:
 public DelegatingDataSource(DataSource ds) 
    Constructor. Supply wrapped data source.
Method from org.apache.openjpa.lib.jdbc.DelegatingDataSource Summary:
appendInfo,   close,   equals,   getConnection,   getConnection,   getDelegate,   getInnermostDelegate,   getLogWriter,   getLoginTimeout,   hashCode,   setLogWriter,   setLoginTimeout,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.lib.jdbc.DelegatingDataSource Detail:
 protected  void appendInfo(StringBuffer buf) 
 public  void close() throws Exception 
 public boolean equals(Object other) 
 public Connection getConnection() throws SQLException 
 public Connection getConnection(String user,
    String pass) throws SQLException 
 public DataSource getDelegate() 
    Return the wrapped data source.
 public DataSource getInnermostDelegate() 
    Return the inner-most wrapped delegate.
 public PrintWriter getLogWriter() throws SQLException 
 public int getLoginTimeout() throws SQLException 
 public int hashCode() 
 public  void setLogWriter(PrintWriter out) throws SQLException 
 public  void setLoginTimeout(int timeout) throws SQLException 
 public String toString()