org.jboss.resource.adapter.jdbc.local
Class LocalTxDataSource

java.lang.Object
  extended by org.jboss.resource.adapter.jdbc.local.LocalTxDataSource

public class LocalTxDataSource
extends Object

This is a pojo that instantiates a Local tx connection pool. It provides same functionality as ds.xml files

Version:
$Revision: 1.11.4.2 $
Author:
Bill Burke

Nested Class Summary
 class LocalTxDataSource.ConnectionManagerDelegate
           
 
Field Summary
protected  InitialContext initialContext
           
protected  Hashtable initialContextProperties
           
protected static org.jboss.logging.Logger log
           
 
Constructor Summary
LocalTxDataSource()
           
 
Method Summary
protected  void bindConnectionFactory()
          Bind the connection factory into jndi
 int getBlockingTimeout()
           
 String getCheckValidConnectionSQL()
           
 String getConnectionURL()
           
 Object getDatasource()
           
 String getDriverClass()
           
 String getExceptionSorterClassName()
           
 long getIdleTimeout()
           
 String getJndiName()
           
 int getMaxSize()
           
 int getMinSize()
           
 String getNewConnectionSQL()
           
 int getPreparedStatementCacheSize()
           
 boolean getSharePreparedStatements()
           
 String getTrackStatements()
           
 String getTransactionIsolation()
           
 TransactionManager getTransactionManager()
           
 boolean getTxQueryTimeout()
           
 String getValidConnectionCheckerClassName()
           
 void setBlockingTimeout(int blockingTimeout)
           
 void setCachedConnectionManager(CachedConnectionManagerReference cachedConnectionManager)
           
 void setCheckValidConnectionSQL(String checkValidConnectionSQL)
           
 void setConnectionURL(String connectionURL)
           
 void setDriverClass(String driverClass)
           
 void setExceptionSorterClassName(String exceptionSorterClassName)
           
 void setIdleTimeout(long idleTimeout)
           
 void setInitialContextProperties(Hashtable initialContextProperties)
           
 void setJndiName(String jndiName)
           
 void setMaxSize(int maxSize)
           
 void setMinSize(int minSize)
           
 void setNewConnectionSQL(String newConnectionSQL)
           
 void setPassword(String password)
           
 void setPreparedStatementCacheSize(int size)
           
 void setSharePreparedStatements(boolean sharePS)
           
 void setTrackStatements(String value)
           
 void setTransactionIsolation(String transactionIsolation)
           
 void setTransactionManager(TransactionManager transactionManager)
           
 void setTxQueryTimeout(boolean qt)
           
 void setUserName(String userName)
           
 void setValidConnectionCheckerClassName(String value)
           
 void start()
           
protected  void unbindConnectionFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.jboss.logging.Logger log

initialContextProperties

protected Hashtable initialContextProperties

initialContext

protected InitialContext initialContext
Constructor Detail

LocalTxDataSource

public LocalTxDataSource()
Method Detail

setInitialContextProperties

public void setInitialContextProperties(Hashtable initialContextProperties)

start

public void start()
           throws Exception
Throws:
Exception

bindConnectionFactory

protected void bindConnectionFactory()
                              throws Exception
Bind the connection factory into jndi

Throws:
Exception

unbindConnectionFactory

protected void unbindConnectionFactory()
                                throws Exception
Throws:
Exception

getDatasource

public Object getDatasource()

setCachedConnectionManager

public void setCachedConnectionManager(CachedConnectionManagerReference cachedConnectionManager)

getTransactionManager

public TransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(TransactionManager transactionManager)

getJndiName

public String getJndiName()

setJndiName

public void setJndiName(String jndiName)

getMinSize

public int getMinSize()

setMinSize

public void setMinSize(int minSize)

getMaxSize

public int getMaxSize()

setMaxSize

public void setMaxSize(int maxSize)

getBlockingTimeout

public int getBlockingTimeout()

setBlockingTimeout

public void setBlockingTimeout(int blockingTimeout)

getIdleTimeout

public long getIdleTimeout()

setIdleTimeout

public void setIdleTimeout(long idleTimeout)

getDriverClass

public String getDriverClass()

setDriverClass

public void setDriverClass(String driverClass)

getConnectionURL

public String getConnectionURL()

setConnectionURL

public void setConnectionURL(String connectionURL)

setUserName

public void setUserName(String userName)

setPassword

public void setPassword(String password)

setPreparedStatementCacheSize

public void setPreparedStatementCacheSize(int size)

getPreparedStatementCacheSize

public int getPreparedStatementCacheSize()

getSharePreparedStatements

public boolean getSharePreparedStatements()

setSharePreparedStatements

public void setSharePreparedStatements(boolean sharePS)

getTxQueryTimeout

public boolean getTxQueryTimeout()

setTxQueryTimeout

public void setTxQueryTimeout(boolean qt)

getTransactionIsolation

public String getTransactionIsolation()

setTransactionIsolation

public void setTransactionIsolation(String transactionIsolation)

getNewConnectionSQL

public String getNewConnectionSQL()

setNewConnectionSQL

public void setNewConnectionSQL(String newConnectionSQL)

getCheckValidConnectionSQL

public String getCheckValidConnectionSQL()

setCheckValidConnectionSQL

public void setCheckValidConnectionSQL(String checkValidConnectionSQL)

getTrackStatements

public String getTrackStatements()

setTrackStatements

public void setTrackStatements(String value)

getExceptionSorterClassName

public String getExceptionSorterClassName()

setExceptionSorterClassName

public void setExceptionSorterClassName(String exceptionSorterClassName)

getValidConnectionCheckerClassName

public String getValidConnectionCheckerClassName()

setValidConnectionCheckerClassName

public void setValidConnectionCheckerClassName(String value)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.