it.amattioli.dominate
Interface Filter

Show UML class diagram
All Superinterfaces:
PropertyChangeEmitter
All Known Subinterfaces:
CollectionFilter, HibernateFilter
All Known Implementing Classes:
AbstractCollectionFilter, AbstractHibernateFilter

Deprecated.

@Deprecated
public interface Filter
extends PropertyChangeEmitter

An interface for a filter that can be passed to Repository.list(Filter).

Author:
a.mattioli

Method Summary
 void doFilter()
          Deprecated.  
 int getFirst()
          Deprecated. Retrieves the index of the first object that will be retrieved when using this filter.
 int getLast()
          Deprecated. Retrieves the index of the last object that will be retrieved when using this filter.
 void setFirst(int first)
          Deprecated. Set the index of the first object that will be retrieved when using this filter.
 void setLast(int last)
          Deprecated. Set the index of the last object that will be retrieved when using this filter.
 
Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter
addPropertyChangeListener, removePropertyChangeListener
 

Method Detail

getFirst

int getFirst()
Deprecated. 
Retrieves the index of the first object that will be retrieved when using this filter.

Returns:
the index of the first object that will be retrieved when using this filter

setFirst

void setFirst(int first)
Deprecated. 
Set the index of the first object that will be retrieved when using this filter.

Parameters:
first - the index of the first object that will be retrieved when using this filter

getLast

int getLast()
Deprecated. 
Retrieves the index of the last object that will be retrieved when using this filter. This method will retrieve the same number that has been set using setLast(int).

Returns:
the index of the last object that will be retrieved when using this filter

setLast

void setLast(int last)
Deprecated. 
Set the index of the last object that will be retrieved when using this filter. If the repository contains less objects than the indicated index, all the objects will be retrieved.

Parameters:
last - the index of the last object that will be retrieved when using this filter

doFilter

void doFilter()
Deprecated. 


Copyright © 2011. All Rights Reserved.