Drools :: Core 6.0.0.Beta5

org.drools.core.rule
Class Query

java.lang.Object
  extended by org.drools.core.rule.Rule
      extended by org.drools.core.rule.Query
All Implemented Interfaces:
Externalizable, Serializable, Dialectable, Wireable, org.kie.api.definition.KieDefinition, org.kie.api.definition.rule.Query, org.kie.api.definition.rule.Rule

public class Query
extends Rule
implements org.kie.api.definition.rule.Query

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.kie.api.definition.KieDefinition
org.kie.api.definition.KieDefinition.KnowledgeType
 
Field Summary
 
Fields inherited from class org.drools.core.rule.Rule
activationListener, DEFAULT_CONSEQUENCE_NAME
 
Constructor Summary
Query()
           
Query(String name)
           
 
Method Summary
 org.kie.api.definition.KieDefinition.KnowledgeType getKnowledgeType()
           
 Declaration[] getParameters()
           
 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.rule.Rule
addMetaAttribute, addNamedConsequence, addPattern, equals, getActivationGroup, getActivationListener, getAgendaGroup, getAutoFocus, getCalendars, getConsequence, getConsequenceMetaData, getDateEffective, getDateExpires, getDeclaration, getDeclarations, getDialect, getEnabled, getId, getLhs, getLoadOrder, getMetaAttribute, getMetaAttributes, getMetaData, getMethodBytecode, getName, getNamedConsequence, getNamedConsequences, getNamespace, getPackage, getPackageName, getParent, getRequiredDeclarationsForConsequence, getResource, getRuleFlowGroup, getSalience, getSpecifity, getTimer, getTransformedLhs, hashCode, hasLogicalDependency, hasNamedConsequences, isEager, isEffective, isEnabled, isLockOnActive, isNoLoop, isSemanticallyValid, listMetaAttributes, setActivationGroup, setActivationListener, setAgendaGroup, setAutoFocus, setCalendars, setConsequence, setDateEffective, setDateExpires, setDialect, setEager, setEnabled, setHasLogicalDependency, setLhs, setLoadOrder, setLockOnActive, setNoLoop, setPackage, setParent, setRequiredDeclarationsForConsequence, setResource, setRuleFlowGroup, setSalience, setSemanticallyValid, setTimer, toString, wire
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kie.api.definition.rule.Query
getMetaData, getName, getPackageName
 
Methods inherited from interface org.kie.api.definition.KieDefinition
getId, getNamespace
 

Constructor Detail

Query

public Query()

Query

public Query(String name)
Method Detail

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.kie.api.definition.KieDefinition.KnowledgeType getKnowledgeType()
Specified by:
getKnowledgeType in interface org.kie.api.definition.KieDefinition
Overrides:
getKnowledgeType in class Rule

isQuery

public boolean isQuery()
Overrides:
isQuery in class Rule

Drools :: Core 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.