org.apache.openjpa.persistence.meta
Class AbstractManagedType.AttributeTypeFilter<X,Y>

java.lang.Object
  extended by org.apache.openjpa.persistence.meta.AbstractManagedType.AttributeTypeFilter<X,Y>
All Implemented Interfaces:
AbstractManagedType.Filter<Attribute<? super X,?>>
Enclosing class:
AbstractManagedType<X>

public static final class AbstractManagedType.AttributeTypeFilter<X,Y>
extends Object
implements AbstractManagedType.Filter<Attribute<? super X,?>>

Selects if the attribute type matches the given Java class. null matches any type.


Constructor Summary
AbstractManagedType.AttributeTypeFilter(Class<Y> type)
           
AbstractManagedType.AttributeTypeFilter(Class<Y> type, boolean inverted)
           
 
Method Summary
 AbstractManagedType.AttributeTypeFilter<X,Y> inverse()
           
 boolean selects(Attribute<? super X,?> attr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractManagedType.AttributeTypeFilter

public AbstractManagedType.AttributeTypeFilter(Class<Y> type)

AbstractManagedType.AttributeTypeFilter

public AbstractManagedType.AttributeTypeFilter(Class<Y> type,
                                               boolean inverted)
Method Detail

selects

public boolean selects(Attribute<? super X,?> attr)
Specified by:
selects in interface AbstractManagedType.Filter<Attribute<? super X,?>>

inverse

public AbstractManagedType.AttributeTypeFilter<X,Y> inverse()
Specified by:
inverse in interface AbstractManagedType.Filter<Attribute<? super X,?>>


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.