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

Show UML class diagram
java.lang.Object
  extended by it.amattioli.dominate.specifications.AbstractSpecification<T>
All Implemented Interfaces:
Specification<T>, PropertyChangeEmitter
Direct Known Subclasses:
BeanShellSpecification, ChainedSpecification, CompositeSpecification, FalseSpecification, NegatedSpecification, TrueSpecification

public abstract class AbstractSpecification<T extends Entity<?>>
extends Object
implements Specification<T>


Constructor Summary
AbstractSpecification()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void firePropertyChange(String propertyName, Object oldValue, Object newValue)
           
protected  boolean isSatisfiedIfNotSet()
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setSatisfiedIfNotSet(boolean value)
          For a parametric specification sets the value to be returned by Specification.isSatisfiedBy(Entity) when the parameter(s) has not been set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.amattioli.dominate.Specification
assembleQuery, isSatisfiedBy, supportsAssembler, wasSet
 

Constructor Detail

AbstractSpecification

public AbstractSpecification()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface PropertyChangeEmitter

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface PropertyChangeEmitter

firePropertyChange

public void firePropertyChange(String propertyName,
                               Object oldValue,
                               Object newValue)

setSatisfiedIfNotSet

public void setSatisfiedIfNotSet(boolean value)
Description copied from interface: Specification
For a parametric specification sets the value to be returned by Specification.isSatisfiedBy(Entity) when the parameter(s) has not been set.

Specified by:
setSatisfiedIfNotSet in interface Specification<T extends Entity<?>>

isSatisfiedIfNotSet

protected boolean isSatisfiedIfNotSet()


Copyright © 2011. All Rights Reserved.