LocalManagedConnectionpublic class LocalManagedConnection extends org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection implements javax.resource.spi.LocalTransaction
Methods Summary |
---|
public void | begin()
synchronized (stateLock)
{
if (inManagedTransaction == false)
{
try
{
if (underlyingAutoCommit)
{
underlyingAutoCommit = false;
con.setAutoCommit(false);
}
checkState();
inManagedTransaction = true;
}
catch (SQLException e)
{
checkException(e);
}
}
else
throw new JBossResourceException("Trying to begin a nested local tx");
}
| public void | commit()
synchronized (stateLock)
{
if (inManagedTransaction)
inManagedTransaction = false;
}
try
{
con.commit();
}
catch (SQLException e)
{
checkException(e);
}
| public javax.resource.spi.LocalTransaction | getLocalTransaction()
return this;
| java.util.Properties | getProps()
return props;
| public javax.transaction.xa.XAResource | getXAResource()
throw new JBossResourceException("Local tx only!");
| public void | rollback()
synchronized (stateLock)
{
if (inManagedTransaction)
inManagedTransaction = false;
}
try
{
con.rollback();
}
catch (SQLException e)
{
try
{
checkException(e);
}
catch (Exception e2)
{
}
}
|
|