Package net.datacrow.core.db

Examples of net.datacrow.core.db.SelectQuery


     */
    public static List<DcObject> getChildren(String parentID, int childIdx, int[] fields) {
        DataFilter df = new DataFilter(childIdx);
        DcModule module = DcModules.get(childIdx);
        df.addEntry(new DataFilterEntry(DataFilterEntry._AND, childIdx, module.getParentReferenceFieldIndex(), Operator.EQUAL_TO, parentID));
        return new SelectQuery(df, null, fields).run();
    }
View Full Code Here


     * @return Either the pictures or an empty collection.
     */
    public static Collection<DcObject> getPictures(String parentID) {
        DataFilter df = new DataFilter(DcModules._PICTURE);
        df.addEntry(new DataFilterEntry(DcModules._PICTURE, Picture._A_OBJECTID, Operator.EQUAL_TO, parentID));
        return new SelectQuery(df, null, null).run();
    }
View Full Code Here

     * @see DataFilter
     * @param filter
     * @param fields
     */
    public static List<DcObject> get(DataFilter filter, int[] fields) {
        return new SelectQuery(filter, null, fields).run();
    }
View Full Code Here

TOP

Related Classes of net.datacrow.core.db.SelectQuery

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.