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

Field Summary
 
Fields inherited from class org.drools.rule.Rule
activationListener
 
Constructor Summary
Query()
           
Query(String name)
           
 
Method Summary
 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, getLhs, getLoadOrder, getMetaAttribute, getMetaAttributes, getMetaData, getMethodBytecode, getName, getNamedConsequences, getPackage, getPackageName, getParent, getRequiredDeclarations, getResource, getRuleFlowGroup, 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, 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()


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.