Package pojo

Examples of pojo.Client


    logger.info("DB info : dbName=" + info.getDbName() + ", docCount="
        + info.getDocCount() + ", diskSize=" + df.format(info.getDiskSize()
        / 1024.0 / 1024.0) + " MB");

    Client john = new Client("John Smith", "USA");
   
    john.setId("john");
   
    logger.info("john : _id="+john.getId()+" _rev="+john.getRevision());
    waitForKey();   
   
   
    db.create(john);   
    logger.info("create");
    logger.info("john : _id="+john.getId()+" _rev="+john.getRevision());
   
    waitForKey();
   
    john.setAddress("PL");
    db.update(john);
   
    logger.info("update");
    logger.info("john : _id="+john.getId()+" _rev="+john.getRevision());
   
    waitForKey();
   
    logger.info("get");
    john = db.get(Client.class, "john");
    logger.info("john : _id="+john.getId()+" _rev="+john.getRevision());
   
    waitForKey();
   
    logger.info("delete");
    db.delete(john);
   
    waitForKey();
   
    logger.info("Order create");
   
    Order o1 = new Order();
    o1.setCustomerId(john.getId());
    db.create(o1);
   
    waitForKey();
   
    logger.info("Order delete ");
View Full Code Here

TOP

Related Classes of pojo.Client

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.