X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.enterprise%2Fsrc%2Forg%2Fargeo%2Fosgi%2Ftransaction%2FWorkTransaction.java;fp=org.argeo.enterprise%2Fsrc%2Forg%2Fargeo%2Fosgi%2Ftransaction%2FWorkTransaction.java;h=6533909125c431ab3dad8cf3a89e313b43086431;hb=5986e55820cba0821f0c16627c4ab144863c82ab;hp=0000000000000000000000000000000000000000;hpb=1a0d5ca243bc86a5f54448186178e5fb04c623e9;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.enterprise/src/org/argeo/osgi/transaction/WorkTransaction.java b/org.argeo.enterprise/src/org/argeo/osgi/transaction/WorkTransaction.java new file mode 100644 index 000000000..653390912 --- /dev/null +++ b/org.argeo.enterprise/src/org/argeo/osgi/transaction/WorkTransaction.java @@ -0,0 +1,15 @@ +package org.argeo.osgi.transaction; + +/** + * A minimalistic interface inspired by JTA user transaction in order to commit + * units of work externally. + */ +public interface WorkTransaction { + void begin(); + + void commit(); + + void rollback(); + + boolean isNoTransactionStatus(); +}