
Classes | |
| class | ACSJMSValueProvider |
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 |
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.
| com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSMessageSelector | ( | String | sqlSelectorString | ) | throws InvalidSelectorException [inline] |
The constructor
| sqlSelectorString | The SQL selector string (it can be null or empty) |
| InvalidSelectorException |
References setSelectorString().
| String com::cosylab::acs::jms::ACSJMSMessageSelector::getSelectorString | ( | ) | [inline] |
References selectorString.
Referenced by com::cosylab::acs::jms::ACSJMSConsumer::getMessageSelector().
| 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.
| message | The message to check |
References selector, and selectorString.
Referenced by com::cosylab::acs::jms::ACSJMSConsumer::receive().
| 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.
| newSQLSelString | The SQL92 selector string |
| InvalidSelectorException |
References selector, and selectorString.
Referenced by ACSJMSMessageSelector(), and com::cosylab::acs::jms::ACSJMSConsumer::setMessageSelector().
ISelector com::cosylab::acs::jms::ACSJMSMessageSelector::selector = null [private] |
The selector object
Referenced by match(), and setSelectorString().
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.
Referenced by getSelectorString(), match(), and setSelectorString().
1.6.2