com.acsinet_solutions.cetia4.data
Class PagedSearchFilter

java.lang.Object
  extended by com.acsinet_solutions.cetia4.data.PagedSearchFilter
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TopicSearchFilter

public class PagedSearchFilter
extends java.lang.Object
implements java.io.Serializable

Base class for paged search filters. This class may be extended to include additional search criteria needed by specific implementations.

Derechos Reservados

Author:
Santiago Arriaga
See Also:
Serialized Form

Constructor Summary
PagedSearchFilter()
           
 
Method Summary
 int getBlockIndex()
          Get the block index according to the first result and max results fields
 int getFirstResult()
          Returns the id.
 int getMaxResults()
          Returns the version.
 boolean isAscending()
          Is ascending ordering ( true by default )
 boolean isPagingRequired()
          Check if paging is required for this query.
 void setAscending(boolean b)
          set the ordering ( true by default )
 void setFirstResult(int firstResult)
          Sets the id.
 void setMaxResults(int maxResults)
          Sets the version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagedSearchFilter

public PagedSearchFilter()
Method Detail

getFirstResult

public final int getFirstResult()
Returns the id.

Returns:
int

getMaxResults

public final int getMaxResults()
Returns the version.

Returns:
int

setFirstResult

public final void setFirstResult(int firstResult)
Sets the id.

Parameters:
id - The id to set

setMaxResults

public final void setMaxResults(int maxResults)
Sets the version.

Parameters:
version - The version to set

isPagingRequired

public final boolean isPagingRequired()
Check if paging is required for this query. In other words check if the maximum results property is nonnegative.


getBlockIndex

public final int getBlockIndex()
Get the block index according to the first result and max results fields


isAscending

public final boolean isAscending()
Is ascending ordering ( true by default )


setAscending

public final void setAscending(boolean b)
set the ordering ( true by default )