/** * @see {@link Sortable#setSortCriteria(java.util.List)} */ @Override public void setSortCriteria(List<SortCriterion> sortCriteria) { this.sortCriteria = sortCriteria; reset(); }
/** * @see {@link Sortable#setSortCriteria(java.util.List)} */ @Override public void setSortCriteria(List<SortCriterion> sortCriteria) { this.sortCriteria = sortCriteria; reset(); }
/** * @see Sortable#setSortCriteria(java.util.List) */ @Override public void setSortCriteria(List<SortCriterion> sortCriteria) { this.sortCriteria = sortCriteria; reset(); }
/** * @see javax.faces.model.DataModel#setRowIndex(int) */ @Override public void setRowIndex(int rowIndex) { // If the specified rowIndex is outside the range of cached rows, then clear the cache so that the // findRows(int startRow, int finishRow) method will be called in order to load the set of rows // associated with the specified rowIndex. if (rowIndex >= 0) { int startRowIndex = getStartRowIndex(); int finishRowIndex = getFinishRowIndex(); if ((startRowIndex >= 0) && (finishRowIndex >= 0)) { int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1; if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) { if (logger.isDebugEnabled()) { logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.", rowIndex); } reset(); } } } this.rowIndex = rowIndex; }
/** * @see {@link javax.faces.model.DataModel#setRowIndex(int)} */ @Override public void setRowIndex(int rowIndex) { // If the specified rowIndex is outside the range of cached rows, then clear the cache so that the // findRows(int startRow, int finishRow) method will be called in order to load the set of rows // associated with the specified rowIndex. if (rowIndex >= 0) { int startRowIndex = getStartRowIndex(); int finishRowIndex = getFinishRowIndex(); if ((startRowIndex >= 0) && (finishRowIndex >= 0)) { int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1; if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) { if (logger.isDebugEnabled()) { logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.", rowIndex); } reset(); } } } this.rowIndex = rowIndex; }
/** * @see {@link javax.faces.model.DataModel#setRowIndex(int)} */ @Override public void setRowIndex(int rowIndex) { // If the specified rowIndex is outside the range of cached rows, then clear the cache so that the // findRows(int startRow, int finishRow) method will be called in order to load the set of rows // associated with the specified rowIndex. if (rowIndex >= 0) { int startRowIndex = getStartRowIndex(); int finishRowIndex = getFinishRowIndex(); if ((startRowIndex >= 0) && (finishRowIndex >= 0)) { int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1; if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) { if (logger.isDebugEnabled()) { logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.", rowIndex); } reset(); } } } this.rowIndex = rowIndex; }