OPENJPA-924: Add localized statements for logging

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748625 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2009-02-27 18:12:20 +00:00
parent 26a45518fd
commit e11b753da5
2 changed files with 7 additions and 2 deletions

View File

@ -174,7 +174,8 @@ public class FinderCacheImpl
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));

View File

@ -135,4 +135,8 @@ uparam-no-pos: User parameter "{0}" does not appear in any position in the \
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}".
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}"