Package com.exedio.cope
Class TransactionTry
- java.lang.Object
-
- com.exedio.cope.TransactionTry
-
- All Implemented Interfaces:
AutoCloseable
public final class TransactionTry extends Object implements AutoCloseable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
commit()
int
commit(int result)
long
commit(long result)
<R> R
commit(R result)
Item
getItem(String id)
boolean
hasCurrentTransaction()
void
rollbackIfNotCommitted()
void
startTransaction(String name)
-
-
-
Method Detail
-
commit
public void commit()
- See Also:
Model.commit()
-
commit
public <R> R commit(R result)
- See Also:
commit()
-
commit
public int commit(int result)
- See Also:
commit()
-
commit
public long commit(long result)
- See Also:
commit()
-
getItem
public Item getItem(String id) throws NoSuchIDException
- Throws:
NoSuchIDException
- See Also:
Model.getItem(String)
-
hasCurrentTransaction
public boolean hasCurrentTransaction()
- See Also:
Model.hasCurrentTransaction()
-
startTransaction
public void startTransaction(String name)
- See Also:
Model.startTransaction(String)
-
rollbackIfNotCommitted
public void rollbackIfNotCommitted()
- See Also:
Model.rollbackIfNotCommitted()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- See Also:
Model.rollbackIfNotCommitted()
-
-