public static void writeValueToBeanField ( Object entityBean , String fieldName , Object value ) { Method writeMethod = ClassCacheUtils . getClassFieldWriteMethod ( entityBean . getClass ( ) , fieldName ) ; if ( writeMethod == null ) { throw new DialectException ( "Can not find Java bean read method '" + fieldName + "'" ) ; } else try { writeMethod . invoke ( entityBean , value ) ; } catch ( Exception e ) { throw new DialectException ( "FieldName '" + fieldName + "' can not write with value '" + value + "'" , e ) ; } }
write value to entityBean field