org.drools.rule
Class Query
java.lang.Object
org.drools.rule.Rule
org.drools.rule.Query
- All Implemented Interfaces:
- Externalizable, Serializable, org.drools.definition.KnowledgeDefinition, org.drools.definition.rule.Query, org.drools.definition.rule.Rule, Dialectable, Wireable
public class Query
- extends Rule
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface org.drools.definition.KnowledgeDefinition |
org.drools.definition.KnowledgeDefinition.KnowledgeType |
Methods inherited from class org.drools.rule.Rule |
addMetaAttribute, addPattern, equals, getActivationGroup, getActivationListener, getAgendaGroup, getAutoFocus, getCalendars, getConsequence, getDateEffective, getDateExpires, getDeclaration, getDeclarations, getDialect, getEnabled, getId, getLhs, getLoadOrder, getMetaAttribute, getMetaAttributes, getMetaData, getMethodBytecode, getName, getNamedConsequences, getNamespace, getPackage, getPackageName, getParent, getRequiredDeclarations, getResource, getRuleFlowGroup, getRunLevel, getSalience, getSpecifity, getTimer, getTransformedLhs, hashCode, hasLogicalDependency, isEffective, isEnabled, isLockOnActive, isNoLoop, isSemanticallyValid, listMetaAttributes, setActivationGroup, setActivationListener, setAgendaGroup, setAutoFocus, setCalendars, setConsequence, setDateEffective, setDateExpires, setDialect, setEnabled, setHasLogicalDependency, setLhs, setLoadOrder, setLockOnActive, setNoLoop, setPackage, setParent, setRequiredDeclarations, setResource, setRuleFlowGroup, setRunLevel, setSalience, setSemanticallyValid, setTimer, toString, wire |
Query
public Query()
Query
public Query(String name)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class Rule
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class Rule
- 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.
- Overrides:
isValid
in class Rule
- Returns:
true
if this rule is valid, else
false
.
setParameters
public void setParameters(Declaration[] parameters)
getParameters
public Declaration[] getParameters()
getKnowledgeType
public org.drools.definition.KnowledgeDefinition.KnowledgeType getKnowledgeType()
- Specified by:
getKnowledgeType
in interface org.drools.definition.KnowledgeDefinition
- Overrides:
getKnowledgeType
in class Rule
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.