be.SIRAPRISE.client
Class DmlSingleAssignmentCommand

java.lang.Object
  extended by be.SIRAPRISE.client.DmlCommand
      extended by be.SIRAPRISE.client.DmlAssignmentCommand
          extended by be.SIRAPRISE.client.DmlSingleAssignmentCommand
Direct Known Subclasses:
DmlAddCommand, DmlAssertCommand, DmlDeleteCommand, DmlUnassertCommand, DmlUpdateCommand

public abstract class DmlSingleAssignmentCommand
extends DmlAssignmentCommand

Author:
Erwin

Constructor Summary
DmlSingleAssignmentCommand(java.lang.String relvarName, java.lang.Object o)
          Creates the command object.
 
Method Summary
 java.lang.String getRelationText()
          Gets the relation text denoting the singleton relation holding the tuple holding the values drawn from object o for the named relvar
 java.lang.String getRelvarName()
          Gets The name of the relvar to which the update is targeted
 
Methods inherited from class be.SIRAPRISE.client.DmlAssignmentCommand
getServerAssignmentCommand
 
Methods inherited from class be.SIRAPRISE.client.DmlCommand
getCommand, getServerCommand
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DmlSingleAssignmentCommand

public DmlSingleAssignmentCommand(java.lang.String relvarName,
                                  java.lang.Object o)
Creates the command object. It is required that for each attribute in the heading of the named database relvar, there must be a corresponding getter method with the following characteristics : Other methods may exist besides these required getter methods. The getter methods in question need not be declared in the object's class itself, they may also be inherited from some superclass of the object's class.

Parameters:
relvarName - The name of the relvar in which a tuple for the object is to be added
o - The object for which an update operation (add/assert/delete/unassert/update) is to be performed in the named relvar
Throws:
java.lang.IllegalArgumentException - If relvarName or o are null, or if relvarName is the zero-length string.
Method Detail

getRelationText

public final java.lang.String getRelationText()
Gets the relation text denoting the singleton relation holding the tuple holding the values drawn from object o for the named relvar

Returns:
the relation text denoting the singleton relation holding the tuple holding the values drawn from object o for the named relvar

getRelvarName

public final java.lang.String getRelvarName()
Gets The name of the relvar to which the update is targeted

Returns:
The name of the relvar to which the update is targeted