net.mlw.vlh.adapter.util
Interface ObjectValidator


public interface ObjectValidator

This class is used in ScrollableResultsDecorator and ResultSetDecorator. Using this validator you can enable or disable putting objects into the final ResultsSet, thus into your final valueList.

  • Using validators is recommended in the case when you cannot do a filtering in database tier, otherwise validators may greatly slow down a performance because it's done in JVM.
  • Version:
    $Revision: 1.3 $ $Date: 2005/02/23 13:54:14 $
    Author:
    Andrej Zachar
    See Also:
    AbstractJdbcAdapter.setValidator(ObjectValidator), Hibernate20Adapter.setValidator(ObjectValidator), DefaultWrapperAdapter.setWrapper(ObjectWrapper), Hibernate20Adapter.setFocusOptimalization(boolean)

    Method Summary
     boolean isAcceptable(Object objectToBeChecked)
               
     void setValueListInfo(ValueListInfo info)
              Adapter will set ValueListInfo before use.
     

    Method Detail

    isAcceptable

    public boolean isAcceptable(Object objectToBeChecked)
    Parameters:
    objectToBeChecked -
    Returns:
    true if the given object is accepted at the final valueList. false if the given object is rejected from the final valueList.

    setValueListInfo

    public void setValueListInfo(ValueListInfo info)
    Adapter will set ValueListInfo before use. This interface allow you to "send" some additional date that could be helpfull in "acceptable process".

    Parameters:
    info -


    Copyright © 2003-2006 mlavilson. All Rights Reserved.