站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

DataSourceSupport - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.framework.embedded
Class DataSourceSupport

java.lang.Object
  extended byorg.jboss.portal.test.framework.embedded.DataSourceSupport

public class DataSourceSupport
extends java.lang.Object

An helper to setup JDNI available objects

Version:
$Revision: 5498 $
Author:
Julien Viet

Nested Class Summary
static class DataSourceSupport.Config
           
 
Field Summary
private  DataSourceSupport.Config cfg
           
private  org.jboss.resource.connectionmanager.CachedConnectionManagerReference connectionManagerReference
           
private  LocalTxDataSource ds
           
private  java.lang.String jndiName
           
private  javax.transaction.TransactionManager transactionManager
           
 
Constructor Summary
DataSourceSupport()
           
DataSourceSupport(DataSourceSupport.Config cfg)
           
 
Method Summary
 void create()
           
 void destroy()
           
 org.jboss.resource.connectionmanager.CachedConnectionManagerReference getConnectionManagerReference()
           
 java.lang.String getConnectionURL()
           
 java.lang.String getDriverClass()
           
 java.lang.String getJndiName()
           
 java.lang.String getPassword()
           
 javax.transaction.TransactionManager getTransactionManager()
           
 java.lang.String getUserName()
           
 void setConnectionManagerReference(org.jboss.resource.connectionmanager.CachedConnectionManagerReference connectionManagerReference)
           
 void setConnectionURL(java.lang.String connectionURL)
           
 void setDriverClass(java.lang.String driverClass)
           
 void setJndiName(java.lang.String jndiName)
           
 void setPassword(java.lang.String password)
           
 void setTransactionManager(javax.transaction.TransactionManager transactionManager)
           
 void setUserName(java.lang.String userName)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transactionManager

private javax.transaction.TransactionManager transactionManager

connectionManagerReference

private org.jboss.resource.connectionmanager.CachedConnectionManagerReference connectionManagerReference

cfg

private DataSourceSupport.Config cfg

jndiName

private java.lang.String jndiName

ds

private LocalTxDataSource ds
Constructor Detail

DataSourceSupport

public DataSourceSupport(DataSourceSupport.Config cfg)

DataSourceSupport

public DataSourceSupport()
Method Detail

create

public void create()

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()

destroy

public void destroy()

getConnectionURL

public java.lang.String getConnectionURL()

setConnectionURL

public void setConnectionURL(java.lang.String connectionURL)

getDriverClass

public java.lang.String getDriverClass()

setDriverClass

public void setDriverClass(java.lang.String driverClass)

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getJndiName

public java.lang.String getJndiName()

setJndiName

public void setJndiName(java.lang.String jndiName)

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(javax.transaction.TransactionManager transactionManager)

getConnectionManagerReference

public org.jboss.resource.connectionmanager.CachedConnectionManagerReference getConnectionManagerReference()

setConnectionManagerReference

public void setConnectionManagerReference(org.jboss.resource.connectionmanager.CachedConnectionManagerReference connectionManagerReference)