// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package javadb;

import java.sql.SQLException;
import java.util.List;

public interface DAL {
    public T1 getOneByPK(int f1) throws SQLException;
    public List<T1> getAll() throws SQLException;
    public List<T1> getRangeOfPK(int f1_start, int f1_end) throws SQLException;
    public List<T1> getContainingF2(String f2) throws SQLException;
    public void saveChanges(T1 o) throws SQLException;
    public void saveNew(T1 o) throws SQLException;
    public void remove(int f1) throws SQLException;
}
