Package org.objectweb.speedo.tutorial.pobjects.additional.detach

Examples of org.objectweb.speedo.tutorial.pobjects.additional.detach.Author


  public static void usePredefinedFetchGroups(PersistenceManager pm){
    //create a fetch plan
    FetchPlan fp = pm.getFetchPlan();
   
    //create a book
    Author author = new Author("William S. Burroughs");
    Address address = new Address("Fenton Street", "931ZR2", "Leeds");
    Editor editor = new Editor("Mille et Une Nuits", address);
    Book book = new Book("The Yage Letters", author, editor, 1955);
   
    //make the book persistent
View Full Code Here


  public static void useDefinedFetchGroups(PersistenceManager pm){
    //create a fetch plan
    FetchPlan fp = pm.getFetchPlan();
   
    //create a book
    Author author = new Author("John Fante");
    Address address = new Address("South Street", "211ZL2", "York");
    Editor editor = new Editor("Plon", address);
    Book book = new Book("Bandini", author, editor, 1938);
   
    //make the book persistent
View Full Code Here

 
  /**
   * detach persistent objects
   */
  public static void detachObject(PersistenceManager pm){
    Author author = new Author("Henry Miller");
    Address address = new Address("Coronation Street", "811XBA", "Manchester");
    Editor editor = new Editor("Grasset", address);
    Book book = new Book("Tropic of Capricorn", author, editor, 1939);
   
    //make the book persistent
View Full Code Here

   * detach persistent object
   * modify it
   * then re-attach it
   */
  public static void attachObject(PersistenceManager pm){
    Author author = new Author("Hubert Selby Jr");
    Address address = new Address("Sharrow Street", "911ZB2", "Sheffield");
    Editor editor = new Editor("Folio", address);
    Book book = new Book("The willow tree", author, editor, 1999);
   
    //make the book persistent
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.tutorial.pobjects.additional.detach.Author

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.