com.softwareag.centrasite.appl.framework.persistence.search.impl
Class PredicateFactory

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.search.impl.PredicateFactory

public class PredicateFactory
extends java.lang.Object

The predicate factory supports methods for creating different type of predicates.


Nested Class Summary
static class PredicateFactory.IntToStringPredicateHandler
          Handler for handling Predicates for properties that are stored as String in the database but returned as int
static class PredicateFactory.KeyPredicateHandler
          Handler for handling Key Predicates
static class PredicateFactory.NestedPredicateHandler
          Handler for handling Nested Predicates
static class PredicateFactory.RegistryObjectPropertySlotPredicateHandler
          Handler for handling Registry Object Property Slot Predicates
static class PredicateFactory.SlotPredicateHandler
          Handler for handling Slot Predicates
static class PredicateFactory.SupportTypePredicateHandler
          Handler for handling Support Predicates
 
Method Summary
 void addPredicateHandler(PredicateHandler handler)
           
 Predicate createPredicate(Property property, Operation operation, java.lang.Object value)
          Creating specific predicate depending on the handler suitable for handling the given properties
static PredicateFactory getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PredicateFactory getInstance()

addPredicateHandler

public void addPredicateHandler(PredicateHandler handler)

createPredicate

public Predicate createPredicate(Property property,
                                 Operation operation,
                                 java.lang.Object value)
Creating specific predicate depending on the handler suitable for handling the given properties

Parameters:
property -
operation -
value -
Returns:
Predicate