org.ow2.util.ee.metadata.common.api.xml.struct
Interface IDataSource

All Superinterfaces:
Serializable

public interface IDataSource
extends Serializable

Interface used for data-source elements used in Java EE components.

Author:
Loic Albertin

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

NAME

static final String NAME
Name of this element.

See Also:
Constant Field Values
Method Detail

getName

String getName()
JNDI name by which the data source name will be registered.


setName

void setName(String name)
JNDI name by which the data source name will be registered.

Parameters:
name - the given JNDI name

getClassName

String getClassName()
DataSource implementation class className.


setClassName

void setClassName(String className)
DataSource implementation class className.

Parameters:
className - the given DataSource implementation class name

getDescription

String getDescription()
Description of the data source.


setDescription

void setDescription(String description)
Description of the data source

Parameters:
description - the given description

getUrl

String getUrl()
A JDBC url. If the url property is specified along with other standard DataSource properties such as serverName and portNumber, the more specific properties will take precedence and the url will be ignored


setUrl

void setUrl(String url)
A JDBC url. If the url property is specified along with other standard DataSource properties such as serverName and portNumber, the more specific properties will take precedence and the url will be ignored

Parameters:
url - the given JDBC url

getUser

String getUser()
User name for connection authentications


setUser

void setUser(String user)
User name for connection authentications

Parameters:
user - the given user name

getPassword

String getPassword()
password for connection authentications


setPassword

void setPassword(String password)
password for connection authentications

Parameters:
password - the given password

getDatabaseName

String getDatabaseName()
Name of a database on a server


setDatabaseName

void setDatabaseName(String databaseName)
Name of a database on a server

Parameters:
databaseName - the given name of the database

getPortNumber

Integer getPortNumber()
Port number where a server is listening for requests


setPortNumber

void setPortNumber(Integer portNumber)
Port number where a server is listening for requests

Parameters:
portNumber - the given port number

getServerName

String getServerName()
Database server name


setServerName

void setServerName(String serverName)
Database server name

Parameters:
serverName - the given Database server name

getIsolationLevel

Integer getIsolationLevel()
Isolation level for connections.


setIsolationLevel

void setIsolationLevel(Integer isolationLevel)
Isolation level for connections.

Parameters:
isolationLevel - the given isolation level

isTransactional

Boolean isTransactional()
Indicates whether a connection is transactional or not.


setTransactional

void setTransactional(Boolean transactional)
Indicates whether a connection is transactional or not.

Parameters:
transactional - Indicates whether a connection is transactional or not.

getInitialPoolSize

Integer getInitialPoolSize()
Number of connections that should be created when a connection pool is initialized


setInitialPoolSize

void setInitialPoolSize(Integer initialPoolSize)
Number of connections that should be created when a connection pool is initialized

Parameters:
initialPoolSize - the given initial connection pool size

getMaxPoolSize

Integer getMaxPoolSize()
Maximum number of connections that should be concurrently allocated for a connection pool


setMaxPoolSize

void setMaxPoolSize(Integer maxPoolSize)
Maximum number of connections that should be concurrently allocated for a connection pool

Parameters:
maxPoolSize - the given maximum connection pool size

getMinPoolSize

Integer getMinPoolSize()
Minimum number of connections that should be allocated for a connection pool


setMinPoolSize

void setMinPoolSize(Integer minPoolSize)
Minimum number of connections that should be allocated for a connection pool

Parameters:
minPoolSize - the given minimum connection pool size

getMaxIdleTime

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


setMaxIdleTime

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

Parameters:
maxIdleTime - the given maximum idle time

getMaxStatements

Integer getMaxStatements()
The total number of statements that a connection pool should keep open. A value of 0 indicates that the caching of statements is disabled for a connection pool.


setMaxStatements

void setMaxStatements(Integer maxStatements)
The total number of statements that a connection pool should keep open. A value of 0 indicates that the caching of statements is disabled for a connection pool.

Parameters:
maxStatements - the given maximum statements caching

getProperties

String[] getProperties()
Used to specify vendor specific properties and less commonly used DataSource properties.


setProperties

void setProperties(String[] properties)
Used to specify vendor specific properties and less commonly used DataSource properties.

Parameters:
properties - the given properties

getLoginTimeout

Integer getLoginTimeout()
The maximum time in seconds that this data source will wait while attempting to connect to a database. A value of 0 specifies that the timeout is the default system timeout if there is one, otherwise it specifies that there is no timeout


setLoginTimeout

void setLoginTimeout(Integer loginTimeout)
The maximum time in seconds that this data source will wait while attempting to connect to a database. A value of 0 specifies that the timeout is the default system timeout if there is one, otherwise it specifies that there is no timeout

Parameters:
loginTimeout - the given login timeout


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.