be.SIRAPRISE.messages
Class ExecuteQueryMessageTypeV1_0
java.lang.Object
be.SIRAPRISE.messages.ServerMessageType
be.SIRAPRISE.messages.ServerInputMessageType
be.SIRAPRISE.messages.ExecuteQueryMessageType
be.SIRAPRISE.messages.ExecuteQueryMessageTypeV1_0
- All Implemented Interfaces:
- ExecuteDMLMessageTypesV14
public final class ExecuteQueryMessageTypeV1_0
- extends ExecuteQueryMessageType
ExecuteQueryMessageTypeV1_0 is V1_0 of the ExecuteQueryMessageType. It implements the new 1.4 way of sending bit-encoded commands, rather than strings.
This message type has the following fields :
Zone |
Format |
Length |
Description |
QUERY |
LSTRING |
|
The textual representation of the relational expression to be queried, as defined by the grammar. |
ORDERINGS |
INT |
4 |
The number of attributes that make up the ordering specification for the result. |
ATTRIBUTENAME |
STRING |
|
Appears as many times as indicated by ORDERINGS. |
- Since:
- SIRA_PRISE 1.4
- Author:
- Erwin Smout
Method Summary |
ServerMessage |
message(ServerCommand cmd)
Factory method for getting the Message to send to the server in order to get the command held in cmd executed |
ExecuteQueryMessage |
message(java.lang.String query,
java.util.List<java.lang.String> orderByAttributeNames)
Factory method for producing a message of this type holding the given Query command |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message
public ServerMessage message(ServerCommand cmd)
- Description copied from interface:
ExecuteDMLMessageTypesV14
- Factory method for getting the Message to send to the server in order to get the command held in cmd executed
- Parameters:
cmd
- A command to be executed
- Returns:
- the Message to send to the server in order to get the command held in cmd executed
message
public ExecuteQueryMessage message(java.lang.String query,
java.util.List<java.lang.String> orderByAttributeNames)
- Description copied from class:
ExecuteQueryMessageType
- Factory method for producing a message of this type holding the given Query command
- Specified by:
message
in class ExecuteQueryMessageType
- Parameters:
query
- The SIRA_PRISE Query command to be evaluated by/on the serverorderByAttributeNames
- The list of attribute names by which the result is to be ordered. Can be the empty array.
- Returns:
- ExecuteQueryMessage