diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java index 8e5696001..ef7e6d734 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java @@ -219,7 +219,7 @@ public class PreparedQueryImpl implements PreparedQuery { if (provider instanceof SelectResultObjectProvider) { return new Object[]{((SelectResultObjectProvider)provider).getSelect(), null}; } - return new Object[]{null, _loc.get("exclude-not-select-rop", provider)}; + return new Object[]{null, _loc.get("exclude-not-select-rop", provider.getClass().getName())}; } private SelectImpl extractImplementation(SelectExecutor selector) { diff --git a/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties b/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties index 5ba876d53..b4561b4bc 100644 --- a/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties +++ b/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties @@ -149,17 +149,17 @@ bad-lrs-size: Invalid LRS size. Valid values are \ "unknown"(0), "last"(1) or "query"(2). Specified value: {0}. bad-join-syntax: Invalid join syntax. Valid values are \ "sql92"(0), "tradition"(1) or "database"(2). Specified value: {0}. -exclude-multi-select: because this query generates multiple SQL statements. \ +exclude-multi-select: This query generates multiple SQL statements. \ A query can be cached only when it corresponds to a single SQL statement. -exclude-not-result: because this query returns a single value rather than \ +exclude-not-result: This query returns a single value rather than \ a list. A query that returns single value can not be cached. -exclude-no-user-object: because post-execution data can not be extracted \ +exclude-no-user-object: Post-execution data can not be extracted \ from this query. -exclude-no-sql: because target SQL statement can not be extracted \ +exclude-no-sql: Target SQL statement can not be extracted \ from this query. -exclude-no-select: because internal select instance can not be extracted \ +exclude-no-select: Internal select instance can not be extracted \ from this query. -exclude-not-select-rop: because the query result is not obtained by executing \ +exclude-not-select-rop: The query result is not obtained by executing \ a select statement. This can happen if the query was evaluated in-memory. \ The result was provided by an instance of {0}. -exclude-not-executor: because this query was not executed on a data store. +exclude-not-executor: This query was not executed on a data store.