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

org.sqlite.jdbc3.JDBC3Savepoint Maven / Gradle / Ivy

There is a newer version: 3.47.1.0
Show newest version
package org.sqlite.jdbc3;

import java.sql.SQLException;
import java.sql.Savepoint;

public class JDBC3Savepoint implements Savepoint {

    final int id;

    final String name;

    JDBC3Savepoint(int id) {
        this.id = id;
        this.name = null;
    }

    JDBC3Savepoint(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getSavepointId() throws SQLException {
        return id;
    }

    public String getSavepointName() throws SQLException {
        return name == null ? String.format("SQLITE_SAVEPOINT_%s", id) : name;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy