Package org.wso2.carbon.dataservices.core.engine

Examples of org.wso2.carbon.dataservices.core.engine.CallQueryGroup


        .append(tableName).append(DBConstants.DataServiceGenerator._OPERATION).toString();
    CallQuery callQuery = new CallQuery(dataServiceObject, queryId,
        paramMap, requiredRoles);
    List<CallQuery> callQueries = new ArrayList<CallQuery>();
    callQueries.add(callQuery);
    CallQueryGroup callQueryGroup = new CallQueryGroup(callQueries);
    // batchRequest=false
    // parentOperation=null
    Operation operation = new Operation(dataServiceObject, OpName, null,
        callQueryGroup, false, null, false, false);
    dataServiceObject.addOperation(operation);
View Full Code Here


    String description = null;
    if (descEl != null) {
      description = descEl.getText();
    }
   
    CallQueryGroup callQueryGroup = null;

    List<CallQueryGroup> cqGroups = QueryFactory.createCallQueryGroups(dataService,
        opEl.getChildrenWithName(new QName(DBSFields.CALL_QUERY)),
        opEl.getChildrenWithName(new QName(DBSFields.CALL_QUERY_GROUP)));
    if (cqGroups.size() > 0) {
View Full Code Here

  }
 
  public static Operation createBeginBoxcarOperation(DataService dataService) {
    List<CallQuery> callQueries = new ArrayList<CallQuery>();
    callQueries.add(QueryFactory.createEmptyCallQuery(dataService));
    CallQueryGroup callQueryGroup = new CallQueryGroup(callQueries);
    Operation operation = new Operation(dataService, BoxcarringOps.BEGIN_BOXCAR,
        "Control operation for beginning a boxcarring session",
        callQueryGroup, false, null, false, false);
    return operation;
  }
View Full Code Here

  }
 
  public static Operation createEndBoxcarOperation(DataService dataService) {
    List<CallQuery> callQueries = new ArrayList<CallQuery>();
    callQueries.add(QueryFactory.createEmptyEndBoxcarCallQuery(dataService));
    CallQueryGroup callQueryGroup = new CallQueryGroup(callQueries);
    Operation operation = new Operation(dataService, BoxcarringOps.END_BOXCAR,
        "Control operation for ending a boxcarring session",
        callQueryGroup, false, null, false, false);
    return operation;
  }
View Full Code Here

  }
 
  public static Operation createAbortBoxcarOperation(DataService dataService) {
    List<CallQuery> callQueries = new ArrayList<CallQuery>();
    callQueries.add(QueryFactory.createEmptyCallQuery(dataService));
    CallQueryGroup callQueryGroup = new CallQueryGroup(callQueries);
    Operation operation = new Operation(dataService, BoxcarringOps.ABORT_BOXCAR,
        "Control operation for aborting a boxcarring session",
        callQueryGroup, false, null, false, false);
    return operation;
  }
View Full Code Here

          qp.getName(), DBConstants.DBSFields.QUERY_PARAM));
    }
    CallQuery callQuery = new CallQuery(dataService, queryId, withParams, new HashSet<String>());
    List<CallQuery> callQueries = new ArrayList<CallQuery>();
    callQueries.add(callQuery);
    CallQueryGroup callQueryGroup = new CallQueryGroup(callQueries);
    return callQueryGroup;
  }
View Full Code Here

    String description = null;
    if (descEl != null) {
      description = descEl.getText();
    }
   
    CallQueryGroup callQueryGroup = null;
    List<CallQueryGroup> cqGroups = QueryFactory.createCallQueryGroups(dataService,
        resEl.getChildrenWithName(new QName(DBSFields.CALL_QUERY)),
        resEl.getChildrenWithName(new QName(DBSFields.CALL_QUERY_GROUP)));
    if (cqGroups.size() > 0) {
      callQueryGroup = cqGroups.get(0);
View Full Code Here

        }

        public void run() {
            try {
                MessageContext msgCtx = ((Axis2MessageContext) synCtx).getAxis2MessageContext();
                Event<MessageContext> event = new Event(msgCtx);
                subscriptions = subscriptionManager.getMatchingSubscriptions(event);
            } catch (EventException e) {
                handleException("Matching subscriptions fetching error", e);
            }
View Full Code Here

     * @throws EventException event
     */
    private void processGetStatusRequest(MessageContext mc,
                                         ResponseMessageBuilder messageBuilder)
            throws AxisFault, EventException {
        Subscription subscription =
                SubscriptionMessageBuilder.createGetStatusMessage(mc);
        if (log.isDebugEnabled()) {
            log.debug("GetStatus request recived for SynapseSubscription ID : " +
                    subscription.getId());
        }
        subscription = subscriptionManager.getSubscription(subscription.getId());
        if (subscription != null) {
            if (log.isDebugEnabled()) {
                log.debug("Sending GetStatus responce for SynapseSubscription ID : " +
                        subscription.getId());
            }
            //send the responce
            SOAPEnvelope soapEnvelope = messageBuilder.genGetStatusResponse(subscription);
            dispatchResponse(soapEnvelope, EventingConstants.WSE_GET_STATUS_RESPONSE,
                    mc, false);
View Full Code Here


    public SynapseSubscription() {
        this.setId(UIDGenerator.generateURNString());
        this.setDeliveryMode(EventingConstants.WSE_DEFAULT_DELIVERY_MODE);
        SubscriptionData subscriptionData = new SubscriptionData();
        subscriptionData.setProperty(SynapseEventingConstants.STATIC_ENTRY, "false");
        this.setSubscriptionData(subscriptionData);
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.dataservices.core.engine.CallQueryGroup

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.