|
||||||||||
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(HeuristicMessage hmsg)
Get a connection to the datasource for the given description of the work. |
String |
getDriverClassName()
|
String |
getPassword()
|
boolean |
getReadOnly()
|
String |
getUrl()
Gets the URL to connect. |
String |
getUser()
|
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()
|
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 AbstractDataSourceBean
Exception
public Connection getConnection(HeuristicMessage hmsg) throws SQLException
HeuristicDataSource
getConnection
in interface HeuristicDataSource
getConnection
in class AbstractDataSourceBean
hmsg
- The heuristic message that best describes the work about to be
done.
SQLException
- On error.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |