net.pleso.framework.client.dal
Class SelectParams

java.lang.Object
  extended by net.pleso.framework.client.dal.SelectParams
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class SelectParams
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Represents class-utility for transfer parameters of selection data from data source (f.e. database).


Field Summary
static int defaultLimit
           
 
Constructor Summary
SelectParams()
          Constructor with default parameters
SelectParams(int limit, int offset, java.lang.String orderBy, boolean orderByDirection, IDataRow searchRow)
          Constructor with specified parameters
 
Method Summary
 int getLimit()
          Gets limit records in page
 int getOffset()
          Gets current record offset
 java.lang.String getOrderByColumnName()
          Gets column name by which data source is sorting
 boolean getOrderByDirection()
          Gets order direction (true - "asc"; false - "desc")
 java.lang.String getOrderByDirectionString()
          Gets order direction like string
 IDataRow getSearchRow()
          Gets row with search parameters
 void setLimit(int limit)
          Sets limit record in page
 void setOffset(int offset)
          Sets current record offset
 void setOrderByColumnName(java.lang.String orderByColumnName)
          Sets column name by which data source is sorting
 void setOrderByDirection(boolean orderByDirection)
          Sets order direction (true - "asc"; false - "desc")
 void setSearchRow(IDataRow searchRow)
          Sets row with search parameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultLimit

public static final int defaultLimit
See Also:
Constant Field Values
Constructor Detail

SelectParams

public SelectParams()
Constructor with default parameters


SelectParams

public SelectParams(int limit,
                    int offset,
                    java.lang.String orderBy,
                    boolean orderByDirection,
                    IDataRow searchRow)
Constructor with specified parameters

Parameters:
limit - limit of records
offset - offset number of record
orderBy - order of sorting
orderByDirection - order of sorting in string presentation
searchRow - row with search parameters
Method Detail

getOrderByDirectionString

public java.lang.String getOrderByDirectionString()
Gets order direction like string

Returns:
order direction like string

getOrderByDirection

public boolean getOrderByDirection()
Gets order direction (true - "asc"; false - "desc")

Returns:
order direction

setOrderByDirection

public void setOrderByDirection(boolean orderByDirection)
Sets order direction (true - "asc"; false - "desc")

Parameters:
orderByDirection - order direction

getOrderByColumnName

public java.lang.String getOrderByColumnName()
Gets column name by which data source is sorting

Returns:
column name

setOrderByColumnName

public void setOrderByColumnName(java.lang.String orderByColumnName)
Sets column name by which data source is sorting

Parameters:
orderByColumnName - column name

getLimit

public int getLimit()
Gets limit records in page

Returns:
limit number

setLimit

public void setLimit(int limit)
Sets limit record in page

Parameters:
limit - limit number

getOffset

public int getOffset()
Gets current record offset

Returns:
current offset

setOffset

public void setOffset(int offset)
Sets current record offset

Parameters:
offset - current offset

getSearchRow

public IDataRow getSearchRow()
Gets row with search parameters

Returns:
row with search parameters

setSearchRow

public void setSearchRow(IDataRow searchRow)
Sets row with search parameters

Parameters:
searchRow - row with search parameters


Copyright © 2006-2007 pleso.net crew All Rights Reserved.