Package com.salas.bb.domain.querytypes

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


            "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

            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

        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

        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

            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

     */
    public static QueryOPMLFeed convertToOPML(QueryFeed aFeed)
    {
        QueryOPMLFeed opmlFeed = null;

        QueryType qt = aFeed.getQueryType();
        if (qt != null)
        {
            int queryType = qt.getType();
            String title = aFeed.getBaseTitle();
            String queryParam = aFeed.getParameter();
            URL url = aFeed.getXmlURL();
            String xmlURL = url == null ? null : url.toString();
            String readArticlesKeys = aFeed.getReadArticlesKeys();
View Full Code Here

        QueryFeedPropertiesDialog dialog =
            new QueryFeedPropertiesDialog(feed, controller.getMainFrame());

        // Read-in the properties
        String title = feed.getBaseTitle();
        QueryType queryType = feed.getQueryType();
        int purgeLimit = feed.getPurgeLimit();
        String parameter = feed.getParameter();

        boolean dedupEnabled = feed.isDedupEnabled();
        int dedupFrom = feed.getDedupFrom();
View Full Code Here

        if (msg == null)
        {
            if (selectedSource instanceof QueryType)
            {
                QueryType queryType = (QueryType)selectedSource;
                String queryParam = getFeedParameter();
                msg = validateQueryFeedData(queryType, queryParam, articlesLimit, removeDuplicates, maxDupWords);
            } else
            {
                msg = validateSearchFeedData(query, removeDuplicates, maxDupWords);
View Full Code Here

            ImageIcon icon;
            String text;

            if (value instanceof QueryType)
            {
                QueryType type = (QueryType)value;

                String key = type.getIconKey();
                icon = key != null ? IconSource.getIcon(key) : type.getIcon();
                text = type.getName();
            } else
            {
                icon = IconSource.getIcon(ResourceID.ICON_SEARCHFEED_MYFEEDS);
                text = value.toString();
            }
View Full Code Here

TOP

Related Classes of com.salas.bb.domain.querytypes.QueryType

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.