openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r748625 - in /openjpa/trunk/openjpa-jdbc/src/main: java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java resources/org/apache/openjpa/jdbc/kernel/localizer.properties
Date Fri, 27 Feb 2009 18:12:20 GMT
Author: ppoddar
Date: Fri Feb 27 18:12:20 2009
New Revision: 748625

URL: http://svn.apache.org/viewvc?rev=748625&view=rev
Log:
OPENJPA-924: Add localized statements for logging

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java
    openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java?rev=748625&r1=748624&r2=748625&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java
Fri Feb 27 18:12:20 2009
@@ -174,7 +174,8 @@
         if (finder != null) {
             _delegate.put(mapping, finder);
             if (_log != null && _log.isTraceEnabled())
-                _log.trace(_loc.get("finder-cached", finder)); 
+                _log.trace(_loc.get("finder-cached", mapping, 
+                    finder.getQueryString())); 
         } else {
             if (_log != null && _log.isWarnEnabled())
                 _log.warn(_loc.get("finder-not-cachable", mapping));

Modified: openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties?rev=748625&r1=748624&r2=748625&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties
Fri Feb 27 18:12:20 2009
@@ -135,4 +135,8 @@
 uparam-pc-key: Class "{0}" uses {1} primary key columns but corresponding \
 	positions {2} in the parameter list of the prepared query is not compatible.
 uparam-missing: Parameter {0} in SQL Query "{1}" is not given a value. The \
-	parameters given is "{2}".   
\ No newline at end of file
+	parameters given is "{2}".   
+finder-cached: Cached finder for "{0}" SQL: "{1}"
+finder-not-cachable: Finder for "{0}" is not cachable.
+finder-add-pattern: Exclusion pattern "{0}" for finder query has invalidated \
+	{1} existing entries "{2}"
\ No newline at end of file



Mime
View raw message