|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.impl.filter.AcceptAllReadFilter
public class AcceptAllReadFilter
This read filter implementation accepts all records as the object(s) read. This filter is used as default filter in case null is passed as filter to a read method taking a filter. This means null = no filtering = all records accepted.
Field Summary | |
---|---|
static IReadFilter |
ACCEPT_ALL_FILTER
|
Constructor Summary | |
---|---|
AcceptAllReadFilter()
|
Method Summary | |
---|---|
boolean |
accept(java.sql.ResultSet result)
Returns true if the filter can accept the record at the current position of the result set as part of the objects read. |
void |
acceptedByAllFilters(boolean wasAcceptedByAllFilters)
If the filter is used in a combined filter, this filter can be told whether all other filters accepted this record, or not. |
boolean |
acceptMore()
Returns true if the filter will accept anymore records at all. |
void |
clear()
This method is called when all reading is done. |
void |
init(java.sql.ResultSet result)
Called by the object reader before reading starts taking place. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IReadFilter ACCEPT_ALL_FILTER
Constructor Detail |
---|
public AcceptAllReadFilter()
Method Detail |
---|
public void init(java.sql.ResultSet result) throws java.sql.SQLException, PersistenceException
IReadFilter
init
in interface IReadFilter
result
- The ResultSet to initialize.
java.sql.SQLException
PersistenceException
public boolean accept(java.sql.ResultSet result) throws java.sql.SQLException, PersistenceException
IReadFilter
accept
in interface IReadFilter
result
- The ResultSet instance apply the filter filter to.
java.sql.SQLException
PersistenceException
public boolean acceptMore()
IReadFilter
acceptMore
in interface IReadFilter
public void acceptedByAllFilters(boolean wasAcceptedByAllFilters)
IReadFilter
acceptedByAllFilters
in interface IReadFilter
wasAcceptedByAllFilters
- Will be set to true if all filters in a combined filter
accepted the current record. Will be set to false if just one single filter do
not accept the current record.public void clear()
IReadFilter
clear
in interface IReadFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |