Examples of QueryType


Examples of com.mysema.query.annotations.QueryType

    }

    @Nullable
    protected Type getTypeOverride(Type propertyType, AnnotatedElement annotated) {
        if (annotated.isAnnotationPresent(QueryType.class)) {
            QueryType queryType = annotated.getAnnotation(QueryType.class);
            if (queryType.value().equals(PropertyType.NONE)) {
                return null;
            }
            return propertyType.as(TypeCategory.valueOf(queryType.value().name()));
        } else {
            return propertyType;
        }
    }
View Full Code Here

Examples of com.mysema.query.annotations.QueryType

    }

    private Type getType(VariableElement element) {
        Type rv = typeFactory.getType(element.asType(), true);
        if (element.getAnnotation(QueryType.class) != null) {
            QueryType qt = element.getAnnotation(QueryType.class);
            if (qt.value() != PropertyType.NONE) {
                TypeCategory typeCategory = TypeCategory.valueOf(qt.value().name());
                rv = rv.as(typeCategory);
            }
        }
        return rv;
    }
View Full Code Here

Examples of com.nearinfinity.honeycomb.mysql.gen.QueryType

            endScan();
        }
        checkNotNull(indexKeys, "Index scan requires non-null key");

        QueryKey key = QueryKey.deserialize(indexKeys);
        QueryType queryType = key.getQueryType();
        switch (queryType) {
            case EXACT_KEY:
                currentScanner = table.indexScanExact(key);
                break;
            case AFTER_KEY:
View Full Code Here

Examples of com.netflix.bdp.s3mper.alert.impl.AbstractMessage.QueryType

       
        message.setGenieId(conf.get("genie.job.id"));
        message.setDataovenId(conf.get("dataoven.job.id"));
        String queryId = conf.get("hive.query.id");
       
        QueryType queryType = QueryType.Unknown;
       
        if(queryId != null) {
            queryType = QueryType.Hive;
            message.setLogFile(conf.get("hive.log.file"));
        } else {
View Full Code Here

Examples of com.salas.bb.domain.querytypes.QueryType

            "(FEEDID, TITLE, QUERYTYPE, KEYWORDS, DEDUP_ENABLED, DEDUP_FROM, DEDUP_TO) " +
            "VALUES (?, ?, ?, ?, ?, ? ,?)");

        try
        {
            QueryType queryType = queryFeed.getQueryType();
            int type = queryType == null ? -1 : queryType.getType();

            stmt.setLong(1, feedId);
            stmt.setString(2, queryFeed.getBaseTitle());
            stmt.setInt(3, type);
            stmt.setString(4, queryFeed.getParameter());
View Full Code Here

Examples of com.salas.bb.domain.querytypes.QueryType

            "TITLE=?, QUERYTYPE=?, KEYWORDS=?, DEDUP_ENABLED=?, DEDUP_FROM=?, DEDUP_TO=? " +
            "WHERE FEEDID=?");

        try
        {
            QueryType queryType = feed.getQueryType();
            int type = queryType == null ? -1 : queryType.getType();

            stmt.setString(1, feed.getBaseTitle());
            stmt.setInt(2, type);
            stmt.setString(3, feed.getParameter());
            stmt.setBoolean(4, feed.isDedupEnabled());
View Full Code Here

Examples of com.salas.bb.domain.querytypes.QueryType

            IFeed ifeed = feeds.get(i);
            if (ifeed instanceof QueryFeed)
            {
                QueryFeed qfeed = (QueryFeed)ifeed;

                QueryType qfeedType = qfeed.getQueryType();
                String qfeedParameter = qfeed.getParameter();

                if (qfeedType != null && type.getType() == qfeedType.getType() &&
                    ((parameter == null && qfeedParameter == null) ||
                     (parameter != null && parameter.equals(qfeedParameter)))) feed = qfeed;
            }
        }
View Full Code Here

Examples of com.salas.bb.domain.querytypes.QueryType

        int viewMode = aQueryType == null
            ? IFeedDisplayConstants.MODE_BRIEF : aQueryType.getPreferredViewMode();
        setCustomViewMode(viewMode);

        String oldTitle = getTitle();
        QueryType old = queryType;
        queryType = aQueryType;

        renderTitle();

        firePropertyChanged(PROP_QUERY_TYPE, old, queryType, true, false);
View Full Code Here

Examples of com.salas.bb.domain.querytypes.QueryType

        try
        {
            if (rs.next())
            {
                int type = rs.getInt(2);
                QueryType queryType = QueryType.getQueryType(type);

                aFeed.setBaseTitle(rs.getString(1));
                aFeed.setQueryType(queryType);
                aFeed.setParameter(rs.getString(3));
                aFeed.setDedupEnabled(rs.getBoolean(4));
View Full Code Here

Examples of com.salas.bb.domain.querytypes.QueryType

            if (aFeed instanceof QueryFeed)
            {
                QueryFeed patFeed = (QueryFeed)aPatternFeed;
                QueryFeed matFeed = (QueryFeed)aFeed;

                QueryType patType = patFeed.getQueryType();
                QueryType matType = matFeed.getQueryType();

                String patParam = patFeed.getParameter();
                String matParam = matFeed.getParameter();

                similar = patType == matType && patParam.equals(matParam);
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.