static void setBeanProperties ( Object object , Properties props ) throws SQLException { if ( props != null ) { Enumeration < ? > enumeration = props . keys ( ) ; while ( enumeration . hasMoreElements ( ) ) { String name = ( String ) enumeration . nextElement ( ) ; setProperty ( object , name , props . getProperty ( name ) ) ; } } }
Sets the given properties on the target object .