Class PredicateFactory
- java.lang.Object
-
- net.ontopia.topicmaps.query.impl.rdbms.PredicateFactory
-
- All Implemented Interfaces:
PredicateFactoryIF
public class PredicateFactory extends Object implements PredicateFactoryIF
INTERNAL: The rdbms predicate factory implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected LocatorIF
base
protected Map
predicatesById
protected TopicMapIF
topicmap
-
Constructor Summary
Constructors Constructor Description PredicateFactory(TopicMapIF topicmap, LocatorIF base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleIF
createModule(String uri)
INTERNAL: Creates a module instance for the specified URI.PredicateIF
createPredicate(String name)
INTERNAL: Looks up a built-in predicate by its name.PredicateIF
createPredicate(TopicIF type, boolean assoc)
INTERNAL: Creates a dynamic predicate for the given topic; either an association predicate or an occurrence predicate, depending on the value of the assoc parameter.PredicateIF
createPredicate(ParsedRule rule)
INTERNAL: Creates a rule predicate for the parsed rule.boolean
isBuiltInPredicate(String name)
INTERNAL: Used to find out if the given predicate name is the name of a built-in predicate.
-
-
-
Field Detail
-
predicatesById
protected Map predicatesById
-
topicmap
protected TopicMapIF topicmap
-
base
protected LocatorIF base
-
-
Constructor Detail
-
PredicateFactory
public PredicateFactory(TopicMapIF topicmap, LocatorIF base)
-
-
Method Detail
-
createPredicate
public PredicateIF createPredicate(String name)
Description copied from interface:PredicateFactoryIF
INTERNAL: Looks up a built-in predicate by its name.- Specified by:
createPredicate
in interfacePredicateFactoryIF
-
createPredicate
public PredicateIF createPredicate(ParsedRule rule)
Description copied from interface:PredicateFactoryIF
INTERNAL: Creates a rule predicate for the parsed rule.- Specified by:
createPredicate
in interfacePredicateFactoryIF
-
createPredicate
public PredicateIF createPredicate(TopicIF type, boolean assoc)
Description copied from interface:PredicateFactoryIF
INTERNAL: Creates a dynamic predicate for the given topic; either an association predicate or an occurrence predicate, depending on the value of the assoc parameter.- Specified by:
createPredicate
in interfacePredicateFactoryIF
-
createModule
public ModuleIF createModule(String uri)
Description copied from interface:PredicateFactoryIF
INTERNAL: Creates a module instance for the specified URI. If the predicate factory does not recognize the URI null is returned.- Specified by:
createModule
in interfacePredicateFactoryIF
-
isBuiltInPredicate
public boolean isBuiltInPredicate(String name)
Description copied from interface:PredicateFactoryIF
INTERNAL: Used to find out if the given predicate name is the name of a built-in predicate. Needed for error checking, see bug #1082.- Specified by:
isBuiltInPredicate
in interfacePredicateFactoryIF
-
-