Package org.zanata.util

Examples of org.zanata.util.QueryBuilder


        String searchCondition = buildSearchCondition();
        String stateCondition = buildStateCondition();
        String otherSourceCondition = buildSourceConditionsOtherThanSearch();
        String otherTargetCondition = buildTargetConditionsOtherThanSearch();

        QueryBuilder query =
                QueryBuilder
                        .select(selectStatement)
                        .from("HTextFlow tf")
                        .leftJoin("tf.targets tfts")
                        .with(eq("tfts.index", Locale.placeHolder()))
                        .where(and(obsoleteCondition, docIdCondition,
                                searchCondition, stateCondition,
                                otherSourceCondition, otherTargetCondition))
                        .orderBy("tf.pos");
        return query.toQueryString();
    }
View Full Code Here

TOP

Related Classes of org.zanata.util.QueryBuilder

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.