The common and error prone way of saving things in the database is to open a transaction, enter a
try clause, do something then commit. If we catch an exception, then we rollback.
something like this:
begin transaction;
try {
do something;
do something else;
commit;
} catch (Any exception which may occur) {
rollback;
}
There are 3 things which can go wrong. 1 we forget to begin the transaction, 2 we forget to commit
and 3 we do not rollback properly. What ...
License | LGPL 2.1 |
---|---|
Tags | storexwikiplatformtransaction |
Date | Mar 19, 2019 |
Files | pom (5 KB) jar (24 KB) View All |
Repositories | XWiki Releases |
Ranking | #87759 in MvnRepository (See Top Artifacts) |
Used By | 4 artifacts |
Note: this artifact is located at XWiki Releases repository (https://maven.xwiki.org/releases/)
Compile Dependencies (0)
Category/License | Group / Artifact | Version | Updates |
---|
Test Dependencies (1)
Category/License | Group / Artifact | Version | Updates | |
---|---|---|---|---|
LGPL 2.1 | org.xwiki.commons » xwiki-commons-tool-test-component | 11.2-rc-1 | 16.3.1 |
Licenses
License | URL |
---|---|
LGPL 2.1 | http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html |
Developers
Name | Dev Id | Roles | Organization | |
---|---|---|---|---|
XWiki Development Team | devs |