org.jboss.jca.core.api.management
Class DataSource

java.lang.Object
  extended by org.jboss.jca.core.api.management.DataSource

public class DataSource
extends Object

Represents a datasource instance

Author:
Jeff Zhang

Constructor Summary
DataSource(boolean xa)
          Constructor
 
Method Summary
 String getJndiName()
          Get the jndiName.
 Pool getPool()
          Get the pool instance.
 PoolConfiguration getPoolConfiguration()
          Get the pool configuration instance.
 StatisticsPlugin getStatistics()
          Get the statistics instance.
 boolean isXA()
          xa datasource
 void setJndiName(String v)
          Set the jndiName.
 void setPool(Pool p)
          Set the pool
 void setPoolConfiguration(PoolConfiguration pc)
          Set the pool configuration
 void setStatistics(StatisticsPlugin v)
          Set the statistics
 String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource(boolean xa)
Constructor

Parameters:
xa - datasource is xa or not
Method Detail

isXA

public boolean isXA()
xa datasource

Returns:
true if it xa datasource

getPool

public Pool getPool()
Get the pool instance. Note, that the value may be null if the pool was undeployed and this object wasn't cleared up correctly.

Returns:
The instance

setPool

public void setPool(Pool p)
Set the pool

Parameters:
p - The pool

getPoolConfiguration

public PoolConfiguration getPoolConfiguration()
Get the pool configuration instance. Note, that the value may be null if the pool configuration was undeployed and this object wasn't cleared up correctly.

Returns:
The instance

setPoolConfiguration

public void setPoolConfiguration(PoolConfiguration pc)
Set the pool configuration

Parameters:
pc - The pool configuration

getJndiName

public String getJndiName()
Get the jndiName.

Returns:
the jndiName.

setJndiName

public void setJndiName(String v)
Set the jndiName.

Parameters:
v - The value

getStatistics

public StatisticsPlugin getStatistics()
Get the statistics instance. Note, that the value may be null if the statistics module was undeployed and this object wasn't cleared up correctly.

Returns:
The instance

setStatistics

public void setStatistics(StatisticsPlugin v)
Set the statistics

Parameters:
v - The statistics module

toString

public String toString()
String representation

Overrides:
toString in class Object
Returns:
The string


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)