Package org.nightlabs.jfire.timer.id

Examples of org.nightlabs.jfire.timer.id.TaskID


  public RecurringOfferConfiguration(RecurringOffer recurringOffer,User user,String organisationID,long recurringOfferConfigurationID) {
    this.organisationID = organisationID;
    this.recurringOffer = recurringOffer;
    this.recurringOfferConfigurationID = recurringOfferConfigurationID;
    String _taskID =  ObjectIDUtil.longObjectIDFieldToString(recurringOfferConfigurationID);
    TaskID taskID = TaskID.create(organisationID,TASK_TYPE_ID_RECURRED_OFFER_CREATOR_TASK, _taskID);
    this.creatorTask = new Task(
        taskID,
        user,
        RecurringTradeManagerLocal.class,
        "processRecurringOfferTimed"
View Full Code Here


   *
   * @return The {@link TaskID} for the {@link Task} that processes
   *         the associated {@link RecurringOffer}.
   */
  public TaskID getCreatorTaskID() {
    TaskID taskID = (TaskID) JDOHelper.getObjectId(creatorTask);
    if (taskID == null && creatorTask != null)
      throw new IllegalStateException("creatorTask has not yet been persisted!"); // if you really come into this situation, either create the TaskID manually by TaskID.create(...) or persist first (and maybe detach) before accessing this method.

    return taskID;
  }
View Full Code Here

TOP

Related Classes of org.nightlabs.jfire.timer.id.TaskID

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.