*[DBFlute]obout Grid
oboutのGridとDBFluteのページングの連携
- 全件は取得したくないのでObjectDataSourceを利用。
- TypeNameでクラス指定。SelectMethodで取得するListのメソッド指定。SelectCountMethodで全件の件数取得するメソッド指定。
- SelectMethodではDBFluteのSelectPageを利用する。
- string sortExpression, int maximumRows, int startRowIndexがobout側からもらえる。
- sortExpressionにはスペース区切りでDataFieldとASCorDescが入ってくるのでそれをConditionBeanのOrderByにマッピング。
- maximumRowsはそのままConditionBeanのFetchFirstに
- 後はFetchPageにstartRowIndex/maximumRows+1を渡す
- string sortExpression, int maximumRows, int startRowIndexがobout側からもらえる。
- SelectCountMethodはそのまま全件をSelectCountを使って返す