public static void setAutoIncreamentIdValue(Object po,String autoGeneratedId,Object idValue) throws Exception, NoSuchMethodException{
		String setterName = "set" + StringUtils.capitalize(autoGeneratedId);
		Method setter = po.getClass().getDeclaredMethod(setterName, idValue.getClass());
		setter.invoke(po, idValue);
	}
public static void setAutoIncreamentIdValue ( Object po , String autoGeneratedId , Object idValue ) throws Exception , NoSuchMethodException { String setterName = "set" + StringUtils . capitalize ( autoGeneratedId ) ; Method setter = po . getClass ( ) . getDeclaredMethod ( setterName , idValue . getClass ( ) ) ; setter . invoke ( po , idValue ) ; }
将自增id的值设置回去
@param po
@param autoGeneratedId
@param idValue
@throws Exception
@throws NoSuchMethodException