1 21 package com.db4o.diagnostic; 22 23 26 public class UpdateDepthGreaterOne extends DiagnosticBase{ 27 28 private final int _depth; 29 30 public UpdateDepthGreaterOne(int depth) { 31 _depth = depth; 32 } 33 34 public Object reason() { 35 return "Db4o.configure().updateDepth(" + _depth + ")"; 36 } 37 38 public String problem() { 39 return "A global update depth greater than 1 is not recommended"; 40 } 41 42 public String solution() { 43 return "Increasing the global update depth to a value greater than 1 is only recommended for" 44 + " testing, not for production use. If individual deep updates are needed, consider using" 45 + " ExtObjectContainer#set(object, depth) and make sure to profile the performance of each call."; 46 } 47 48 } 49 | Popular Tags |