Skip navigation links

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

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.j2ee.descriptor
Interface DataSourceBean

All Superinterfaces:
SettableBean

public interface DataSourceBean
extends SettableBean

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

 

Method Detail

getDescription

String getDescription()
A description of this DataSource.

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.

setClassName

void setClassName(String className)

getServerName

String getServerName()
The database server name.

setServerName

void setServerName(String serverName)

getPortNumber

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

setPortNumber

void setPortNumber(int portNumber)

getDatabaseName

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

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.

setUrl

void setUrl(String url)

getUser

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

setUser

void setUser(String user)

getPassword

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

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.

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.

setLoginTimeout

void setLoginTimeout(int loginTimeout)

isTransactional

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

setTransactional

void setTransactional(boolean transactional)

getIsolationLevel

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

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.

setInitialPoolSize

void setInitialPoolSize(int initialPoolSize)

getMaxPoolSize

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

setMaxPoolSize

void setMaxPoolSize(int maxPoolSize)

getMinPoolSize

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

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.

setMaxIdleTime

void setMaxIdleTime(int maxIdleTime)

getMaxStatements

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

setMaxStatements

void setMaxStatements(int maxStatements)

getId

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

setId

void setId(String id)

Skip navigation links

Copyright 1996, 2015, 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.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09