|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.jdbc.DelegatingDataSource
public class DelegatingDataSource
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 Summary | |
---|---|
DelegatingDataSource(javax.sql.DataSource ds)
Constructor. |
Method Summary | |
---|---|
protected void |
appendInfo(java.lang.StringBuffer buf)
|
void |
close()
|
boolean |
equals(java.lang.Object other)
|
java.sql.Connection |
getConnection()
|
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String pass)
|
javax.sql.DataSource |
getDelegate()
Return the wrapped data source. |
javax.sql.DataSource |
getInnermostDelegate()
Return the inner-most wrapped delegate. |
int |
getLoginTimeout()
|
java.io.PrintWriter |
getLogWriter()
|
int |
hashCode()
|
void |
setLoginTimeout(int timeout)
|
void |
setLogWriter(java.io.PrintWriter out)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DelegatingDataSource(javax.sql.DataSource ds)
Method Detail |
---|
public javax.sql.DataSource getDelegate()
public javax.sql.DataSource getInnermostDelegate()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected void appendInfo(java.lang.StringBuffer buf)
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
setLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public void setLoginTimeout(int timeout) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String user, java.lang.String pass) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public void close() throws java.lang.Exception
close
in interface Closeable
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |