com.jenkov.mrpersister.itf
Class UpdateResult

java.lang.Object
  extended by com.jenkov.mrpersister.itf.UpdateResult

public class UpdateResult
extends java.lang.Object

Represents the result of an SQL update. The result contains the number of affected records and the generated keys as returned by the JDBC driver, if any.

Author:
Jakob Jenkov - Copyright 2005 Jenkov Development

Field Summary
protected  int[] affectedRecords
           
protected  java.util.List generatedKeys
           
 
Constructor Summary
UpdateResult()
           
 
Method Summary
 void addGeneratedKey(java.lang.Object key)
           
 int[] getAffectedRecords()
           
 java.math.BigDecimal getGeneratedKeyAsBigDecimal(int index)
           
 long getGeneratedKeyAsLong(int index)
           
 java.util.List getGeneratedKeys()
           
 void setAffectedRecords(int[] affectedRecords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

affectedRecords

protected int[] affectedRecords

generatedKeys

protected java.util.List generatedKeys
Constructor Detail

UpdateResult

public UpdateResult()
Method Detail

getAffectedRecords

public int[] getAffectedRecords()

setAffectedRecords

public void setAffectedRecords(int[] affectedRecords)

getGeneratedKeys

public java.util.List getGeneratedKeys()

addGeneratedKey

public void addGeneratedKey(java.lang.Object key)

getGeneratedKeyAsLong

public long getGeneratedKeyAsLong(int index)

getGeneratedKeyAsBigDecimal

public java.math.BigDecimal getGeneratedKeyAsBigDecimal(int index)