Examples of QueryType


Examples of net.opengis.wfs.QueryType

    Operation request(QName... names) {
        Service service = getServiceDescriptor10();
        GetFeatureType type = WfsFactory.eINSTANCE.createGetFeatureType();
        type.setBaseUrl("http://localhost:8080/geoserver");
        for (QName name : names) {
            QueryType queryType = WfsFactory.eINSTANCE.createQueryType();
            queryType.setTypeName(Collections.singletonList(name));
            type.getQuery().add(queryType);
        }
        Operation request = new Operation("wfs", service, null, new Object[] { type });
        return request;
    }
View Full Code Here

Examples of net.opengis.wfs20.QueryType

    @Override
    protected void setProperty(EObject eObject, String property, Object value, boolean lax) {
        super.setProperty(eObject, property, value, lax);
        if (!lax) {
            if ("typeNames".equalsIgnoreCase(property)) {
                QueryType q = (QueryType)eObject;
               
                //turn into list of qname
                List qNames = new ArrayList();
                for (Object s : q.getTypeNames()) {
                    try {
                        qNames.add(new XSQNameBinding(namespaceContext).parse(null, s));
                    }
                    catch (Exception e) {
                        throw new RuntimeException(e);
                    }
                }
                q.getTypeNames().clear();
                q.getTypeNames().addAll(qNames);
            }
        }
    }
View Full Code Here

Examples of net.sf.oqt.model.QueryType

            e.printStackTrace();
        } catch (NoSuchFieldException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        final QueryType type = QueryType.getTypeFromJPQL(queryVO.getJPQLQuery());
        try {
            if (type.equals(QueryType.SELECT)) {
                q.getResultList();
            } else {
                em.getTransaction().begin();
                q.executeUpdate();
                em.getTransaction().rollback();
View Full Code Here

Examples of net.sf.samtools.BAMFileReader.QueryType

  CloseableIterator<SAMRecord> query(String sequence, int start, int end,
      boolean contained) {
    CloseableIterator<SAMRecord> iterator = queryAlignmentStart(sequence,
        start);

    QueryType qt = QueryType.CONTAINED;
    if (!contained)
      qt = QueryType.OVERLAPPING;
    if (end == -1)
      qt = QueryType.STARTING_AT;
    return new BAMQueryFilteringIterator(iterator, sequence, start, end, qt);
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.query.QueryType

    public void performAction(ActionEvent e) {
        createQuery();
    }

    protected void createQuery() {
        new QueryType(getProjectController(),getProjectController().getCurrentDataMap()).startupAction();
    }
View Full Code Here

Examples of org.apache.drill.exec.proto.UserBitShared.QueryType

  public int submitQuery(DrillClient client, String plan, String type, String format, int width) throws Exception {

    PrintingResultsListener listener;

    String[] queries;
    QueryType queryType;
    type = type.toLowerCase();
    switch(type) {
      case "sql":
        queryType = QueryType.SQL;
        queries = plan.trim().split(";");
View Full Code Here

Examples of org.apache.marmotta.platform.sparql.api.sparql.QueryType

              } else {
                return Response.status(Response.Status.BAD_REQUEST).entity("no SPARQL query specified").build();
              }
        } else {
          //query duck typing
            QueryType queryType = sparqlService.getQueryType(QueryLanguage.SPARQL, query);
            List<ContentType> acceptedTypes;
            List<ContentType> offeredTypes;
            if (resultType != null) {
              acceptedTypes = MarmottaHttpUtils.parseAcceptHeader(resultType);
            } else {
View Full Code Here

Examples of org.gstreamer.QueryType

                put(QueryType.SEEKING, SeekingQuery.class);
                put(QueryType.SEGMENT, SegmentQuery.class);
            }};
            public static Class<? extends NativeObject> subtypeFor(Pointer ptr) {
                GstQueryAPI.QueryStruct struct = new GstQueryAPI.QueryStruct(ptr);
                QueryType type = QueryType.valueOf((Integer) struct.readField("type"));
                Class<? extends Query> queryClass = typeMap.get(type);
                return queryClass != null ? queryClass : Query.class;
            }
View Full Code Here

Examples of org.mule.module.db.internal.domain.query.QueryType

    @Override
    public QueryTemplate parse(String sql)
    {
        sql = sql.trim();

        QueryType queryType = getQueryType(sql);

        return doParse(sql, queryType);
    }
View Full Code Here

Examples of org.mule.module.db.internal.domain.query.QueryType

        return doParse(sql, queryType);
    }

    private QueryType getQueryType(String sql)
    {
        QueryType queryType;

        sql = sql.toUpperCase();

        if (isSelect(sql))
        {
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.