|
||||||||||
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 org.apache.openjpa.lib.jdbc.DecoratingDataSource
public class DecoratingDataSource
Delegating data source that maintains a list of ConnectionDecorator
s.
Constructor Summary | |
---|---|
DecoratingDataSource(DataSource ds)
Constructor. |
Method Summary | |
---|---|
void |
addDecorator(ConnectionDecorator decorator)
Add a connection decorator. |
void |
addDecorators(Collection decorators)
Add multiple connection decorators efficiently. |
void |
clearDecorators()
Clear all decorators. |
Connection |
getConnection()
|
Connection |
getConnection(String user,
String pass)
|
Collection |
getDecorators()
Return a read-only list of connection decorators in the order they were added. |
boolean |
removeDecorator(ConnectionDecorator decorator)
Remove a connection decorator. |
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingDataSource |
---|
appendInfo, close, equals, getDelegate, getInnermostDelegate, getLoginTimeout, getLogWriter, hashCode, setLoginTimeout, setLogWriter, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DecoratingDataSource(DataSource ds)
Method Detail |
---|
public Collection getDecorators()
public void addDecorator(ConnectionDecorator decorator)
public void addDecorators(Collection decorators)
public boolean removeDecorator(ConnectionDecorator decorator)
public void clearDecorators()
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
getConnection
in class DelegatingDataSource
SQLException
public Connection getConnection(String user, String pass) throws SQLException
getConnection
in interface DataSource
getConnection
in class DelegatingDataSource
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |