dk.netarkivet.common.utils
Class TableSort

java.lang.Object
  extended by dk.netarkivet.common.utils.TableSort

public class TableSort
extends java.lang.Object

contains the data about how a table is sorted.


Nested Class Summary
static class TableSort.SortOrder
          list of the sort order.
 
Constructor Summary
TableSort(int columnId, TableSort.SortOrder sortOrder)
          constructor.
 
Method Summary
 int getColumnIdent()
          return the id of the sorted column.
 TableSort.SortOrder getOrder()
          return the order of the sort.
 void setColumnIdent(int columnident)
          set the id of the sorted column.
 void setOrder(TableSort.SortOrder sortorder)
          set the order of the sort.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSort

public TableSort(int columnId,
                 TableSort.SortOrder sortOrder)
constructor.

Parameters:
columnId - the id of the sorted column
sortOrder - the order of the sort
Method Detail

getColumnIdent

public final int getColumnIdent()
return the id of the sorted column.

Returns:
the id of the sorted column

setColumnIdent

public final void setColumnIdent(int columnident)
set the id of the sorted column.

Parameters:
columnident - the id of the sorted column

getOrder

public final TableSort.SortOrder getOrder()
return the order of the sort.

Returns:
the order of the sort

setOrder

public final void setOrder(TableSort.SortOrder sortorder)
set the order of the sort.

Parameters:
sortorder - the order of the sort