Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql.util
Class CompoundFilter<T>

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.util.CompoundFilter<T>

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Filter<T>
Direct Known Subclasses:
AndFilter

public abstract class CompoundFilter<T>
extends java.lang.Object
implements Filter<T>, java.lang.Cloneable, java.io.Serializable

This filter provides a simple framework for combining the behavior of a pair of filters.

Since:
2.3
Version:
2.3
Author:
Pascal Filion
See Also:
Serialized Form

Field Summary
protected  Filter<T> filter1
          The first Filter used to accept the value.
protected  Filter<T> filter2
          The second Filter used to accept the value.
private static long serialVersionUID
          The version number of this class which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization.

 

Constructor Summary
protected CompoundFilter(Filter<T> filter1, Filter<T> filter2)
          Creates a new CompoundFilter that will "accept" any object that is accept by both of the specified wrapped filters.

 

Method Summary
private  void checkFilter1(Filter<T> filter)
           
private  void checkFilter2(Filter<T> filter)
           
 CompoundFilter<T> clone()
          
 boolean equals(java.lang.Object object)
          
 Filter<T> getFilter1()
          Returns the left Filter of this compound filter.
 Filter<T> getFilter2()
          Returns the second Filter of this compound filter.
 int hashCode()
          
protected abstract  java.lang.String operatorString()
          Returns a string representation of the filter's operator.
 java.lang.String toString()
          

 

Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface org.eclipse.persistence.jpa.internal.jpql.util.Filter
accept

 

Field Detail

filter1

protected final Filter<T> filter1
The first Filter used to accept the value.

filter2

protected final Filter<T> filter2
The second Filter used to accept the value.

serialVersionUID

private static final long serialVersionUID
The version number of this class which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization.
See Also:
Constant Field Values

Constructor Detail

CompoundFilter

protected CompoundFilter(Filter<T> filter1,
                         Filter<T> filter2)
Creates a new CompoundFilter that will "accept" any object that is accept by both of the specified wrapped filters.
Parameters:
filter1 - The first Filter used to accept the value
filter2 - The second Filter used to accept the value

Method Detail

checkFilter1

private void checkFilter1(Filter<T> filter)

checkFilter2

private void checkFilter2(Filter<T> filter)

clone

public CompoundFilter<T> clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

getFilter1

public Filter<T> getFilter1()
Returns the left Filter of this compound filter.
Returns:
The first Filter

getFilter2

public Filter<T> getFilter2()
Returns the second Filter of this compound filter.
Returns:
The second Filter

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

operatorString

protected abstract java.lang.String operatorString()
Returns a string representation of the filter's operator.
Returns:
The string value of the operator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.