be.SIRAPRISE.client
Class DmlAddCommand
java.lang.Object
be.SIRAPRISE.client.DmlCommand
be.SIRAPRISE.client.DmlAssignmentCommand
be.SIRAPRISE.client.DmlSingleAssignmentCommand
be.SIRAPRISE.client.DmlAddCommand
public final class DmlAddCommand
- extends DmlSingleAssignmentCommand
A DmlAddCommand is the command that will make sure that a tuple will be added to the named relvar (in the target database to which this command will be sent) for the object passed to the constructor. The command will fail if that tuple is already present in that relvar.
- Author:
- Erwin Smout
Field Summary |
static byte |
ASSIGNMENTTYPE
The byte code identifying the 'ADD' assignment type within the messages system |
Constructor Summary |
DmlAddCommand(java.lang.String relvarName,
DBObject dbObject)
Creates the command object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASSIGNMENTTYPE
public static final byte ASSIGNMENTTYPE
- The byte code identifying the 'ADD' assignment type within the messages system
- See Also:
- Constant Field Values
DmlAddCommand
public DmlAddCommand(java.lang.String relvarName,
DBObject dbObject)
- Creates the command object. See the DmlAssignmentCommand doc for an explanation of how the relvar's heading and the object's class must correspond to one another.
- Parameters:
relvarName
- The name of the relvar in which a tuple for the object is to be addeddbObject
- The object for which a tuple is to be added in the named relvar
getCommand
public java.lang.String getCommand()
- Description copied from class:
DmlCommand
- Gets the command text
- Specified by:
getCommand
in class DmlCommand
- Returns:
- the command text
getServerCommand
public ServerCommand getServerCommand()
- Description copied from class:
DmlCommand
- Gets the ServerCommand object representing this dml command
- Specified by:
getServerCommand
in class DmlCommand
- Returns:
- the ServerCommand object representing this dml command
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object