Author: nzamosenchuk
Date: 2010-02-04 04:59:43 -0500 (Thu, 04 Feb 2010)
New Revision: 1674
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/LockJDBCConnection.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/LockPersistentDataManager.java
Log:
EXOJCR-472: extended interface of lock-persistence classes.
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/LockJDBCConnection.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/LockJDBCConnection.java 2010-02-04
09:49:11 UTC (rev 1673)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/LockJDBCConnection.java 2010-02-04
09:59:43 UTC (rev 1674)
@@ -22,6 +22,7 @@
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
+import java.util.Set;
import javax.jcr.RepositoryException;
import javax.jcr.lock.LockException;
@@ -139,6 +140,22 @@
}
/**
+ * Refreshes given lockData
+ */
+ public int refreshLockData(LockData data) throws LockException
+ {
+ return 0;
+ }
+
+ /**
+ * Returns set of locked nodes identifiers
+ */
+ public Set<String> getLockedNodes() throws LockException
+ {
+ return null;
+ }
+
+ /**
* {@inheritDoc}
*/
public boolean isOpened()
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/LockPersistentDataManager.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/LockPersistentDataManager.java 2010-02-04
09:49:11 UTC (rev 1673)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/LockPersistentDataManager.java 2010-02-04
09:59:43 UTC (rev 1674)
@@ -51,7 +51,7 @@
* @param tableName Name of DB table
* @throws RepositoryException
*/
- public LockPersistentDataManager(String dataSourceName, String wsName) throws
RepositoryException, IOException
+ public LockPersistentDataManager(String dataSourceName, String wsName) throws
RepositoryException
{
this.wsName = wsName;
@@ -75,6 +75,9 @@
{
throw new RepositoryException(e);
}
+ catch (IOException e) {
+ throw new RepositoryException(e);
+ }
finally
{
// close connection even if exception
Show replies by date