Package quickdb.binding.model

Examples of quickdb.binding.model.BindingObject


        System.out.println("testSaveGetIndex");
        this.testSaveGetIndex();
    }
   
    public void testSave(){
        BindingObject bind = new BindingObject();
        bind.setBirth(new java.sql.Date(104, 4, 20));
        bind.setName("quickdb");
        bind.setSalary(3000.50);

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


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

    public void testSaveGetIndex(){
        BindingObject bind = new BindingObject();
        bind.setBirth(new java.sql.Date(104, 4, 20));
        bind.setName("quickdb");
        bind.setSalary(3000.50);

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

        System.out.println((bind.saveGetIndex() > 0));
    }

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

        bind.obtain().If("name").equal("quickdb").find();
        System.out.println("quickdb".equalsIgnoreCase(bind.getName()));
        System.out.println(3000.50 == bind.getSalary());
    }
View Full Code Here

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

    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());
    }
View Full Code Here

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

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

        bind.obtain("name = 'quickdb'");
        System.out.println("quickdb".equalsIgnoreCase(bind.getName()));
        System.out.println(3000.50 == bind.getSalary());
    }
View Full Code Here

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

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

        bind.obtainSelect("SELECT * FROM BindingObject WHERE name = 'quickdb'");
        System.out.println("quickdb".equalsIgnoreCase(bind.getName()));
        System.out.println(3000.50 == bind.getSalary());
    }
View Full Code Here

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

    public void testDelete(){
        BindingObject bind = new BindingObject();
        bind.setBirth(new java.sql.Date(104, 4, 20));
        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());
    }
View Full Code Here

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

    public void testModify(){
        BindingObject bind = new BindingObject();
        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();
        System.out.println(b.obtainWhere("name = 'quickdb4'"));
        System.out.println("quickdb4".equalsIgnoreCase(b.getName()));
    }
View Full Code Here

TOP

Related Classes of quickdb.binding.model.BindingObject

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.