Package org.drools.core.rule
Class QueryImpl
- java.lang.Object
-
- org.drools.core.definitions.rule.impl.RuleImpl
-
- org.drools.core.rule.QueryImpl
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Dialectable
,Wireable
,org.kie.api.definition.KieDefinition
,org.kie.api.definition.rule.Query
,org.kie.api.definition.rule.Rule
,org.kie.internal.definition.rule.InternalRule
- Direct Known Subclasses:
AbductiveQuery
public class QueryImpl extends RuleImpl implements org.kie.api.definition.rule.Query
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.drools.core.definitions.rule.impl.RuleImpl
RuleImpl.SafeEnabled, RuleImpl.SafeSalience
-
Nested classes/interfaces inherited from interface org.kie.api.definition.KieDefinition
org.kie.api.definition.KieDefinition.KnowledgeType
-
Nested classes/interfaces inherited from interface org.drools.core.spi.Wireable
Wireable.Immutable
-
-
Field Summary
-
Fields inherited from class org.drools.core.definitions.rule.impl.RuleImpl
activationListener, DEFAULT_CONSEQUENCE_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.api.definition.KieDefinition.KnowledgeType
getKnowledgeType()
Declaration[]
getParameters()
boolean
isAbductive()
boolean
isQuery()
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.void
readExternal(ObjectInput in)
void
setParameters(Declaration[] parameters)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.drools.core.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, hasRuleUnit, 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, wire
-
-
-
-
Constructor Detail
-
QueryImpl
public QueryImpl()
-
QueryImpl
public QueryImpl(String name)
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classRuleImpl
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classRuleImpl
- Throws:
IOException
ClassNotFoundException
-
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.
-
setParameters
public void setParameters(Declaration[] parameters)
-
getParameters
public Declaration[] getParameters()
-
getKnowledgeType
public org.kie.api.definition.KieDefinition.KnowledgeType getKnowledgeType()
- Specified by:
getKnowledgeType
in interfaceorg.kie.api.definition.KieDefinition
- Overrides:
getKnowledgeType
in classRuleImpl
-
isAbductive
public boolean isAbductive()
-
-