Classes | Public Member Functions

com.cosylab.acs.jms.ACSJMSMessageSelector Class Reference

List of all members.

Classes

class  ACSJMSValueProvider

Public Member Functions

 ACSJMSMessageSelector (String sqlSelectorString) throws InvalidSelectorException
String getSelectorString ()
void setSelectorString (String newSQLSelString) throws InvalidSelectorException
boolean match (ACSJMSMessage message)

Detailed Description

This object is a message selector. It owns an SQL92 string describing an SQL statement and checkes if a message matches with that statement. To enhance the response time of the process, it uses ValueProvider method of selector.

See also:
JMS specifications for further details
Author:
acaproni

Constructor & Destructor Documentation

com.cosylab.acs.jms.ACSJMSMessageSelector.ACSJMSMessageSelector ( String  sqlSelectorString  )  throws InvalidSelectorException

The constructor

Parameters:
sqlSelectorString The SQL selector string (it can be null or empty)
Exceptions:
InvalidSelectorException 
See also:
com.codestreet.selector.parser.InvalidSelectorException

References com.cosylab.acs.jms.ACSJMSMessageSelector.setSelectorString().


Member Function Documentation

String com.cosylab.acs.jms.ACSJMSMessageSelector.getSelectorString (  ) 
Returns:
The (eventually null or empty) SQL selector string

Referenced by com.cosylab.acs.jms.ACSJMSConsumer.getMessageSelector().

boolean com.cosylab.acs.jms.ACSJMSMessageSelector.match ( ACSJMSMessage  message  ) 

Check if the message matches with the SQL selector string. The test passes also if the string is empty or null.

Parameters:
message The message to check
Returns:
true if the message matches with the string false otherwise

Referenced by com.cosylab.acs.jms.ACSJMSConsumer.receive().

void com.cosylab.acs.jms.ACSJMSMessageSelector.setSelectorString ( String  newSQLSelString  )  throws InvalidSelectorException

Set the new SQL selector string and create the instance of selector. selector is set to null if the string is null or empty.

Parameters:
newSQLSelString The SQL92 selector string
Exceptions:
InvalidSelectorException 
See also:
com.codestreet.selector.parser.InvalidSelectorException

Referenced by com.cosylab.acs.jms.ACSJMSMessageSelector.ACSJMSMessageSelector(), and com.cosylab.acs.jms.ACSJMSConsumer.setMessageSelector().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties