public class SessionOnlyTransaction<T> extends java.lang.Object implements Transaction
An implementation that provides Session only transaction management. Essentially when rollback() is called the Session's clear() method is called and when commit() is called the flush() method is called.
No other resource level transaction management is provided.
Modifiers | Name | Description |
---|---|---|
private boolean |
active |
|
private T |
nativeInterface |
|
private Session |
session |
Constructor and description |
---|
SessionOnlyTransaction
(T nativeInterface, Session session) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
commit() |
|
public T |
getNativeTransaction() |
|
public boolean |
isActive() |
|
public void |
rollback() |
|
public void |
setTimeout(int timeout) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |