// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.sql.SQLException;

public class Main {
    private static void dump(Test tst) throws SQLException {
        for(T1 o : tst.getAll()) {
            System.out.println(o);
        }
    }
    public static void main(String[] args) throws Exception {
        Class.forName(args[0]);
        Test tst = new Test(args[1], args.length > 2 ? args[2] : "", args.length > 3 ? args[3] : "");
        System.out.println(tst.getOne(2));
        dump(tst);
        tst.save(new T1(6, "X"));
        dump(tst);
        tst.remove(6);
        dump(tst);
    }
}
