|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbforms.conprovider.AbstractConnectionProvider
public abstract class AbstractConnectionProvider
ConnectionProvider base class.
To create a ConnectionProvider for your preferred ConnectionPooler, extend
this class and implement initialize and
getConnection methods.
| Constructor Summary | |
|---|---|
AbstractConnectionProvider()
Constructor for the ConnectionProvider object. |
|
| Method Summary | |
|---|---|
protected abstract Connection |
getConnection()
Get a JDBC Connection. |
protected Connection |
getConnection(int isolationLevel)
Get a "transactional" JDBC connection. |
protected String |
getLastToken(String str,
String tokenSeparator)
Get the last token from the input string. |
ConnectionProviderPrefs |
getPrefs()
Gets the prefs attribute of the ConnectionProvider object |
protected abstract void |
init()
Initialize the connection pool provider. |
void |
setPrefs(ConnectionProviderPrefs prefs)
Sets the prefs attribute of the ConnectionProvider object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractConnectionProvider()
throws Exception
Exception - Description of the Exception| Method Detail |
|---|
public void setPrefs(ConnectionProviderPrefs prefs)
prefs - The new prefs valuepublic ConnectionProviderPrefs getPrefs()
protected abstract Connection getConnection()
throws SQLException
SQLException - Description of the Exception
protected abstract void init()
throws Exception
Exception - Description of the Exception
protected Connection getConnection(int isolationLevel)
throws SQLException
isolationLevel - the isolation level to set the connection to
SQLException - if any error occurs
protected String getLastToken(String str,
String tokenSeparator)
str - the string containing the tokentokenSeparator - the token separator string (i.e.: "'", ":", etc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||