|
i-net JDBC drivers for Oracle Server | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.ora.OraDriver
com.inet.ora.OraDataSource
com.inet.ora.PDataSource
This class is the implementation of the ConnectionPoolDataSource in the driver. A sample can be found in the file samples/WithPoolDataSource.java.
Field Summary |
Fields inherited from class com.inet.ora.OraDriver |
CURSOR |
Constructor Summary | |
PDataSource()
Create an empty DataSource. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this ConnectionPoolDataSource to the specified object. |
java.sql.Connection |
getConnection()
override the method in OraDataSource. |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
override the method in OraDataSource. |
java.lang.String |
getFailoverListener()
Returns the value of the property failoverListener. |
javax.sql.PooledConnection |
getPooledConnection()
This method creates a real connection to the Oracle Server with the parameter of this DataSource. |
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password)
This method creates a real connection to the Oracle Server with the parameter of this DataSource. |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
Overwrites com.inet.ora.OraDriver.getPropertyInfo(String,java.util.Properties) and adds PDataSource specific properies. |
int |
getTotalTimeOfAttempts()
Returns the value of the property totalTimeOfAttempts. |
boolean |
getUseDefaultFailoverListener()
Returns the value of the property useDefaultFailoverListener. |
int |
getWaitTimeToNextAttempt()
Returns the value of the property waitTimeToNextAttempt. |
void |
setFailoverListener(java.lang.String failoverListener)
Sets the property failoverListener. |
void |
setTotalTimeOfAttempts(int totalTimeOfAttempts)
Sets the property totalTimeOfAttempts. |
void |
setUseDefaultFailoverListener(boolean useDefaultFailoverListener)
Sets the property useDefaultFailoverListener. |
void |
setWaitTimeToNextAttempt(int waitTimeToNextAttempt)
Sets the property waitTimeToNextAttempt. |
Methods inherited from class com.inet.ora.OraDriver |
acceptsURL, connect, getMajorVersion, getMinorVersion, jdbcCompliant, run |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sql.ConnectionPoolDataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Constructor Detail |
public PDataSource()
Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
getConnection
in class OraDataSource
java.sql.SQLException
- if a database-access error occurs.OraDataSource.getConnection()
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
getConnection
in class OraDataSource
username
- password
-
java.sql.SQLException
- if a database-access error occurs.OraDataSource.getConnection(String,String)
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
java.sql.SQLException
- if a database-access error occurs.public javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
user
- the database user on whose behalf the Connection is being made.password
- the user's password.
java.sql.SQLException
- if a database-access error occurs.public boolean equals(java.lang.Object obj)
equals
in class OraDataSource
obj
- the object to compare.public void setUseDefaultFailoverListener(boolean useDefaultFailoverListener)
useDefaultFailoverListener
- the value for the property useDefaultFailoverListener.public void setWaitTimeToNextAttempt(int waitTimeToNextAttempt)
waitTimeToNextAttempt
- the value for the property waitTimeToNextAttempt.public void setTotalTimeOfAttempts(int totalTimeOfAttempts)
totalTimeOfAttempts
- the value for the property totalTimeOfAttempts.public void setFailoverListener(java.lang.String failoverListener)
com.inet.pool.FailoverListener
failoverListener
- the value for the property failoverListener.public boolean getUseDefaultFailoverListener()
public int getWaitTimeToNextAttempt()
public int getTotalTimeOfAttempts()
public java.lang.String getFailoverListener()
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
getPropertyInfo
in interface java.sql.Driver
java.sql.SQLException
|
i-net JDBC drivers for Oracle Server | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |