org.omus.db
Class DbResult

java.lang.Object
  |
  +--org.omus.db.DbResult
All Implemented Interfaces:
java.io.Serializable

public final class DbResult
extends java.lang.Object
implements java.io.Serializable

Represents the result of a transaction.

See Also:
Serialized Form

Method Summary
 int getAffectedRows(java.lang.String name)
          Returns the number of affected rows of the statement with the specified resultID.
 Message getMessage(java.lang.String subject)
          Returns a message with the specified subject and the content of this DbResult object as an attachment.
 DataTable getTable(java.lang.String name)
          Returns a table object read from the database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAffectedRows

public int getAffectedRows(java.lang.String name)
Returns the number of affected rows of the statement with the specified resultID. The resultID must match the ID that you passed as the second argument to the constructor of the corresponding DbWriter object.

getTable

public DataTable getTable(java.lang.String name)
Returns a table object read from the database. The resultID must match the ID that you passed as the second argument to the constructor of the corresponding DbReader object.

getMessage

public Message getMessage(java.lang.String subject)
Returns a message with the specified subject and the content of this DbResult object as an attachment. A convenient short cut if you want to send the values that you read from the database to a client.