Package quickdb.db

Examples of quickdb.db.AdminBase


        String port = "3306";
        String database = "testQuickDB";
        String user = "root";
        String pass = "";
        String scheme = "";
        AdminBase admin = AdminBase.initialize(db, host,
                port, database, user, pass);
        AdminBase.initializeAdminBinding(db, host,
                port, database, user, pass, scheme);

        ViewTest test13 = new ViewTest(admin);
View Full Code Here


        }
    }

    @Test
    public void testModify(){
        AdminBase a = AdminBase.initialize(AdminBase.DATABASE.MYSQL, "localhost",
                "3306", "testQuickDB", "root", "");
       
        ThreadObject t = new ThreadObject();
        t.setBirth(new java.sql.Date(204, 4, 20));
        t.setName("test");
        t.setSalary(4000.29);
        t.setAge(20);
        t.setAlive(true);

        Assert.assertTrue(a.save(t));

        ThreadObject t2 = new ThreadObject();
        a.obtain(t2, "name = 'test'");

        t.setName("test modify");
        try{
            admin.modify(t2);
        }catch(Exception e){
View Full Code Here

        }
    }

    @Test
    public void testObtain(){
        AdminBase a = AdminBase.initialize(AdminBase.DATABASE.MYSQL, "localhost",
                "3306", "testQuickDB", "root", "");

        ThreadObject t = new ThreadObject();
        t.setBirth(new java.sql.Date(204, 4, 20));
        t.setName("test");
        t.setSalary(4000.29);
        t.setAge(20);
        t.setAlive(true);

        Assert.assertTrue(a.save(t));

        ThreadObject t2 = new ThreadObject();

        try{
            admin.obtain(t2, "name = 'test'");
View Full Code Here

            System.out.println(false);
        }
    }

    public void testModify(){
        AdminBase a = AdminBase.initialize(AdminBase.DATABASE.MYSQL, "localhost",
                "3306", "testQuickDB", "root", "");
       
        ThreadObject t = new ThreadObject();
        t.setBirth(new java.sql.Date(204, 4, 20));
        t.setName("test");
        t.setSalary(4000.29);
        t.setAge(20);
        t.setAlive(true);

        System.out.println(a.save(t));

        ThreadObject t2 = new ThreadObject();
        a.obtain(t2, "name = 'test'");

        t.setName("test modify");
        try{
            admin.modify(t2);
        }catch(Exception e){
View Full Code Here

            System.out.println(false);
        }
    }

    public void testObtain(){
        AdminBase a = AdminBase.initialize(AdminBase.DATABASE.MYSQL, "localhost",
                "3306", "testQuickDB", "root", "");

        ThreadObject t = new ThreadObject();
        t.setBirth(new java.sql.Date(204, 4, 20));
        t.setName("test");
        t.setSalary(4000.29);
        t.setAge(20);
        t.setAlive(true);

        System.out.println(a.save(t));

        ThreadObject t2 = new ThreadObject();

        try{
            admin.obtain(t2, "name = 'test'");
View Full Code Here

TOP

Related Classes of quickdb.db.AdminBase

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.