it.amattioli.dominate.specifications
Class NegatedSpecification<T extends Entity<?>>

Show UML class diagram
java.lang.Object
  extended by it.amattioli.dominate.specifications.AbstractSpecification<T>
      extended by it.amattioli.dominate.specifications.NegatedSpecification<T>
All Implemented Interfaces:
Specification<T>, PropertyChangeEmitter

public class NegatedSpecification<T extends Entity<?>>
extends AbstractSpecification<T>


Constructor Summary
NegatedSpecification()
           
NegatedSpecification(Specification<T> spec)
           
 
Method Summary
 void assembleQuery(Assembler assembler)
          Assemble a query object that can be used with a repository to filter the objects returned by Repository.list(Specification)
 boolean isSatisfiedBy(T entity)
          Check if an object satisfies this specification.
 void setSpecification(Specification<T> spec)
           
 boolean supportsAssembler(Assembler assembler)
          Check if the passed query assembler can be passed to the Specification.assembleQuery(Assembler) of thie specification
 boolean wasSet()
          If this specification is parametric check if the parameter(s) has been set.
 
Methods inherited from class it.amattioli.dominate.specifications.AbstractSpecification
addPropertyChangeListener, firePropertyChange, isSatisfiedIfNotSet, removePropertyChangeListener, setSatisfiedIfNotSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegatedSpecification

public NegatedSpecification()

NegatedSpecification

public NegatedSpecification(Specification<T> spec)
Method Detail

setSpecification

public void setSpecification(Specification<T> spec)

supportsAssembler

public boolean supportsAssembler(Assembler assembler)
Description copied from interface: Specification
Check if the passed query assembler can be passed to the Specification.assembleQuery(Assembler) of thie specification

Returns:

wasSet

public boolean wasSet()
Description copied from interface: Specification
If this specification is parametric check if the parameter(s) has been set. If this specification is not parametric always returns true.

Returns:

assembleQuery

public void assembleQuery(Assembler assembler)
Description copied from interface: Specification
Assemble a query object that can be used with a repository to filter the objects returned by Repository.list(Specification)


isSatisfiedBy

public boolean isSatisfiedBy(T entity)
Description copied from interface: Specification
Check if an object satisfies this specification.

Returns:


Copyright © 2011. All Rights Reserved.