public void formCopyToModelIF ( ModelForm form , Object model ) throws Exception { if ( model == null || form == null ) return ; if ( model instanceof Model ) { // for below 1.4 version formCopyToModel ( form , ( Model ) model ) ; return ; } try { PropertyUtils . copyProperties ( model , form ) ; } catch ( InvocationTargetException ie ) { String error = "error happened in getXXX method of ModelForm:" + form . getClass ( ) . getName ( ) + " error:" + ie ; Debug . logError ( error , module ) ; throw new Exception ( error ) ; } catch ( Exception e ) { String error = " ModelForm:" + form . getClass ( ) . getName ( ) + " copy To Model:" + model . getClass ( ) . getName ( ) + " error:" + e ; Debug . logError ( error , module ) ; throw new Exception ( error ) ; } }
ModelForm object s data transfer to Model object