[exo-jcr-commits] exo-jcr SVN: r1472 - jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jan 19 06:06:18 EST 2010
Author: skabashnyuk
Date: 2010-01-19 06:06:17 -0500 (Tue, 19 Jan 2010)
New Revision: 1472
Modified:
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/JBossCacheWorkspaceStorageCache.java
Log:
EXOJCR-390 : code style
Modified: jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/JBossCacheWorkspaceStorageCache.java
===================================================================
--- jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/JBossCacheWorkspaceStorageCache.java 2010-01-19 09:33:12 UTC (rev 1471)
+++ jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/JBossCacheWorkspaceStorageCache.java 2010-01-19 11:06:17 UTC (rev 1472)
@@ -356,7 +356,9 @@
try
{
if (!inTransaction)
+ {
cache.beginTransaction();
+ }
cache.setLocal(true);
if (item.isNode())
{
@@ -371,7 +373,9 @@
{
cache.setLocal(false);
if (!inTransaction)
+ {
cache.commitTransaction();
+ }
}
}
@@ -438,7 +442,10 @@
{
if (!inTransaction)
+ {
cache.beginTransaction();
+ }
+
cache.setLocal(true);
// remove previous all (to be sure about consistency)
cache.removeNode(makeChildListFqn(childNodesList, parent.getIdentifier()));
@@ -463,7 +470,9 @@
{
cache.setLocal(false);
if (!inTransaction)
+ {
cache.commitTransaction();
+ }
}
}
@@ -476,7 +485,9 @@
try
{
if (!inTransaction)
+ {
cache.beginTransaction();
+ }
cache.setLocal(true);
// remove previous all (to be sure about consistency)
cache.removeNode(makeChildListFqn(childPropsList, parent.getIdentifier()));
@@ -501,7 +512,9 @@
{
cache.setLocal(false);
if (!inTransaction)
+ {
cache.commitTransaction();
+ }
}
}
More information about the exo-jcr-commits
mailing list