com.caucho.jms.selector
Class Selector

java.lang.Object
  extended by com.caucho.jms.selector.Selector
All Implemented Interfaces:
QueueEntrySelector, java.io.Serializable
Direct Known Subclasses:
BetweenSelector, BooleanBinarySelector, BooleanLiteralSelector, IdentifierSelector, InSelector, LikeSelector, LiteralSelector, NumericBinarySelector, OrSelector, SpecialIdentifierSelector, UnarySelector

public abstract class Selector
extends java.lang.Object
implements QueueEntrySelector

The base selector.

See Also:
Serialized Form

Field Summary
protected static java.util.logging.Logger log
           
protected static java.lang.Object NULL
           
 
Constructor Summary
Selector()
           
 
Method Summary
 boolean isMatch(Message message)
           
 boolean isMatch(java.lang.Object entry)
           
protected static java.lang.Boolean toBoolean(boolean value)
           
protected  double toDouble(java.lang.Object obj)
           
protected  long toLong(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log

NULL

protected static final java.lang.Object NULL
Constructor Detail

Selector

public Selector()
Method Detail

isMatch

public boolean isMatch(Message message)
                throws JMSException
Throws:
JMSException

isMatch

public boolean isMatch(java.lang.Object entry)
Specified by:
isMatch in interface QueueEntrySelector

toBoolean

protected static java.lang.Boolean toBoolean(boolean value)

toLong

protected long toLong(java.lang.Object obj)
               throws JMSException
Throws:
JMSException

toDouble

protected double toDouble(java.lang.Object obj)
                   throws JMSException
Throws:
JMSException