fr.profi.mzdb.util.sqlite.SQLiteJobWrapper Maven / Gradle / Ivy
package fr.profi.mzdb.util.sqlite;
import com.almworks.sqlite4java.SQLiteConnection;
import com.almworks.sqlite4java.SQLiteJob;
/**
* @author bouyssie
*
*/
public abstract class SQLiteJobWrapper implements ISQLiteConnectionFunction {
private SQLiteJob sqliteJob;
public void setSQLiteJob(SQLiteJob sqliteJob) {
this.sqliteJob = sqliteJob;
}
public SQLiteJob getSQLiteJob() {
return sqliteJob;
}
public SQLiteJobWrapper() {
super();
}
public abstract T job(SQLiteConnection connection) throws Exception;
@Override
public T apply(SQLiteConnection connection) throws Exception {
return job(connection);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy