1 21 package com.db4o.diagnostic; 22 23 import com.db4o.query.*; 24 25 28 public class NativeQueryNotOptimized extends DiagnosticBase{ 29 30 private final Predicate _predicate; 31 32 public NativeQueryNotOptimized(Predicate predicate) { 33 _predicate = predicate; 34 } 35 36 public Object reason() { 37 return _predicate; 38 } 39 40 public String problem() { 41 return "Native Query Predicate could not be run optimized"; 42 } 43 44 public String solution() { 45 return "This Native Query was run by instantiating all objects of the candidate class. " 46 + "Consider simplifying the expression in the Native Query method. If you feel that " 47 + "the Native Query processor should understand your code better, you are invited to " 48 + "post yout query code to db4o forums at http://developer.db4o.com/forums"; 49 } 50 51 } 52 | Popular Tags |