All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sqlg3.runtime.UpdateResult Maven / Gradle / Ivy

Go to download

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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy