public interface ConnectionFactory
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Returns java.sql.Connection
|
String |
getDriverName()
Returns JDBC driver name
|
int |
getLoginTimeout()
Returns the number of seconds to wait for a new connection to be
established to the data source
|
PrintWriter |
getLogWriter()
Returns the LogWriter to which messages should be sent
|
int |
getMaxPool()
Returns maximum number of connections in the connection pool
|
int |
getMinPool()
Returns minimum number of connections in the connection pool
|
int |
getMsInterval()
Returns the amount of time, in milliseconds, between the connection
manager's attempts to get a pooled connection.
|
int |
getMsWait()
Returns the number of milliseconds to wait for an available connection
from the connection pool before throwing an exception
|
int |
getTransactionIsolation()
Returns current transaction isolation level for connections of this ConnectionFactory.
|
String |
getURL()
Returns connection URL
|
String |
getUserName()
Returns database user name
|
void |
setDriverName(String driverName)
Sets JDBC driver name
|
void |
setLoginTimeout(int loginTimeout)
Sets the number of seconds to wait for a new connection to be
established to the data source
|
void |
setLogWriter(PrintWriter logWriter)
Sets the LogWriter to which messages should be sent
|
void |
setMaxPool(int maxPool)
Sets maximum number of connections in the connection pool
|
void |
setMinPool(int minPool)
Sets minimum number of connections in the connection pool
|
void |
setMsInterval(int msInterval)
Sets the amount of time, in milliseconds, between the connection
manager's attempts to get a pooled connection.
|
void |
setMsWait(int msWait)
Sets the number of milliseconds to wait for an available connection
from the connection pool before throwing an exception
|
void |
setPassword(char[] password)
Sets database user password
|
void |
setTransactionIsolation(int level)
Sets transaction isolation level for all connections of this ConnectionFactory.
|
void |
setURL(String URL)
Sets JDBC connection URL
|
void |
setUserName(String userName)
Sets database user
|
Connection getConnection()
void setDriverName(String driverName)
driverName
- JDBC driver nameString getDriverName()
void setURL(String URL)
URL
- connection URLString getURL()
void setUserName(String userName)
userName
- database userString getUserName()
void setPassword(char[] password)
password
- database user passwordvoid setMinPool(int minPool)
minPool
- minimum number of connectionsint getMinPool()
void setMaxPool(int maxPool)
maxPool
- maximum number of connectionsint getMaxPool()
void setMsInterval(int msInterval)
msInterval
- the interval between attempts to get a database
connection, in milliseconds.int getMsInterval()
void setMsWait(int msWait)
msWait
- number in millisecondsint getMsWait()
void setLogWriter(PrintWriter logWriter)
logWriter
- PrintWriter getLogWriter()
void setLoginTimeout(int loginTimeout)
loginTimeout
- wait time in secondsint getLoginTimeout()
void setTransactionIsolation(int level)
level
- - one of the java.sql.Connection.TRANSACTION_* isolation valuesint getTransactionIsolation()
Copyright © 2021. All rights reserved.