Package org.apache.cxf.jaxrs.ext.search.visitor

Examples of org.apache.cxf.jaxrs.ext.search.visitor.SBThreadLocalVisitorState


   
    @Test
    public void testSQL4WithTLStateAndSingleThread() throws SearchParseException {
        SearchCondition<Condition> filter = parser.parse("(name==test,level==18);(name==test1,level!=19)");
        SQLPrinterVisitor<Condition> visitor = new SQLPrinterVisitor<Condition>("table");
        visitor.setVisitorState(new SBThreadLocalVisitorState());
       
        filter.accept(visitor);
        String sql = visitor.getQuery();
        assertTrue(("SELECT * FROM table WHERE ((name = 'test') OR (level = '18'))"
                   + " AND ((name = 'test1') OR (level <> '19'))").equals(sql)
View Full Code Here


   
    @Test
    public void testSQL4WithTLStateAndSingleThread() throws SearchParseException {
        SearchCondition<Condition> filter = parser.parse("(name==test,level==18);(name==test1,level!=19)");
        SQLPrinterVisitor<Condition> visitor = new SQLPrinterVisitor<Condition>("table");
        visitor.setVisitorState(new SBThreadLocalVisitorState());
       
        filter.accept(visitor);
        String sql = visitor.getQuery();
        assertTrue(("SELECT * FROM table WHERE ((name = 'test') OR (level = '18'))"
                   + " AND ((name = 'test1') OR (level <> '19'))").equals(sql)
View Full Code Here

   
    @Test
    public void testSQL4WithTLStateAndSingleThread() throws SearchParseException {
        SearchCondition<Condition> filter = parser.parse("(name==test,level==18);(name==test1,level!=19)");
        SQLPrinterVisitor<Condition> visitor = new SQLPrinterVisitor<Condition>("table");
        visitor.setVisitorState(new SBThreadLocalVisitorState());
       
        filter.accept(visitor);
        String sql = visitor.getQuery();
        assertTrue(("SELECT * FROM table WHERE ((name = 'test') OR (level = '18'))"
                   + " AND ((name = 'test1') OR (level <> '19'))").equals(sql)
View Full Code Here

TOP

Related Classes of org.apache.cxf.jaxrs.ext.search.visitor.SBThreadLocalVisitorState

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.