Package quickdb.binding.model

Examples of quickdb.binding.model.BindingObject.obtainWhere()


    }

    public void testObtainWhere(){
        BindingObject bind = new BindingObject();

        bind.obtainWhere("name = 'quickdb'");
        System.out.println("quickdb".equalsIgnoreCase(bind.getName()));
        System.out.println(3000.50 == bind.getSalary());
    }

    public void testObtainString(){
View Full Code Here


        bind.setName("quickdb2");
        bind.setSalary(3000.50);

        int index = bind.saveGetIndex();
        System.out.println( (index > 0) );
        System.out.println(bind.obtainWhere("id = "+index));

        System.out.println(bind.delete());
    }

    public void testModify(){
View Full Code Here

        bind.setBirth(new java.sql.Date(104, 4, 20));
        bind.setName("quickdb3");
        bind.setSalary(3000.50);

        bind.save();
        System.out.println(bind.obtainWhere("name = 'quickdb3'"));
        bind.setName("quickdb4");

        System.out.println(bind.modify());

        BindingObject b = new BindingObject();
View Full Code Here

        bind.setName("quickdb4");

        System.out.println(bind.modify());

        BindingObject b = new BindingObject();
        System.out.println(b.obtainWhere("name = 'quickdb4'"));
        System.out.println("quickdb4".equalsIgnoreCase(b.getName()));
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.