asgaard.skid
Class SkidBeanFilter

java.lang.Object
  |
  +--asgaard.skid.SkidBeanFilter

public class SkidBeanFilter
extends java.lang.Object

This is a Filterclass to search for a Bean about it's keys

See Also:
BeanKeyCall, SkidBean

Field Summary
protected  byte[] op
          The search-operation
 
Constructor Summary
SkidBeanFilter(java.lang.Class aClass)
          Creates a new Filter for a given Class
 
Method Summary
 RemoteBean[] getBeans()
          Returns a set with the beans found by the Filter Definition
 int[] getResultKeys()
          Returns a Set of Keys korresponding to the set Filter-items
 void removeFilterList()
          Resets the List with Filter-entries.
 void setFilterEntry(java.lang.String prop, java.lang.Object value, byte op)
          Searches for the property and sets the corresponding clause which all have to be true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

op

protected byte[] op
The search-operation
See Also:
Constructor Detail

SkidBeanFilter

public SkidBeanFilter(java.lang.Class aClass)
               throws java.lang.Exception
Creates a new Filter for a given Class
Parameters:
aClass - the Class to build the filter for
Throws:
java.lang.Exception - if the filter could not be generated from this class
Method Detail

removeFilterList

public void removeFilterList()
Resets the List with Filter-entries.

setFilterEntry

public void setFilterEntry(java.lang.String prop,
                           java.lang.Object value,
                           byte op)
                    throws java.lang.Exception
Searches for the property and sets the corresponding clause which all have to be true.
Parameters:
prop - the name of the property
value - the object representing the value
op - the operation
Throws:
java.lang.Exception - if the given propertyname is not valid

getResultKeys

public int[] getResultKeys()
                    throws java.lang.Exception
Returns a Set of Keys korresponding to the set Filter-items
Throws:
java.lang.Exception -  

getBeans

public RemoteBean[] getBeans()
                      throws java.lang.Exception
Returns a set with the beans found by the Filter Definition
Throws:
java.lang.Exception - it it doesn't work