Package org.pojoxml.core

Examples of org.pojoxml.core.PojoXml


public class LoadingTest {

  public static void main(String[] args) {
   
    PojoXml pojo = PojoXmlFactory.createPojoXml();
   
    Shippers shippers = (Shippers) pojo.getPojoFromFile(".\\sampledata\\shippers.xml", Shippers.class);
    Suppliers suppliers = (Suppliers) pojo.getPojoFromFile(".\\sampledata\\suppliers.xml", Suppliers.class);
    Categories categories = (Categories) pojo.getPojoFromFile(".\\sampledata\\categories.xml", Categories.class);
    Customers customers = (Customers) pojo.getPojoFromFile(".\\sampledata\\customers.xml", Customers.class);
    Employees employees = (Employees) pojo.getPojoFromFile(".\\sampledata\\employees.xml", Employees.class);
    OrderDetails orderdetails = (OrderDetails) pojo.getPojoFromFile(".\\sampledata\\orderdetails_rand_10000.xml", OrderDetails.class);
    Orders orders = (Orders) pojo.getPojoFromFile(".\\sampledata\\orders_rand_10000.xml", Orders.class);
    OrderDetails orderdetails2 = (OrderDetails) pojo.getPojoFromFile(".\\sampledata\\orderdetails_rand_20000.xml", OrderDetails.class);
    Orders orders2 = (Orders) pojo.getPojoFromFile(".\\sampledata\\orders_rand_20000.xml", Orders.class);
    Products products = (Products) pojo.getPojoFromFile(".\\sampledata\\products.xml", Products.class);
   
    System.out.println("Data loaded from files :");
    System.out.println("Shippers : "+shippers.getShipper().length);
    System.out.println("Suppliers : "+suppliers.getSupplier().length);
    System.out.println("Categories : "+categories.getCategory().length);
View Full Code Here

TOP

Related Classes of org.pojoxml.core.PojoXml

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.