org.drools.rule
Class Query

java.lang.Object
  extended by org.drools.rule.Rule
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.drools.definition.KnowledgeDefinition
org.drools.definition.KnowledgeDefinition.KnowledgeType
 
Field Summary
 
Fields inherited from class org.drools.rule.Rule
activationListener
 
Constructor Summary
Query()
           
Query(String name)
           
 
Method Summary
 org.drools.definition.KnowledgeDefinition.KnowledgeType getKnowledgeType()
           
 Declaration[] getParameters()
           
 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.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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.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.