org.tentackle.db.rmi
Class DbObjectResult

java.lang.Object
  extended by org.tentackle.db.rmi.DbObjectResult
All Implemented Interfaces:
Serializable

public class DbObjectResult
extends Object
implements Serializable

Result used to return the possibly new objectid, changed serial and a result code for success or failure.

Author:
harald
See Also:
Serialized Form

Field Summary
 long id
          the object ID
 boolean result
          the result code: true or false
 long serial
          the serial number
 long tableSerial
          the table serial
 boolean uniqueViolation
          if failed: was it a unique violation?
 
Constructor Summary
DbObjectResult(long id, long serial, long tableSerial, boolean result, boolean uniqueViolation)
          Creates a result for the client.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public long id
the object ID


serial

public long serial
the serial number


tableSerial

public long tableSerial
the table serial


result

public boolean result
the result code: true or false


uniqueViolation

public boolean uniqueViolation
if failed: was it a unique violation?

Constructor Detail

DbObjectResult

public DbObjectResult(long id,
                      long serial,
                      long tableSerial,
                      boolean result,
                      boolean uniqueViolation)
Creates a result for the client.

Parameters:
id - the object ID
serial - the object's serial
tableSerial - the table serial
result - true=ok or false=failed
uniqueViolation - true if failed due to a unique violation


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de