be.SIRAPRISE.client
Class ServerUpdateCommand

java.lang.Object
  extended by be.SIRAPRISE.client.ServerCommand
      extended by be.SIRAPRISE.client.ServerAssignmentCommand
          extended by be.SIRAPRISE.client.ServerSingleAssignmentCommand
              extended by be.SIRAPRISE.client.ServerUpdateCommand

public final class ServerUpdateCommand
extends ServerSingleAssignmentCommand

A ServerUpdateCommand consists of three portions :

Author:
Erwin

Constructor Summary
ServerUpdateCommand(java.lang.String targetRelvarName, java.lang.String deleteRelationExpressionText, java.lang.String changes)
          Creates the ExecUpdateCommand
 
Method Summary
 java.lang.String getChanges()
          Gets The textual representation of the RA formula defining how to compute the replacing tuples.
 java.lang.String getCommandParametersText()
          Gets the full textual representation of the command's parameters
 java.lang.String getDeleteRelationExpressionText()
          Gets The textual representation of the RA formula defining the relation to be deleted from the target
 java.lang.String getFullCommandText()
          Gets the full textual representation of the command
 void writeAssignmentTypeSpecificToStream(java.io.DataOutputStream outputStream)
           
 
Methods inherited from class be.SIRAPRISE.client.ServerSingleAssignmentCommand
getTargetRelvarName, writeToStream
 
Methods inherited from class be.SIRAPRISE.client.ServerCommand
getCommandObjectFor, getCommandObjectFrom, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerUpdateCommand

public ServerUpdateCommand(java.lang.String targetRelvarName,
                           java.lang.String deleteRelationExpressionText,
                           java.lang.String changes)
Creates the ExecUpdateCommand

Parameters:
targetRelvarName - The target relvar Name
deleteRelationExpressionText - The textual representation of the RA formula defining the relation to be deleted from the target
changes - The textual representation of the RA formula defining how to compute the replacing tuples. May not be enclosed in '(' and ')'.
Method Detail

getChanges

public final java.lang.String getChanges()
Gets The textual representation of the RA formula defining how to compute the replacing tuples. Is not be enclosed in '(' and ')'.

Returns:
The textual representation of the RA formula defining how to compute the replacing tuples. Is not be enclosed in '(' and ')'.

getCommandParametersText

public java.lang.String getCommandParametersText()
Description copied from class: ServerCommand
Gets the full textual representation of the command's parameters

Specified by:
getCommandParametersText in class ServerCommand
Returns:
the full textual representation of the command's parameters

getDeleteRelationExpressionText

public final java.lang.String getDeleteRelationExpressionText()
Gets The textual representation of the RA formula defining the relation to be deleted from the target

Returns:
The textual representation of the RA formula defining the relation to be deleted from the target

getFullCommandText

public java.lang.String getFullCommandText()
Description copied from class: ServerCommand
Gets the full textual representation of the command

Specified by:
getFullCommandText in class ServerCommand
Returns:
the full textual representation of the command

writeAssignmentTypeSpecificToStream

public void writeAssignmentTypeSpecificToStream(java.io.DataOutputStream outputStream)
                                         throws java.io.IOException
Throws:
java.io.IOException