[exo-jcr-commits] exo-jcr SVN: r529 - jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Nov 9 12:35:16 EST 2009
Author: areshetnyak
Date: 2009-11-09 12:35:16 -0500 (Mon, 09 Nov 2009)
New Revision: 529
Modified:
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoader.java
Log:
EXOJCR-201 : The JDBCCacheLoader.
Modified: jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoader.java
===================================================================
--- jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoader.java 2009-11-09 17:22:55 UTC (rev 528)
+++ jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoader.java 2009-11-09 17:35:16 UTC (rev 529)
@@ -126,6 +126,7 @@
break;
case REMOVE_NODE:
System.out.println(m);
+ doRemove(m, jdbcConnection, getID(m.getFqn()));
break;
case MOVE:
System.out.println(m);
@@ -145,6 +146,26 @@
}
}
+ /**
+ * Get ID from Fqn.
+ * @param fqn
+ * @return
+ */
+ private String getID(Fqn<String> fqn)
+ {
+ //TODO
+ return fqn.toString().split("/")[2];
+ }
+
+ /**
+ * Remove NodeData or PropertyData.
+ *
+ * @param modification
+ * @param jdbcConnection
+ * @param identifier
+ * @throws IllegalStateException
+ * @throws RepositoryException
+ */
private void doRemove(Modification modification, JDBCStorageConnection jdbcConnection, String identifier)
throws IllegalStateException, RepositoryException
{
More information about the exo-jcr-commits
mailing list