Package quickdb.model

Examples of quickdb.model.Address


        ArrayList<Integer> results2 = admin.modifyAll(array);
        System.out.println( (results2.size() == 0) );
    }

    public void testSaveObjectComposed() {
        Address a = new Address();
        District d = new District("district1");
        a.setStreet("false street 123");
        a.setIdDistrict(d);
        boolean value = admin.save(a);

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


        System.out.println(value);
    }

    public void testSaveCollectionComposed() {
        ArrayList array = new ArrayList();
        Address a2 = new Address();
        District d2 = new District("district2");
        a2.setStreet("address 2");
        a2.setIdDistrict(d2);
        array.add(a2);

        Address a3 = new Address();
        District d3 = new District("district3");
        a3.setStreet("address 3");
        a3.setIdDistrict(d3);
        array.add(a3);

        admin.setCollection(true);
        ArrayList list = admin.saveAll(array);
        admin.setCollection(false);
View Full Code Here

        System.out.println(2 == list.size());
    }

    public void testSaveGetIndexComposed() {
        Address a = new Address();
        District d = new District("districtComposed1");
        a.setStreet("street 123");
        a.setIdDistrict(d);
        int value = admin.saveGetIndex(a);

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

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

    public void testSaveObtainModifyDeleteComposed() {
        Address a = new Address();
        District d = new District("testing district");
        a.setStreet("composed 555");
        boolean value = admin.save(a);
        System.out.println(value);

        Address ad = new Address();
        admin.obtainWhere(ad, "street='composed 555'");
        System.out.println("composed 555".equalsIgnoreCase(ad.getStreet()));

        ad.setStreet("object 123");
        value = admin.modify(ad);
        System.out.println(value);

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

        System.out.println(333 == pr.getNumber());
    }

    public void testSaveObtainModifyCompound(){
        District d = new District("prueba district modify");
        Address a = new Address("modifyAddress", d);

        admin.save(a);

        Address w = new Address();
        admin.obtainWhere(w, "street='modifyAddress'");

        w.getIdDistrict().setName("prueba modificando");
        admin.modify(w);

        Address q = new Address();
        admin.obtainWhere(q, "street='modifyAddress'");
        System.out.println(q.getIdDistrict().getName().equalsIgnoreCase("prueba modificando"));
    }
View Full Code Here

        System.out.println(((Prueba2)p.getPrueba2().get(1)).getNombre().equalsIgnoreCase("gato2"));
    }

    public void testSaveObtainModifyCompoundCollection(){
        District d1 = new District("collectionModify1");
        Address a1 = new Address("collectionModify", d1);
        District d2 = new District("collectionModify2");
        Address a2 = new Address("collectionModify", d2);
        ArrayList array = new ArrayList();
        array.add(a1);
        array.add(a2);

        admin.saveAll(array);
View Full Code Here

TOP

Related Classes of quickdb.model.Address

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.