Package intrade.entities

Examples of intrade.entities.EventClass


  }

  private long lastRetrieved_eventclass(String event_id) {

    EventClass eventclass = null;
    PersistenceManager pm = PMF.get().getPersistenceManager();
    try {
      eventclass = pm.getObjectById(EventClass.class, EventClass.generateKeyFromID(event_id));
    } catch (Exception e) {
      eventclass = null;
    }
    pm.close();
    return (eventclass == null) ? 0 : eventclass.getLastretrieved();
  }
View Full Code Here


      queue.add(Builder.withUrl("/processEventGroup").param("eventgroup", group_id).param("eventclass", eventclass_id)
          .method(TaskOptions.Method.GET));

    }

    EventClass ec = new EventClass(eventclass_id, event_name, event_displayorder);
    ec.setLastretrieved(now);
    print("Storing:" + ec.toString());

    PersistenceManager pm = PMF.get().getPersistenceManager();
    pm.makePersistent(ec);
    pm.close();
View Full Code Here

  }

  private long lastRetrieved_eventclass(String event_id) {

    EventClass eventclass = null;
    PersistenceManager pm = PMF.get().getPersistenceManager();
    try {
      eventclass = pm.getObjectById(EventClass.class, EventClass.generateKeyFromID(event_id));
    } catch (Exception e) {
      eventclass = null;
    }
    pm.close();
    return (eventclass == null) ? 0 : eventclass.getLastretrieved();
  }
View Full Code Here

        oldest_updatetime = updated;
      }

    }

    EventClass ec = new EventClass(event_id, event_name, event_displayorder);
    ec.setLastretrieved(oldest_updatetime);
    print("Storing:" + ec.toString());

    PersistenceManager pm = PMF.get().getPersistenceManager();
    pm.makePersistent(ec);

    pm.close();
View Full Code Here

TOP

Related Classes of intrade.entities.EventClass

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.