Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::acs::jms::ACSJMSMessageSelector Class Reference

List of all members.

Public Member Functions

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

Private Attributes

String selectorString
ISelector selector = null

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 [inline]
 

The constructor

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


Member Function Documentation

String com::cosylab::acs::jms::ACSJMSMessageSelector::getSelectorString  )  [inline]
 

Returns:
The (eventually null or empty) SQL selector string

boolean com::cosylab::acs::jms::ACSJMSMessageSelector::match ACSJMSMessage  message  )  [inline]
 

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

void com::cosylab::acs::jms::ACSJMSMessageSelector::setSelectorString String  newSQLSelString  )  throws InvalidSelectorException [inline]
 

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


Member Data Documentation

ISelector com::cosylab::acs::jms::ACSJMSMessageSelector::selector = null [private]
 

The selector object

See also:
com.codestreet.selector.ISelector

String com::cosylab::acs::jms::ACSJMSMessageSelector::selectorString [private]
 

The message selector string It is an SQL92 string as described in JMS specification All the messages that do not match with this statement are discarded, the others are sent to the listeners If the selector is null or empty it matches to true with all messages.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:10:07 2009 for ACS Java API by doxygen 1.3.8