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

fr.profi.mzdb.util.sqlite.SQLiteJobWrapper Maven / Gradle / Ivy

There is a newer version: 0.0.27
Show newest version
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