be.SIRAPRISE.messages
Class ExecuteAssignmentMessageTypeV1_0

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ServerInputMessageType
          extended by be.SIRAPRISE.messages.ExecuteAssignmentMessageType
              extended by be.SIRAPRISE.messages.ExecuteAssignmentMessageTypeV1_0
All Implemented Interfaces:
ExecuteDMLMessageTypesV14

public final class ExecuteAssignmentMessageTypeV1_0
extends ExecuteAssignmentMessageType

ExecuteAssignmentMessageTypeV1_0 is V1_0 of the ExecuteAssignmentMessageType. It implements the new 1.4 way of sending bit-encoded commands to the server, rather than strings.

This message type has the following fields :

Zone Format Length Description
COUNT INT 4 The number of 'individual assignments' being carried out.
ASSIGNMENTS ASSIGNMENT   The encoded form of the 'individual assignments' being carried out. Appears as many times as indicated by COUNT.

The layout for ASSIGNMENT is as follows :

Zone Format Length Description
TYPE INT 1 The type of 'individual assignments' being carried out. Following values are possible:
  • 1 : ADD
  • 2 : DELETE
  • 3 : UPDATE
  • 5 : ASSERT
  • 6 : UNASSERT
RELVAR STRING   The name of the database relvar that is the target of the 'individual assignment'.
RELATION LSTRING   The formula, in textual form, defining the relation value that will be inserted (ADD/ASSERT) or deleted (DELETE/UNASSERT/UPDATE) from the target relvar.
UPDATES LSTRING   Only present for the UPDATE assignment type. The formulae, in syntactical form as specified by the grammar, defining the computation of the replacing tuples.

Since:
SIRA_PRISE 1.4
Author:
Erwin Smout

Field Summary
 
Fields inherited from class be.SIRAPRISE.messages.ExecuteAssignmentMessageType
MESSAGETYPEID
 
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
 be.SIRAPRISE.messages.ExecuteAssignmentMessageV1_0 message(ServerSingleAssignmentCommand[] cmds)
          Factory method for producing a message of this type holding the given Assignment command
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 be.SIRAPRISE.messages.ExecuteAssignmentMessageV1_0 message(ServerSingleAssignmentCommand[] cmds)
Description copied from class: ExecuteAssignmentMessageType
Factory method for producing a message of this type holding the given Assignment command

Specified by:
message in class ExecuteAssignmentMessageType
Parameters:
cmds - The SIRA_PRISE Assignment commands to be executed as an atomic multiple assignment on the server
Returns:
ExecuteAssignmentMessage