Package org.rhq.enterprise.server.search

Examples of org.rhq.enterprise.server.search.SearchExpressionException


        return false; // all contexts are assumed string, unless otherwise stated
    }

    public List<String> getParameters(String context, String filter) {
        if (getParameterizedContexts().contains(context) == false) {
            throw new SearchExpressionException("context[" + context
                + "] is not parameterized, no completions available");
        }
        return Collections.emptyList();
    }
View Full Code Here


            operator == RHQLComparisonOperator.NOT_EQUALS || //
            operator == RHQLComparisonOperator.NOT_EQUALS_STRICT) {
            return fragment + operator.getDefaultTranslation() + getEnum(enumClass, value, useOrdinal);

        } else {
            throw new SearchExpressionException("Unsupported operator " + operator);
        }
    }
View Full Code Here

                } else {
                    return quote(nextEnum.name());
                }
            }
        }
        throw new SearchExpressionException("No enum of type '" + enumClass.getSimpleName() + "' with name matching '"
            + value + "'");
    }
View Full Code Here

                    + "   AND " + getJPQLForString("definition.name", RHQLComparisonOperator.EQUALS, param) //
                    + "   AND " + getJPQLForString("simple.stringValue", op, filter));

        } else {
            if (param == null) {
                throw new SearchExpressionException("No search fragment available for " + path);
            } else {
                throw new SearchExpressionException("No search fragment available for " + path + "[" + param + "]");
            }
        }
    }
View Full Code Here

            return new SearchFragment(SearchFragment.Type.WHERE_CLAUSE, //
                getJPQLForString(alias + ".name", op, filter));

        } else {
            if (param == null) {
                throw new SearchExpressionException("No search fragment available for " + path);
            } else {
                throw new SearchExpressionException("No search fragment available for " + path + "[" + param + "]");
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.search.SearchExpressionException

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.