Package org.javalite.activejdbc

Examples of org.javalite.activejdbc.RowListenerAdapter


    @Test
    public void testBaseFinder() {
        final List<Map> records = new ArrayList<Map>();

        Base.find("select * from people order by id", new RowListenerAdapter() {
            public void onNext(Map record) {
                records.add(record);
            }
        });

View Full Code Here


    }

    @Test
    public void testFindParametrized(){

        Base.find("select * from people where id > ? and dob > ?", 1, getTimestamp(1935, 1, 1)).with(new RowListenerAdapter() {
            public void onNext(Map<String, Object> row) {
                System.out.println(row);
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.javalite.activejdbc.RowListenerAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.