Package org.apache.ojb.broker.query

Examples of org.apache.ojb.broker.query.ReportQueryByMtoNCriteria


        // BRJ: we have to preserve indirection table !
        if (aQuery instanceof MtoNQuery)
        {
            MtoNQuery                 mnQuery       = (MtoNQuery)aQuery;
            ReportQueryByMtoNCriteria mnReportQuery = new ReportQueryByMtoNCriteria(searchClass, columns, countCrit);

            mnReportQuery.setIndirectionTable(mnQuery.getIndirectionTable());
            countQuery = mnReportQuery;
        }
        else
        {
            countQuery = new ReportQueryByCriteria(searchClass, columns, countCrit);
View Full Code Here


        for (int i = 0; i < itemPkFields.length; i++)
        {
            jdbcTypes[pkFields.length + i] = itemPkFields[i].getJdbcType().getType();
        }

        ReportQueryByMtoNCriteria q = new ReportQueryByMtoNCriteria(getItemClassDescriptor().getClassOfObject(), cols,
                crit, false);
        q.setIndirectionTable(getCollectionDescriptor().getIndirectionTable());
        q.setJdbcTypes(jdbcTypes);

        CollectionDescriptor cds = getCollectionDescriptor();
        //check if collection must be ordered
        if (!cds.getOrderBy().isEmpty())
        {
            Iterator iter = cds.getOrderBy().iterator();
            while (iter.hasNext())
            {
                q.addOrderBy((FieldHelper) iter.next());
            }
        }
       
        return q;
    }
View Full Code Here

        // BRJ: we have to preserve indirection table !
        if(aQuery instanceof MtoNQuery)
        {
            MtoNQuery mnQuery = (MtoNQuery) aQuery;
            ReportQueryByMtoNCriteria mnReportQuery = new ReportQueryByMtoNCriteria(searchClass,
                    columns, countCrit);
            mnReportQuery.setIndirectionTable(mnQuery.getIndirectionTable());

            countQuery = mnReportQuery;
        }
        else
        {
View Full Code Here

        for (int i = 0; i < itemPkFields.length; i++)
        {
            jdbcTypes[pkFields.length + i] = itemPkFields[i].getJdbcType().getType();
        }

        ReportQueryByMtoNCriteria q = new ReportQueryByMtoNCriteria(getItemClassDescriptor().getClassOfObject(), cols,
                crit, false);
        q.setIndirectionTable(getCollectionDescriptor().getIndirectionTable());
        q.setJdbcTypes(jdbcTypes);

        return q;
    }
View Full Code Here

        // BRJ: we have to preserve indirection table !
        if(aQuery instanceof MtoNQuery)
        {
            MtoNQuery mnQuery = (MtoNQuery) aQuery;
            ReportQueryByMtoNCriteria mnReportQuery = new ReportQueryByMtoNCriteria(searchClass,
                    columns, countCrit);
            mnReportQuery.setIndirectionTable(mnQuery.getIndirectionTable());

            countQuery = mnReportQuery;
        }
        else
        {
View Full Code Here

        // BRJ: we have to preserve indirection table !
        if(aQuery instanceof MtoNQuery)
        {
            MtoNQuery mnQuery = (MtoNQuery) aQuery;
            ReportQueryByMtoNCriteria mnReportQuery = new ReportQueryByMtoNCriteria(searchClass,
                    columns, countCrit);
            mnReportQuery.setIndirectionTable(mnQuery.getIndirectionTable());

            countQuery = mnReportQuery;
        }
        else
        {
View Full Code Here

        for (int i = 0; i < itemPkFields.length; i++)
        {
            jdbcTypes[pkFields.length + i] = itemPkFields[i].getJdbcType().getType();
        }

        ReportQueryByMtoNCriteria q = new ReportQueryByMtoNCriteria(getItemClassDescriptor().getClassOfObject(), cols,
                crit, false);
        q.setIndirectionTable(getCollectionDescriptor().getIndirectionTable());
        q.setJdbcTypes(jdbcTypes);

        return q;
    }
View Full Code Here

        // BRJ: we have to preserve indirection table !
        if(aQuery instanceof MtoNQuery)
        {
            MtoNQuery mnQuery = (MtoNQuery) aQuery;
            ReportQueryByMtoNCriteria mnReportQuery = new ReportQueryByMtoNCriteria(searchClass,
                    columns, countCrit);
            mnReportQuery.setIndirectionTable(mnQuery.getIndirectionTable());

            countQuery = mnReportQuery;
        }
        else
        {
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.query.ReportQueryByMtoNCriteria

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.