本文整理匯總了Java中org.quickbundle.tools.helper.RmReflectHelper類的典型用法代碼示例。如果您正苦於以下問題:Java RmReflectHelper類的具體用法?Java RmReflectHelper怎麽用?Java RmReflectHelper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RmReflectHelper類屬於org.quickbundle.tools.helper包,在下文中一共展示了RmReflectHelper類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: intercept
import org.quickbundle.tools.helper.RmReflectHelper; //導入依賴的package包/類
public Object intercept(Invocation invocation) throws Throwable {
if(!(invocation.getTarget() instanceof FastResultSetHandler)) {
return invocation.proceed();
}
FastResultSetHandler resultSet = (FastResultSetHandler) invocation.getTarget();
RowBounds rowBounds = (RowBounds) RmReflectHelper.getFieldValue(resultSet, "rowBounds");
//if (rowBounds.getLimit() > 0 && rowBounds.getLimit() < RowBounds.NO_ROW_LIMIT) {
RmReflectHelper.setFieldValue(resultSet, "rowBounds", new RowBounds());
//}
return invocation.proceed();
}
示例2: intercept
import org.quickbundle.tools.helper.RmReflectHelper; //導入依賴的package包/類
public Object intercept(Invocation invocation) throws Throwable {
if(!(invocation.getTarget() instanceof ResultSetHandler)) {
return invocation.proceed();
}
ResultSetHandler resultSet = (ResultSetHandler) invocation.getTarget();
RowBounds rowBounds = (RowBounds) RmReflectHelper.getFieldValue(resultSet, "rowBounds");
//if (rowBounds.getLimit() > 0 && rowBounds.getLimit() < RowBounds.NO_ROW_LIMIT) {
RmReflectHelper.setFieldValue(resultSet, "rowBounds", new RowBounds());
//}
return invocation.proceed();
}