it.amattioli.encapsulate.money.specifications
Class MoneySpecification<T extends it.amattioli.dominate.Entity<?>>

Show UML class diagram
java.lang.Object
  extended by it.amattioli.dominate.specifications.AbstractSpecification<T>
      extended by it.amattioli.dominate.specifications.ChainedSpecification<T>
          extended by it.amattioli.encapsulate.money.specifications.MoneySpecification<T>
All Implemented Interfaces:
it.amattioli.dominate.Specification<T>, it.amattioli.dominate.util.PropertyChangeEmitter
Direct Known Subclasses:
CriteriaMoneySpecification, DefaultMoneySpecification, HqlMoneySpecification

public abstract class MoneySpecification<T extends it.amattioli.dominate.Entity<?>>
extends it.amattioli.dominate.specifications.ChainedSpecification<T>


Constructor Summary
MoneySpecification()
           
MoneySpecification(String propertyName)
           
 
Method Summary
protected  String getPropertyName()
           
 Range<Money> getValue()
           
 boolean isSatisfiedBy(T entity)
           
static
<T extends it.amattioli.dominate.Entity<?>>
MoneySpecification<T>
newInstance(String propertyName)
           
protected  void setPropertyName(String propertyName)
           
 void setValue(Range<Money> value)
           
 boolean wasSet()
           
 
Methods inherited from class it.amattioli.dominate.specifications.ChainedSpecification
assembleQuery, chainAssembler, createChain, getNextInChain, itselfAssembleQuery, itselfSupportsAssembler, setNextInChain, supportsAssembler
 
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

MoneySpecification

public MoneySpecification()

MoneySpecification

public MoneySpecification(String propertyName)
Method Detail

newInstance

public static <T extends it.amattioli.dominate.Entity<?>> MoneySpecification<T> newInstance(String propertyName)

getPropertyName

protected String getPropertyName()

setPropertyName

protected void setPropertyName(String propertyName)

setValue

public void setValue(Range<Money> value)

getValue

public Range<Money> getValue()

isSatisfiedBy

public boolean isSatisfiedBy(T entity)

wasSet

public boolean wasSet()


Copyright © 2011. All Rights Reserved.