it.amattioli.dominate.specifications
Class LongSpecification<T extends 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.dominate.specifications.LongSpecification<T>
All Implemented Interfaces:
Specification<T>, PropertyChangeEmitter
Direct Known Subclasses:
CriteriaLongSpecification, DefaultLongSpecification, HqlLongSpecification

public abstract class LongSpecification<T extends Entity<?>>
extends ChainedSpecification<T>


Constructor Summary
LongSpecification()
           
LongSpecification(String propertyName)
           
 
Method Summary
 TotalOrderComparisonType getComparisonType()
           
protected  String getPropertyName()
           
 Long getValue()
           
 boolean isSatisfiedBy(T entity)
          Check if an object satisfies this specification.
static
<T extends Entity<?>>
LongSpecification<T>
newInstance(String propertyName)
           
 void setComparisonType(TotalOrderComparisonType comparisonType)
           
protected  void setPropertyName(String propertyName)
           
 void setValue(Long value)
           
 boolean wasSet()
          If this specification is parametric check if the parameter(s) has been set.
 
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

LongSpecification

public LongSpecification()

LongSpecification

public LongSpecification(String propertyName)
Method Detail

newInstance

public static <T extends Entity<?>> LongSpecification<T> newInstance(String propertyName)

getPropertyName

protected String getPropertyName()

setPropertyName

protected void setPropertyName(String propertyName)

setValue

public void setValue(Long value)

getValue

public Long getValue()

getComparisonType

public TotalOrderComparisonType getComparisonType()

setComparisonType

public void setComparisonType(TotalOrderComparisonType comparisonType)

isSatisfiedBy

public boolean isSatisfiedBy(T entity)
Description copied from interface: Specification
Check if an object satisfies this 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:


Copyright © 2011. All Rights Reserved.