Class QueryImpl
java.lang.Object
org.drools.base.definitions.rule.impl.RuleImpl
org.drools.base.definitions.rule.impl.QueryImpl
- All Implemented Interfaces:
Externalizable,Serializable,Wireable,Dialectable,KieDefinition,Query,Rule,InternalRule
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.kie.api.definition.KieDefinition
KieDefinition.KnowledgeTypeNested classes/interfaces inherited from interface org.drools.base.rule.accessor.Wireable
Wireable.Immutable -
Field Summary
Fields inherited from class org.drools.base.definitions.rule.impl.RuleImpl
activationListener, DEFAULT_CONSEQUENCE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
Class<?>getAbductionClass(Function<Class<T>, T> annotationReader) Class<? extends Annotation>booleanbooleanisQuery()booleanbooleanisValid()Override this as Queries will NEVER have a consequence, and it should not be taken into account when deciding if it is valid.booleanprocessAbduction(Match resultLeftTuple, DroolsQuery dquery, Object[] objects, ValueResolver valueResolver) voidvoidsetParameters(Declaration[] parameters) voidsetReturnType(ObjectType objectType, String[] params, String[] args, Declaration[] declarations) voidMethods inherited from class org.drools.base.definitions.rule.impl.RuleImpl
addChild, addMetaAttribute, addNamedConsequence, addPattern, addUsedQuery, collectDependingQueries, equals, findEnabledDeclarations, findSalienceDeclarations, getActivationGroup, getActivationListener, getAgendaGroup, getAutoFocus, getCalendars, getChildren, getConsequence, getConsequenceMetaData, getDateEffective, getDateExpires, getDeclaration, getDeclarations, getDependingQueries, getDialect, getEnabled, getFullyQualifiedName, getId, getLhs, getLoadOrder, getMetaData, getMetaData, getName, getNamedConsequence, getNamespace, getPackage, getPackageName, getParent, getRequiredDeclarationsForConsequence, getResource, getRuleFlowGroup, getRuleUnitClassName, getSalience, getSalienceValue, getTimer, getTransformedLhs, hasCalendars, hasChildren, hashCode, hasLogicalDependency, hasNamedConsequences, isAllMatches, isDataDriven, isEager, isEffective, isEnabled, isLockOnActive, isMainAgendaGroup, isNoLoop, isSalienceDynamic, isSemanticallyValid, removeChild, setActivationGroup, setActivationListener, setAgendaGroup, setAllMatches, setAutoFocus, setCalendars, setConsequence, setDataDriven, setDateEffective, setDateExpires, setDialect, setEager, setEnabled, setHasLogicalDependency, setLhs, setLoadOrder, setLockOnActive, setNoLoop, setPackage, setParent, setRequiredDeclarationsForConsequence, setResource, setRuleFlowGroup, setRuleUnitClass, setRuleUnitClassName, setSalience, setSemanticallyValid, setTimer, toRuleNameAndPathString, toString, wireMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kie.api.definition.KieDefinition
getId, getNamespaceMethods inherited from interface org.kie.api.definition.rule.Query
getMetaData, getName, getPackageName
-
Constructor Details
-
QueryImpl
public QueryImpl() -
QueryImpl
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classRuleImpl- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classRuleImpl- Throws:
IOExceptionClassNotFoundException
-
isValid
public boolean isValid()Override this as Queries will NEVER have a consequence, and it should not be taken into account when deciding if it is valid.- Specified by:
isValidin interfaceInternalRule- Overrides:
isValidin classRuleImpl- Returns:
trueif this rule is valid, elsefalse.
-
setParameters
-
getParameters
-
getKnowledgeType
- Specified by:
getKnowledgeTypein interfaceKieDefinition- Overrides:
getKnowledgeTypein classRuleImpl
-
isQuery
public boolean isQuery() -
isAbductive
public boolean isAbductive() -
processAbduction
public boolean processAbduction(Match resultLeftTuple, DroolsQuery dquery, Object[] objects, ValueResolver valueResolver) -
isReturnBound
public boolean isReturnBound() -
setReturnType
public void setReturnType(ObjectType objectType, String[] params, String[] args, Declaration[] declarations) throws NoSuchMethodException - Throws:
NoSuchMethodException
-
getAbductiveAnnotationClass
-
getAbductionClass
-