|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.jdbc.AbstractDataSourceBean
com.atomikos.jdbc.nonxa.AtomikosNonXADataSourceBean
public class AtomikosNonXADataSourceBean
A Bean class for DataSource access to non-XA JDBC implementations. Instances are JTA transaction-aware and can rollback the work done over multiple connections (provided that all work was done in one and the same thread).
| Constructor Summary | |
|---|---|
AtomikosNonXADataSourceBean()
|
|
| Method Summary | |
|---|---|
protected void |
doClose()
|
protected ConnectionFactory |
doInit()
|
Connection |
getConnection()
|
String |
getDriverClassName()
|
String |
getPassword()
|
boolean |
getReadOnly()
|
String |
getUrl()
Gets the URL to connect. |
String |
getUser()
|
protected boolean |
isAssignableFromWrappedVendorClass(Class<?> iface)
|
void |
setDriverClassName(String string)
Sets the driver class name to be used by the DriverManager. |
void |
setPassword(String string)
Sets the password to use. |
void |
setReadOnly(boolean readOnly)
Marks this datasource as being used for read-only work. |
void |
setUrl(String url)
Sets the URL to use for getting connections. |
void |
setUser(String string)
Set the user name to get connections with. |
String |
toString()
|
protected Object |
unwrapVendorInstance()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AtomikosNonXADataSourceBean()
| Method Detail |
|---|
public void setUrl(String url)
url - public String getUrl()
public void setReadOnly(boolean readOnly)
readOnly - Defaults to false.public boolean getReadOnly()
public String getPassword()
public void setPassword(String string)
string - public void setUser(String string)
string - public String getUser()
public String getDriverClassName()
public void setDriverClassName(String string)
string - protected void doClose()
doClose in class AbstractDataSourceBean
protected ConnectionFactory doInit()
throws Exception
doInit in class AbstractDataSourceBeanException
public Connection getConnection()
throws SQLException
getConnection in interface DataSourcegetConnection in class AbstractDataSourceBeanSQLExceptionpublic String toString()
toString in class Objectprotected boolean isAssignableFromWrappedVendorClass(Class<?> iface)
isAssignableFromWrappedVendorClass in class AbstractDataSourceBeanprotected Object unwrapVendorInstance()
unwrapVendorInstance in class AbstractDataSourceBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||