public static void dumpUpdateParams(String prefix,Object[] newData,Object[] oldData){
  if (!log.isDebugEnabled()) {
    return;
  }
  StringWriter buffer=new StringWriter();
  PrintWriter writer=new PrintWriter(buffer);
  if (newData == null) {
    writer.println(prefix + " newData=null ");
  }
 else {
    writer.println(prefix + " newData.size=" + newData.length+ "...");
    printObjectArray(prefix,writer,newData);
  }
  if (oldData == null) {
    writer.println(prefix + " oldData=null ");
  }
 else {
    writer.println(prefix + " oldData.size=" + oldData.length+ "...");
    printObjectArray(prefix,writer,oldData);
  }
}

public static void dumpUpdateParams ( String prefix , Object [ ] newData , Object [ ] oldData ) { if ( ! log . isDebugEnabled ( ) ) { return ; } StringWriter buffer = new StringWriter ( ) ; PrintWriter writer = new PrintWriter ( buffer ) ; if ( newData == null ) { writer . println ( prefix + " newData=null " ) ; } else { writer . println ( prefix + " newData.size=" + newData . length + "..." ) ; printObjectArray ( prefix , writer , newData ) ; } if ( oldData == null ) { writer . println ( prefix + " oldData=null " ) ; } else { writer . println ( prefix + " oldData.size=" + oldData . length + "..." ) ; printObjectArray ( prefix , writer , oldData ) ; } }
convenience method for logging the parameters passed to the update method . only logs if debug is enabled .
