Package oracle.jbo

Examples of oracle.jbo.Row


        try {
            final RowSetIterator iter = vo.createRowSetIterator("__lookup__");
            iter.setRowValidation(false);
            try {
                while (iter.hasNext()) {
                    final Row row = iter.next();
                    boolean isLookup = true;
                    // Compare the values of all the lookup attributes.
                    for (String tableAttrName : lookups.keySet()) {
                        final Object rowVal = row.getAttribute(tableAttrName);
                        final Object bindingVal = searchVals.get(tableAttrName);
                        if (!new EqualsBuilder().append(rowVal,
                                                        bindingVal).isEquals()) { // Difference found, we stop the compare.
                            isLookup = false;
                            break;
View Full Code Here


        public CollectionModelImpl(final ViewObject vo) {
            this.viewObject = vo;
        }

        public Object getRowKey() {
            final Row row = viewObject.getCurrentRow();
            return row == null ? null : row.getKey();
        }
View Full Code Here

            return viewObject.getRowCount();
        }

        public Object getRowData() {
            // Return a map to be used in EL expressions to acces the attributes of the row.
            final Row row = viewObject.getCurrentRow();
            return new AbstractMap<String, Object>() {
                public Set<Map.Entry<String, Object>> entrySet() {
                    throw new UnsupportedOperationException("CollectionModelImpl.getRowData.entrySet not supported.");
                }

                @Override
                public Object get(final Object key) {
                    return row.getAttribute(key.toString());
                }
            };
        }
View Full Code Here

TOP

Related Classes of oracle.jbo.Row

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.