Examples of addItem()


Examples of org.eclipse.persistence.jpa.jpql.model.query.UpdateClauseStateObject.addItem()

    public void visit(UpdateItem expression) {

      UpdateClauseStateObject updateClause = stateObject.getModifyClause();
      String identificationVariable = updateClause.getIdentificationVariable();

      updateItem = updateClause.addItem();
      updateItem.setExpression(expression);

      try {
        // Retrieve the state field path expression
        String path = literal(
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.tools.model.query.OrderByClauseStateObject.addItem()

    @Override
    public void visit(OrderByItem expression) {

      OrderByClauseStateObject orderByClause = stateObject.getOrderByClause();

      OrderByItemStateObject orderByItem = orderByClause.addItem(expression.getOrdering());
      orderByItem.setExpression(expression);

      expression.getExpression().accept(BasicStateObjectBuilder.this);
      orderByItem.setStateObject(BasicStateObjectBuilder.this.stateObject);
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.tools.model.query.SelectClauseStateObject.addItem()

      for (Expression child : children(expression.getSelectExpression())) {

        StateObject stateObject = getSelectItemBuilder().buildStateObject(selectClause, child);

        if (stateObject != null) {
          selectClause.addItem(stateObject);
        }
      }
    }

    /**
 
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.tools.model.query.UpdateClauseStateObject.addItem()

    public void visit(UpdateItem expression) {

      UpdateClauseStateObject updateClause = stateObject.getModifyClause();
      String identificationVariable = updateClause.getIdentificationVariable();

      updateItem = updateClause.addItem();
      updateItem.setExpression(expression);

      try {
        // Retrieve the state field path expression
        String path = literal(
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.util.list.MultiResultQueryList.addItem()

            List<JAXBElement> jaxbFields = createShellJAXBElementList(reportItems, result);
           if (jaxbFields == null) {
                return null;
            }
            queryResultListItem.setFields(jaxbFields);
            response.addItem(queryResultListItem);
        }
        return response;
    }
}
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.util.list.ReadAllQueryResultCollection.addItem()

    }

    private PageableCollection populateReadAllQueryResultList(PersistenceContext context, List<Object> items, UriInfo uriInfo) {
        ReadAllQueryResultCollection response = new ReadAllQueryResultCollection();
        for (Object item : items) {
            response.addItem(populateReadAllQueryResultListItemLinks(context, item));
        }

        response.addLink(new LinkV2(ReservedWords.JPARS_REL_SELF, uriInfo.getRequestUri().toString()));
        return response;
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.util.list.ReportQueryResultCollection.addItem()

                return null;
            }
            // We don't have a way of determining self links for the report query responses
            // so, no links array will be inserted into individual items in the response
            queryResultListItem.setFields(jaxbFields);
            response.addItem(queryResultListItem);
        }
        response.addLink(new LinkV2(ReservedWords.JPARS_REL_SELF, uriInfo.getRequestUri().toString()));
        return response;
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.util.list.ReportQueryResultList.addItem()

            List<JAXBElement> jaxbFields = createShellJAXBElementList(reportItems, result);
            if (jaxbFields == null) {
                return null;
            }
            queryResultListItem.setFields(jaxbFields);
            response.addItem(queryResultListItem);
        }
        return response;
    }

    /**
 
View Full Code Here

Examples of org.eclipse.persistence.queries.ConstructorReportItem.addItem()

        ConstructorReportItem item = new ConstructorReportItem(this.getAlias());
        item.setResultType(this.getJavaType());
        item.setConstructor(constructor);
        for(Selection selection : this.getCompoundSelectionItems()){
            if (((SelectionImpl)selection).isCompoundSelection()){
                item.addItem(((ConstructorSelectionImpl)selection).translate());
            }else{
                ReportItem reportItem = new ReportItem(item.getName()+item.getReportItems().size(),
                        ((SelectionImpl)selection).getCurrentNode());
                //bug: 297385 - set type here because the selection already knows the type
                reportItem.setResultType(selection.getJavaType());
View Full Code Here

Examples of org.eclipse.persistence.queries.ReportQuery.addItem()

     */
    public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext) {
        if (theQuery instanceof ReportQuery) {
            ReportQuery reportQuery = (ReportQuery)theQuery;
            Expression expression = generateExpression(generationContext);
            reportQuery.addItem("NullIf(" + getLeft().getAsString() + "," + getRight().getAsString() + ")", expression);
        }
    }
   
    /**
     * INTERNAL
 
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.