Examples of from()


Examples of com.mysema.query.sql.mysql.MySQLQuery.from()

//          OF FIRST_NAME, LAST_NAME

        QAuthor author = QAuthor.author;
        QBook book = QBook.book;
        MySQLQuery query = new MySQLQuery(null);
        query.from(author)
           .join(book).on(author.id.eq(book.authorId))
           .where(book.language.eq("DE"), book.published.eq(new Date()))
           .groupBy(author.firstName, author.lastName)
           .having(Wildcard.count.gt(5))
           .orderBy(author.lastName.asc())
View Full Code Here

Examples of com.mysema.query.support.QueryMixin.from()

                serializer.serializeUnion(union, queryMixin.getMetadata(), unionAll);
            } else {
                QueryMixin mixin2 = new QueryMixin(queryMixin.getMetadata().clone());
                Set<Path<?>> paths = getRootPaths(expandProjection(mixin2.getMetadata().getProjection()));
                if (paths.isEmpty()) {
                    mixin2.from(ExpressionUtils.as((Expression) union, defaultQueryAlias));
                } else if (paths.size() == 1) {
                    mixin2.from(ExpressionUtils.as((Expression) union, paths.iterator().next()));
                } else {
                    throw new IllegalStateException("Unable to create serialize union");
                }
View Full Code Here

Examples of com.oreilly.servlet.MailMessage.from()

        throw new MailParseException("CosMailSenderImpl does not support sentDate field - " + simpleMessage);
      }

      try {
        MailMessage cosMessage = new MailMessage(this.host);
        cosMessage.from(simpleMessage.getFrom());
        if (simpleMessage.getTo() != null) {
          for (int j = 0; j < simpleMessage.getTo().length; j++) {
            cosMessage.to(simpleMessage.getTo()[j]);
          }
        }
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.mpx.MpxAssignmentConverter.from()

  protected void importAssignments(net.sf.mpxj.Task mpxTask, Task task) {
    for (net.sf.mpxj.ResourceAssignment mpxAssignment:mpxTask.getResourceAssignments()){
      MpxAssignmentConverter converter=new MpxAssignmentConverter();
      Assignment assignment=new Assignment();
      assignment.setTask(task);
      converter.from(mpxAssignment, assignment, state);
      task.addAssignment(assignment);
    }
  }
 
  protected void importDependencies(Project project) {
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.mpx.MpxCalendarConverter.from()

      WorkCalendar calendar=new DefaultWorkCalendar();
      if (ProjectCalendar.DEFAULT_BASE_CALENDAR_NAME.equals(mpxBaseCalendar.getName())){
        state.setMpxStandardBaseCalendar(mpxBaseCalendar);
        project.getCalendarManager().setStandardBaseCalendar(calendar);
      }
      converter.from(mpxBaseCalendar, calendar, state);
      try {
        project.getCalendarManager().addBaseCalendar(calendar);
        state.mapBaseCalendar(calendar,mpxBaseCalendar);
      } catch (DuplicateCalendarException e) {
        // TODO Auto-generated catch block
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.mpx.MpxDependencyConverter.from()

        continue;
      List<Relation> mpxRelations=mpxTask.getPredecessors();
      if (mpxRelations==null) continue;
      for (Relation mpxRelation : mpxRelations){
        Dependency dependency=new Dependency();
        converter.from(mpxRelation, dependency, state);
        project.addDependency(dependency);
      }
    }
  }
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.mpx.MpxOptionsConverter.from()

  }
 
 
  protected void importOptions(Project project) {
    MpxOptionsConverter converter=new MpxOptionsConverter();
    converter.from(mpxProjectFile.getProjectHeader(),project.getCalendarOptions(), state);
  }
 
  protected void importProjectHeader(Project project) {
    MpxProjectConverter converter=new MpxProjectConverter();
    converter.from(mpxProjectFile.getProjectHeader(), project, state);
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.mpx.MpxProjectConverter.from()

    converter.from(mpxProjectFile.getProjectHeader(),project.getCalendarOptions(), state);
  }
 
  protected void importProjectHeader(Project project) {
    MpxProjectConverter converter=new MpxProjectConverter();
    converter.from(mpxProjectFile.getProjectHeader(), project, state);
   
    if (earliestTaskStart!=-1L) //fix project start
      project.set("start", new Date(earliestTaskStart));
  }
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.mpx.MpxResourceConverter.from()

        resource=resourcePool.getUnassignedResource();
      else {
        resource=new Resource();
        resourcePool.addResource(resource);
      }
      converter.from(mpxResource, resource, state);
      state.mapResource(resource.getId(), resource);
      //TODO insert blank lines ignored below
    }
  }
 
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.mpx.MpxTaskConverter.from()

        mpxTask.getOutlineLevel() == 0){ //root task, not a real task
      if (mpxRootTask==null)
        mpxRootTask=mpxTask;
    } else { // normal task
      task=new Task();
      converter.from(mpxTask, task, state);
      long taskStart=((Date)task.get("start")).getTime();
      if (earliestTaskStart==-1L || taskStart<earliestTaskStart)
        earliestTaskStart=taskStart;

      project.addTask(task,parentTask);     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.