|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataSource
Interface used for data-source elements used in Java EE components.
| Field Summary | |
|---|---|
static String |
NAME
Name of this element. |
| Method Summary | |
|---|---|
String |
getClassName()
DataSource implementation class className. |
String |
getDatabaseName()
Name of a database on a server |
String |
getDescription()
Description of the data source. |
Integer |
getInitialPoolSize()
Number of connections that should be created when a connection pool is initialized |
Integer |
getIsolationLevel()
Isolation level for connections. |
Integer |
getLoginTimeout()
The maximum time in seconds that this data source will wait while attempting to connect to a database. |
Integer |
getMaxIdleTime()
The number of seconds that a physical connection should remain unused in the pool before the connection is closed for a connection pool |
Integer |
getMaxPoolSize()
Maximum number of connections that should be concurrently allocated for a connection pool |
Integer |
getMaxStatements()
The total number of statements that a connection pool should keep open. |
Integer |
getMinPoolSize()
Minimum number of connections that should be allocated for a connection pool |
String |
getName()
JNDI name by which the data source name will be registered. |
String |
getPassword()
password for connection authentications |
Integer |
getPortNumber()
Port number where a server is listening for requests |
String[] |
getProperties()
Used to specify vendor specific properties and less commonly used DataSource properties. |
String |
getServerName()
Database server name |
String |
getUrl()
A JDBC url. |
String |
getUser()
User name for connection authentications |
Boolean |
isTransactional()
Indicates whether a connection is transactional or not. |
void |
setClassName(String className)
DataSource implementation class className. |
void |
setDatabaseName(String databaseName)
Name of a database on a server |
void |
setDescription(String description)
Description of the data source |
void |
setInitialPoolSize(Integer initialPoolSize)
Number of connections that should be created when a connection pool is initialized |
void |
setIsolationLevel(Integer isolationLevel)
Isolation level for connections. |
void |
setLoginTimeout(Integer loginTimeout)
The maximum time in seconds that this data source will wait while attempting to connect to a database. |
void |
setMaxIdleTime(Integer maxIdleTime)
The number of seconds that a physical connection should remain unused in the pool before the connection is closed for a connection pool |
void |
setMaxPoolSize(Integer maxPoolSize)
Maximum number of connections that should be concurrently allocated for a connection pool |
void |
setMaxStatements(Integer maxStatements)
The total number of statements that a connection pool should keep open. |
void |
setMinPoolSize(Integer minPoolSize)
Minimum number of connections that should be allocated for a connection pool |
void |
setName(String name)
JNDI name by which the data source name will be registered. |
void |
setPassword(String password)
password for connection authentications |
void |
setPortNumber(Integer portNumber)
Port number where a server is listening for requests |
void |
setProperties(String[] properties)
Used to specify vendor specific properties and less commonly used DataSource properties. |
void |
setServerName(String serverName)
Database server name |
void |
setTransactional(Boolean transactional)
Indicates whether a connection is transactional or not. |
void |
setUrl(String url)
A JDBC url. |
void |
setUser(String user)
User name for connection authentications |
| Field Detail |
|---|
static final String NAME
| Method Detail |
|---|
String getName()
void setName(String name)
name - the given JNDI nameString getClassName()
void setClassName(String className)
className - the given DataSource implementation class nameString getDescription()
void setDescription(String description)
description - the given descriptionString getUrl()
void setUrl(String url)
url - the given JDBC urlString getUser()
void setUser(String user)
user - the given user nameString getPassword()
void setPassword(String password)
password - the given passwordString getDatabaseName()
void setDatabaseName(String databaseName)
databaseName - the given name of the databaseInteger getPortNumber()
void setPortNumber(Integer portNumber)
portNumber - the given port numberString getServerName()
void setServerName(String serverName)
serverName - the given Database server nameInteger getIsolationLevel()
void setIsolationLevel(Integer isolationLevel)
isolationLevel - the given isolation levelBoolean isTransactional()
void setTransactional(Boolean transactional)
transactional - Indicates whether a connection is transactional or not.Integer getInitialPoolSize()
void setInitialPoolSize(Integer initialPoolSize)
initialPoolSize - the given initial connection pool sizeInteger getMaxPoolSize()
void setMaxPoolSize(Integer maxPoolSize)
maxPoolSize - the given maximum connection pool sizeInteger getMinPoolSize()
void setMinPoolSize(Integer minPoolSize)
minPoolSize - the given minimum connection pool sizeInteger getMaxIdleTime()
void setMaxIdleTime(Integer maxIdleTime)
maxIdleTime - the given maximum idle timeInteger getMaxStatements()
void setMaxStatements(Integer maxStatements)
maxStatements - the given maximum statements cachingString[] getProperties()
void setProperties(String[] properties)
properties - the given propertiesInteger getLoginTimeout()
void setLoginTimeout(Integer loginTimeout)
loginTimeout - the given login timeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||