pl.slawas.paging
Class ResultSupport<Obj>
java.lang.Object
pl.slawas.paging.ResultSupport<Obj>
- Type Parameters:
Obj
-
- All Implemented Interfaces:
- java.io.Serializable, _IResultInfo
public abstract class ResultSupport<Obj>
- extends java.lang.Object
- implements java.io.Serializable, _IResultInfo
ResultSupport klasa abstrakcyjna predefiniująca wynik stronicowanego zapytania
- Version:
- $Revision: 1.2 $
- Author:
- Slawomir Cichy <slawas@slawas.pl>
- See Also:
- Serialized Form
Constructor Summary |
protected |
ResultSupport(int startPosition,
int endPosition,
java.lang.Integer firstRowPosition,
int resultSize,
java.lang.Integer lastRowPosition,
java.util.Collection<Obj> result,
ResultMessage message,
int absoluteFirstRowPosition,
int resultMaxPages)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSupport
protected ResultSupport(int startPosition,
int endPosition,
java.lang.Integer firstRowPosition,
int resultSize,
java.lang.Integer lastRowPosition,
java.util.Collection<Obj> result,
ResultMessage message,
int absoluteFirstRowPosition,
int resultMaxPages)
- Parameters:
startPosition
- numer pierwszej pozycji na stronieendPosition
- numer ostatniej pozycji na stroniefirstRowPosition
- pierwsza pozycja rezultaturesultSize
- rozmiar rezultatulastRowPosition
- ostatnia pozycja rezultaturesult
- lista wyników rezultatumessage
- komunikat związany z rezultatem (ResultMessage
)absoluteFirstRowPosition
- absolutny pierwszy numer wiersza w wyniku zapytaniaresultMaxPages
- predefiniowana maksymalna liczba stron w rezultacie.
getStartPosition
public int getStartPosition()
- Specified by:
getStartPosition
in interface _IResultInfo
- Returns:
- numer pierwszej pozycji na stronie
getEndPosition
public int getEndPosition()
- Specified by:
getEndPosition
in interface _IResultInfo
- Returns:
- numer ostatniej pozycji na stronie
getResultSize
public int getResultSize()
- Specified by:
getResultSize
in interface _IResultInfo
- Returns:
- rozmiar rezultatu
getResult
public java.util.Collection<Obj> getResult()
- Returns:
- the result
getMessage
public ResultMessage getMessage()
- Specified by:
getMessage
in interface _IResultInfo
- Returns:
- komunikat związany z rezultatem (
ResultMessage
)
getUniqueResult
public Obj getUniqueResult()
hasMoreResultRows
public boolean hasMoreResultRows()
- Specified by:
hasMoreResultRows
in interface _IResultInfo
- Returns:
- the hasMoreResultRows
setHasMoreResultRows
public void setHasMoreResultRows(boolean hasMoreResultRows)
- Parameters:
hasMoreResultRows
- the hasMoreResultRows to set
getLastRowPosition
public java.lang.Integer getLastRowPosition()
- Specified by:
getLastRowPosition
in interface _IResultInfo
- Returns:
- ostatnia pozycja rezultatu
getFirstRowPosition
public int getFirstRowPosition()
- Specified by:
getFirstRowPosition
in interface _IResultInfo
- Returns:
- pierwsza pozycja rezultatu
getResultMaxPages
public int getResultMaxPages()
- Specified by:
getResultMaxPages
in interface _IResultInfo
- Returns:
- predefiniowana maksymalna liczba stron w rezultacie
getAbsoluteFirstRowPosition
public int getAbsoluteFirstRowPosition()
- Specified by:
getAbsoluteFirstRowPosition
in interface _IResultInfo
- Returns:
- absolutny pierwszy numer wiersza w wyniku zapytania
Copyright © 2014 Sci Software. All Rights Reserved.