Package oracle.jbo

Examples of oracle.jbo.ViewCriteria


    public QueryDescriptor.QueryMode getMode() {
        return mode;
    }

    public ViewCriteria toViewCriteria(final ViewObject vo) {
        final ViewCriteria retval = vo.createViewCriteria();
        retval.setCriteriaMode(ViewCriteria.CRITERIA_MODE_CACHE);
        retval.setConjunction(ConjunctionCriterion.Conjunction.OR == getConjunction() ?
                              ViewCriteriaComponent.VC_CONJ_OR : ViewCriteriaComponent.VC_CONJ_AND);
        for (Criterion crit : criteria) {
            if (crit instanceof AttributeCriterionImpl) {
                final AttributeCriterionImpl attrCrit = (AttributeCriterionImpl) crit;
                attrCrit.addViewCriteriaRow(retval, getConjunction());
View Full Code Here


        if (searchVals.equals(this.lastLookupVals)) {
            return lastLookupRow;
        }
        // Iterate through the ViewObject rows to find the lookup-row.
        final ViewObject vo = getTableModel().getViewOject();
        final ViewCriteria oldCriteria = vo.getViewCriteria();
        vo.applyViewCriteria(vo.createViewCriteria());
        Map<String, Object> retval = null;
        try {
            final RowSetIterator iter = vo.createRowSetIterator("__lookup__");
            iter.setRowValidation(false);
View Full Code Here

        // TODO: implement
        throw new UnsupportedOperationException("QueryDescriptorImpl.setCurrentCriterion");
    }

    public void performQuery() {
        final ViewCriteria vc = conjunctionCriterion.toViewCriteria(viewObject);
        viewObject.clearCache();
        viewObject.applyViewCriteria(vc);
        viewObject.executeQuery();
    }
View Full Code Here

TOP

Related Classes of oracle.jbo.ViewCriteria

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.