Package quickdb.model

Examples of quickdb.model.Person


        System.out.println("testSaveSimpleObject");
        this.testSaveSimpleObject();
    }

    public void testSaveSimpleObject() {
        Person person = new Person("LeeLoo", 1);
        boolean value = admin.save(person);

        System.out.println(value);
    }
View Full Code Here


        System.out.println(value);
    }

    public void testSaveGetIndexSimple() {
        Person person = new Person("LeeLoo", 1);
        int value = admin.saveGetIndex(person);

        System.out.println((value > 0));
    }
View Full Code Here

        System.out.println((value > 0));
    }

    public void testSaveObtainModifyDeleteSimple() {
        Person person = new Person("Man", 20);
        boolean value = admin.save(person);
        System.out.println(value);

        Person per = new Person();
        admin.obtainWhere(per, "age=20");
        System.out.println("Man".equalsIgnoreCase(per.getPersonName()));

        per.setPersonName("Dr. House");
        value = admin.modify(per);
        System.out.println(value);

        value = admin.delete(per);
        System.out.println(value);
View Full Code Here

        System.out.println(value);
    }

    public void testSaveObtainModifyCollectionSimple() {
        ArrayList array = new ArrayList();
        array.add(new Person("person1", 30));
        array.add(new Person("person2", 30));
        array.add(new Person("person3", 30));
        admin.saveAll(array);

        array = admin.obtainAll(Person.class, "age=30");
        int number = 1;
        for(Object obj : array){
View Full Code Here

TOP

Related Classes of quickdb.model.Person

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.