Package com.titan.customer

Examples of com.titan.customer.AddressDO


        Integer primaryKey = new Integer(1);
        CustomerRemote customer = home.create(primaryKey);
        
        // create an address data object
        System.out.println("Creating AddressDO data object..");
        AddressDO address = new AddressDO(new Integer(10),"1010 Colorado"
                      "Austin", "TX", "78701");
       
        // set address in Customer bean
        System.out.println("Setting Address in Customer 1...");
        customer.setAddress(address);
        
        System.out.println("Acquiring Address data object from Customer 1...");
        address = customer.getAddress();

        System.out.println("Customer 1 Address data: ");
        System.out.println(address.getStreet( ));
        System.out.println(address.getCity( )+","+
                address.getState()+" "+
                address.getZip());
                         
                 
        // create a new address
        System.out.println("Creating new AddressDO data object..");
        address = new AddressDO(new Integer(20),"1600 Pennsylvania Avenue NW"
                    "DC", "WA", "20500");
                   
        // change customer's address
        System.out.println("Setting new Address in Customer 1...");
        customer.setAddress(address);

        address = customer.getAddress();
        System.out.println("Customer 1 Address data: ");
        System.out.println(address.getStreet( ));
        System.out.println(address.getCity( )+","+
                address.getState()+" "+
                address.getZip());
         
         
        // remove Customer to clean up
        System.out.println("Removing Customer 1...");
        customer.remove();
View Full Code Here


    Integer primaryKey = new Integer(1);
    CustomerRemote customer = home.create(primaryKey);
    
    // create an address data object
    System.out.println("Creating AddressDO data object..");
    AddressDO address = new AddressDO("1010 Colorado"
                    "Austin", "TX", "78701");
   
    // set address in Customer bean
    System.out.println("Setting Address in Customer 1...");
    customer.setAddress(address);
    
    System.out.println("Acquiring Address data object from Customer 1...");
    address = customer.getAddress();

    System.out.println("Customer 1 Address data: ");
    System.out.println(address.getStreet( ));
    System.out.println(address.getCity( )+","+
               address.getState()+" "+
               address.getZip());
                     
             
    }
View Full Code Here

TOP

Related Classes of com.titan.customer.AddressDO

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.