net.sourceforge.domian.repository
Class PartitionRepositoryInvocationHandler.PartitionAwareSpecification<V extends T>

java.lang.Object
  extended by net.sourceforge.domian.repository.PartitionRepositoryInvocationHandler.PartitionAwareSpecification<V>
All Implemented Interfaces:
Specification<V>
Enclosing class:
PartitionRepositoryInvocationHandler<T extends Entity>

 class PartitionRepositoryInvocationHandler.PartitionAwareSpecification<V extends T>
extends java.lang.Object
implements Specification<V>


Field Summary
(package private)  Specification<V> customSpecification
           
(package private)  Specification<V> partitionAwareSpecification
           
private  boolean specificationIsDisjoint
           
 
Constructor Summary
PartitionRepositoryInvocationHandler.PartitionAwareSpecification(Specification<V> customSpecification, Specification<T> partitionSpecification)
           
 
Method Summary
 CompositeSpecification<V> and(Specification<? super V> otherSpecification)
           
 boolean equals(java.lang.Object otherObject)
           
 java.lang.Class<V> getType()
           
 int hashCode()
           
 java.lang.Boolean isDisjointWith(Specification otherSpecification)
           
 java.lang.Boolean isGeneralizationOf(Specification<? extends V> specification)
           
private  boolean isOutsidePartitionBoundaries()
           
 java.lang.Boolean isSatisfiedBy(V candidate)
           
 java.lang.Boolean isSpecialCaseOf(Specification<? super V> specification)
           
private  boolean isWithinPartitionBoundaries()
           
 CompositeSpecification<V> or(Specification<? super V> otherSpecification)
           
<F> CompositeSpecification<V>
where(java.lang.String accessibleObjectName, Specification<F> accessibleObjectSpecification)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

specificationIsDisjoint

private boolean specificationIsDisjoint

customSpecification

Specification<V extends T> customSpecification

partitionAwareSpecification

Specification<V extends T> partitionAwareSpecification
Constructor Detail

PartitionRepositoryInvocationHandler.PartitionAwareSpecification

PartitionRepositoryInvocationHandler.PartitionAwareSpecification(Specification<V> customSpecification,
                                                                 Specification<T> partitionSpecification)
Method Detail

getType

public java.lang.Class<V> getType()
Specified by:
getType in interface Specification<V extends T>

isSatisfiedBy

public java.lang.Boolean isSatisfiedBy(V candidate)
Specified by:
isSatisfiedBy in interface Specification<V extends T>

isGeneralizationOf

public java.lang.Boolean isGeneralizationOf(Specification<? extends V> specification)
Specified by:
isGeneralizationOf in interface Specification<V extends T>

isSpecialCaseOf

public java.lang.Boolean isSpecialCaseOf(Specification<? super V> specification)
Specified by:
isSpecialCaseOf in interface Specification<V extends T>

and

public CompositeSpecification<V> and(Specification<? super V> otherSpecification)
Specified by:
and in interface Specification<V extends T>

or

public CompositeSpecification<V> or(Specification<? super V> otherSpecification)
Specified by:
or in interface Specification<V extends T>

where

public <F> CompositeSpecification<V> where(java.lang.String accessibleObjectName,
                                           Specification<F> accessibleObjectSpecification)
Specified by:
where in interface Specification<V extends T>

isDisjointWith

public java.lang.Boolean isDisjointWith(Specification otherSpecification)
Specified by:
isDisjointWith in interface Specification<V extends T>

isWithinPartitionBoundaries

private boolean isWithinPartitionBoundaries()

isOutsidePartitionBoundaries

private boolean isOutsidePartitionBoundaries()

hashCode

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

equals

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


Copyright © 2006-2010. All Rights Reserved.