it.amattioli.dominate.specifications
Class StringSpecification<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.StringSpecification<T>
All Implemented Interfaces:
Specification<T>, PropertyChangeEmitter
Direct Known Subclasses:
CriteriaStringSpecification, DefaultStringSpecification, HqlStringSpecification

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


Constructor Summary
StringSpecification()
           
StringSpecification(String propertyName)
           
StringSpecification(StringSpecification<T> chained)
           
 
Method Summary
 ComparisonType getComparisonType()
           
 Collection<ComparisonType> getComparisonTypeValues()
           
protected  String getPropertyName()
           
 String getValue()
           
 boolean isSatisfiedBy(T entity)
          Check if an object satisfies this specification.
static
<T extends Entity<?>>
StringSpecification<T>
newInstance(String propertyName)
           
 void setComparisonType(ComparisonType filterType)
           
 void setComparisonType(String filterType)
           
 void setValue(String 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

StringSpecification

public StringSpecification()

StringSpecification

public StringSpecification(String propertyName)

StringSpecification

public StringSpecification(StringSpecification<T> chained)
Method Detail

newInstance

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

getPropertyName

protected String getPropertyName()

setValue

public void setValue(String value)

getValue

public String getValue()

getComparisonType

public ComparisonType getComparisonType()

setComparisonType

public void setComparisonType(ComparisonType filterType)

setComparisonType

public void setComparisonType(String filterType)

getComparisonTypeValues

public Collection<ComparisonType> getComparisonTypeValues()

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.