Package quickdb.date200912.model

Examples of quickdb.date200912.model.Names


        System.out.println(admin.obtain(son, "referenceTest.value = 'value test reference'"));
        System.out.println("description - son".equalsIgnoreCase(son.getDescriptionSon()));
    }

    public void testLazyLoad(){
        Object3 obj3 = new Object3();
        obj3.setDescription("description");
        obj3.setName3("name3");

        Object2 obj2 = new Object2();
        obj2.setName2("name2");
        obj2.setObject3(obj3);
View Full Code Here


        System.out.println(admin.delete(son));
    }

    public void testQuerySystemWithInheritance(){
        Reference1 ref = new Reference1();
        ref.setValue("house");

        Son1 son = new Son1();
        son.setData("data from son");
        son.setSonName("child");
        son.setDescription("parent description");
View Full Code Here

    public void testInheritanceQuery(){
        Son2 son = new Son2();
        son.setDescriptionSon("description - son");
        son.setDescription2("description2");
        son.setDescription1("description1");
        Reference2 test = new Reference2();
        test.setValue("value test reference");
        son.setReferenceTest(test);

        System.out.println(admin.save(son));

        System.out.println(admin.obtain(son, "referenceTest.value = 'value test reference'"));
View Full Code Here

        admin.obtain(bind2, "name = 'name binding2'");
        System.out.println("name binding2".equalsIgnoreCase(bind2.getName()));
    }

    public void testDeleteParent(){
        Son1 s = new Son1();
        s.setData("data che delete");
        s.setDescription("description of son delete");
        s.setSonName("son name delete");

        System.out.println(admin.save(s));

        Son1 son = new Son1();
        admin.obtain(son, "data = 'data che delete'");
        System.out.println("data che delete".equalsIgnoreCase(son.getData()));

        System.out.println(admin.delete(son));
    }
View Full Code Here

    public void testQuerySystemWithInheritance(){
        Reference1 ref = new Reference1();
        ref.setValue("house");

        Son1 son = new Son1();
        son.setData("data from son");
        son.setSonName("child");
        son.setDescription("parent description");
        son.setReference1(ref);

        boolean value = admin.save(son);
        System.out.println(value);

        Son1 s = new Son1();
        System.out.println(admin.obtain(s, "reference1.value = 'house'"));
        System.out.println("house".equalsIgnoreCase(s.getReference1().getValue()));
    }
View Full Code Here

        ArrayList array4 = admin.obtainAll(Obj4.class, "id > 0");
        System.out.println(2 == array4.size());
    }

    public void testReferenceNull(){
        Son1 son = new Son1();
        son.setData("son yes");
        son.setSonName("son name yes");
        son.setDescription("parent yes");

        boolean value = admin.save(son);
        System.out.println(value);

        Son1 s = new Son1();
        System.out.println(admin.obtain(s, "description = 'parent yes'"));
        System.out.println("parent yes".equalsIgnoreCase(s.getDescription()));
        System.out.println(null == s.getReference1());
    }
View Full Code Here

        System.out.println("description added".equalsIgnoreCase(((Collection2)tt.getCollection2().get(tt.getCollection2().size()-1)).getDescription()));
        System.out.println(admin.delete(test));
    }

    public void testInheritanceQuery(){
        Son2 son = new Son2();
        son.setDescriptionSon("description - son");
        son.setDescription2("description2");
        son.setDescription1("description1");
        Reference2 test = new Reference2();
        test.setValue("value test reference");
        son.setReferenceTest(test);

        System.out.println(admin.save(son));

        System.out.println(admin.obtain(son, "referenceTest.value = 'value test reference'"));
        System.out.println("description - son".equalsIgnoreCase(son.getDescriptionSon()));
    }
View Full Code Here

TOP

Related Classes of quickdb.date200912.model.Names

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.