Mybatis查询oracle之clob类型

时间:2025-03-12 07:17:23
static String getClob(Object o){
  if( o == null ){
   return "";
  }
  
   clob = null;
  if(o instanceof ){
   clob =  (CLOB) o;
  }else{
   try {
    Method method = ().getMethod("getVendorObj", new Class[]{});
    clob = (CLOB) (o);
   } catch (Exception e) {
    ();
   }
  }
  
   try {
    Reader reader = ();
    char[] chars = new char[2048];
    int i = 0;
    StringBuffer sb = new StringBuffer();
    while( (i = (chars)) != -1){
     (new String(chars).substring(0,i));
    }
    return ();
   } catch (Exception e) {
    ();
   }
  return "";
 }