com.jenkov.mrpersister.itf
Class UpdateResult
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
affectedRecords
protected int[] affectedRecords
generatedKeys
protected java.util.List generatedKeys
UpdateResult
public UpdateResult()
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)