sqlg3.runtime.UpdateResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlg3-runtime Show documentation
Show all versions of sqlg3-runtime Show documentation
SQLG is a preprocessor and a library that uses code generation to simplify writing JDBC code
The newest version!
package sqlg3.runtime;
public final class UpdateResult {
private final int rows;
private final Object[] generatedKeys;
public UpdateResult(int rows, Object[] generatedKeys) {
this.rows = rows;
this.generatedKeys = generatedKeys;
}
public int getRows() {
return rows;
}
public Object[] getGeneratedKeys() {
return generatedKeys;
}
public int getGeneratedInt() {
return ((Number) generatedKeys[0]).intValue();
}
public long getGeneratedLong() {
return ((Number) generatedKeys[0]).longValue();
}
}