Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-02

weblogic.j2ee.descriptor
Interface DataSourceBean

All Superinterfaces:
SettableBean

public interface DataSourceBean
extends SettableBean


Method Summary
 JavaEEPropertyBean createProperty()
           
 void destroyProperty(JavaEEPropertyBean property)
           
 String getClassName()
          The data source implementation class.
 String getDatabaseName()
          The name of the database connected to this data source.
 String getDescription()
          A description of this DataSource.
 String getId()
          Specifies a string which is used to identify this DataSource.
 int getInitialPoolSize()
          The number of physical connections to create when creating the connection pool in the data source.
 String getIsolationLevel()
          The transaction isolation level used for connections.
 int getLoginTimeout()
          The maximum amount of time, in seconds, that this data source waits while attempting to connect to a database.
 int getMaxIdleTime()
          The maximum amount of time, in seconds, a physical connection can remain unused in the pool before the connection is closed.
 int getMaxPoolSize()
          The maximum number of physical connections that this connection pool can contain.
 int getMaxStatements()
          The total number of statements that a connection pool keeps open.
 int getMinPoolSize()
          The minimum number of physical connections that this connection pool can contain.
 String getName()
          The JNDI name of the data source.
 String getPassword()
          The password to use for connection authentication with the database.
 int getPortNumber()
          The port number a server uses to listen for requests.
 JavaEEPropertyBean[] getProperties()
          Spcecifies a JDBC DataSource property.
 String getServerName()
          The database server name.
 String getUrl()
          The JDBC URL.
 String getUser()
          The user name to use for connection authentication with the database.
 boolean isTransactional()
          When enabled, connections participate in transactions.
 JavaEEPropertyBean lookupProperty(String name)
           
 void setClassName(String className)
           
 void setDatabaseName(String databaseName)
           
 void setDescription(String description)
           
 void setId(String id)
           
 void setInitialPoolSize(int initialPoolSize)
           
 void setIsolationLevel(String isolationLevel)
           
 void setLoginTimeout(int loginTimeout)
           
 void setMaxIdleTime(int maxIdleTime)
           
 void setMaxPoolSize(int maxPoolSize)
           
 void setMaxStatements(int maxStatements)
           
 void setMinPoolSize(int minPoolSize)
           
 void setName(String name)
           
 void setPassword(String password)
           
 void setPortNumber(int portNumber)
           
 void setServerName(String serverName)
           
 void setTransactional(boolean transactional)
           
 void setUrl(String url)
           
 void setUser(String user)
           
 
Methods inherited from interface weblogic.descriptor.SettableBean
isSet, unSet
 

Method Detail

getDescription

String getDescription()
A description of this DataSource.

Default Value:
""

setDescription

void setDescription(String description)

getName

String getName()
The JNDI name of the data source.


setName

void setName(String name)

getClassName

String getClassName()
The data source implementation class.

Default Value:
""

setClassName

void setClassName(String className)

getServerName

String getServerName()
The database server name.

Default Value:
"localhost"

setServerName

void setServerName(String serverName)

getPortNumber

int getPortNumber()
The port number a server uses to listen for requests.

Default Value:
-1

setPortNumber

void setPortNumber(int portNumber)

getDatabaseName

String getDatabaseName()
The name of the database connected to this data source.

Default Value:
""

setDatabaseName

void setDatabaseName(String databaseName)

getUrl

String getUrl()
The JDBC URL. If the Url property is specified along with other standard DataSource properties such as ServerName, DatabaseName and PortNumber, the more specific properties take precedence and Url is ignored.

Default Value:
""

setUrl

void setUrl(String url)

getUser

String getUser()
The user name to use for connection authentication with the database.

Default Value:
""

setUser

void setUser(String user)

getPassword

String getPassword()
The password to use for connection authentication with the database.

Default Value:
""

setPassword

void setPassword(String password)

getProperties

JavaEEPropertyBean[] getProperties()
Spcecifies a JDBC DataSource property. This may be a vendor-specific property or a less commonly used DataSource property.

Default Value:
new JavaEEPropertyBean[] {}

lookupProperty

JavaEEPropertyBean lookupProperty(String name)

createProperty

JavaEEPropertyBean createProperty()

destroyProperty

void destroyProperty(JavaEEPropertyBean property)

getLoginTimeout

int getLoginTimeout()
The maximum amount of time, in seconds, that this data source waits while attempting to connect to a database.

Default Value:
-1

setLoginTimeout

void setLoginTimeout(int loginTimeout)

isTransactional

boolean isTransactional()
When enabled, connections participate in transactions.

Default Value:
true

setTransactional

void setTransactional(boolean transactional)

getIsolationLevel

String getIsolationLevel()
The transaction isolation level used for connections.

Default Value:
null
Valid Values:
"TRANSACTION_READ_UNCOMMITTED", "TRANSACTION_READ_COMMITTED", "TRANSACTION_REPEATABLE_READ", "TRANSACTION_SERIALIZABLE"

setIsolationLevel

void setIsolationLevel(String isolationLevel)

getInitialPoolSize

int getInitialPoolSize()
The number of physical connections to create when creating the connection pool in the data source. If unable to create this number of connections, creation of the data source will fail.

Default Value:
-1

setInitialPoolSize

void setInitialPoolSize(int initialPoolSize)

getMaxPoolSize

int getMaxPoolSize()
The maximum number of physical connections that this connection pool can contain.

Default Value:
-1

setMaxPoolSize

void setMaxPoolSize(int maxPoolSize)

getMinPoolSize

int getMinPoolSize()
The minimum number of physical connections that this connection pool can contain.

Default Value:
-1

setMinPoolSize

void setMinPoolSize(int minPoolSize)

getMaxIdleTime

int getMaxIdleTime()
The maximum amount of time, in seconds, a physical connection can remain unused in the pool before the connection is closed.

Default Value:
-1

setMaxIdleTime

void setMaxIdleTime(int maxIdleTime)

getMaxStatements

int getMaxStatements()
The total number of statements that a connection pool keeps open.

Default Value:
-1

setMaxStatements

void setMaxStatements(int maxStatements)

getId

String getId()
Specifies a string which is used to identify this DataSource.


setId

void setId(String id)

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-02