Author: nzamosenchuk
Date: 2010-02-08 09:51:55 -0500 (Mon, 08 Feb 2010)
New Revision: 1726
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java
Log:
EXOJCR-470: update comments.
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java 2010-02-08
14:51:21 UTC (rev 1725)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java 2010-02-08
14:51:55 UTC (rev 1726)
@@ -269,7 +269,8 @@
public void configureJDBCCacheLoader(MappedParametrizedObjectEntry parameterEntry)
throws RepositoryException
{
String dataSourceName =
parameterEntry.getParameterValue(JBOSSCACHE_JDBC_CL_DATASOURCE, null);
- // if data source is not defined, i.e. no cache loader is used (possibly pattern is
changed, to used another cache loader)
+ // if data source is defined, then inject correct data-types.
+ // Also it cans be not defined and nothing should be injected (i.e. no cache loader
is used (possibly pattern is changed, to used another cache loader))
if (dataSourceName != null)
{
String dialect;
@@ -301,7 +302,6 @@
{
// Oracle suggests the use VARCHAR2 instead of VARCHAR while declaring data
type.
charType = "VARCHAR2(512)";
- blobType = "BLOB";
}
// POSTGRE SQL
else if (dialect.equals(DBConstants.DB_DIALECT_PGSQL))
@@ -335,7 +335,7 @@
{
parameterEntry.putParameterValue(JBOSSCACHE_JDBC_CL_NODE_COLUMN, blobType);
}
-
+
if (parameterEntry.getParameterValue(JBOSSCACHE_JDBC_CL_FQN_COLUMN, null) ==
null)
{
parameterEntry.putParameterValue(JBOSSCACHE_JDBC_CL_FQN_COLUMN, charType);