Examples of addInto()


Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

                descriptor.getObjectBuilder().buildAttributesIntoObject(arrayValue, nestedRow, query, null, false);
            } else if (isNestedStructure && (arrayValue instanceof Array)){
                arrayValue = buildContainerFromArray((Array)arrayValue, (ObjectRelationalDatabaseField)nestedType, session);
            }            
            
            cp.addInto(arrayValue, container, session);
        }
        return container;
     }

    /**
 
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

        for (int index = 0; index < size; index++) {
            AbstractRecord databaseRow = (AbstractRecord)databaseRows.get(index);
            // PERF: 1-m joining nulls out duplicate rows.
            if (databaseRow != null) {
                Object domainObject = buildObject(query, databaseRow, joinManager);
                policy.addInto(domainObject, domainObjects, session);
            }
        }
        return domainObjects;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

            }

            if (collectionContentType != null) {
                attributeValue = XMLBinaryDataHelper.getXMLBinaryDataHelper().convertObject(attributeValue, collectionContentType, executionSession);
            }
            cp.addInto(attributeValue, result, query.getSession());
            //return attributeValue;
        }
        return result;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

        Vector changes = ((EISOrderedCollectionChangeRecord)changeRecord).getNewCollection();
        Object targetCollection = cp.containerInstance(changes.size());

        for (Enumeration stream = changes.elements(); stream.hasMoreElements();) {
            Object targetElement = this.buildAddedElementFromChangeSet(stream.nextElement(), mergeManager);
            cp.addInto(targetElement, targetCollection, session);
        }

        // reset the attribute to allow for set method to re-morph changes if the collection is not being stored directly
        this.setRealAttributeValueInObject(target, targetCollection);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

                }
            }

            for (Enumeration stream = adds.elements(); stream.hasMoreElements();) {
                Object addElement = this.buildAddedElementFromChangeSet(stream.nextElement(), mergeManager);
                cp.addInto(addElement, targetCollection, session);
            }

            for (Enumeration stream = changedMapKeys.elements(); stream.hasMoreElements();) {
                Object changedMapKeyElement = this.buildAddedElementFromChangeSet(stream.nextElement(), mergeManager);
                Object originalElement = ((UnitOfWorkImpl)session).getOriginalVersionOfObject(changedMapKeyElement);
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

            for (Enumeration stream = changedMapKeys.elements(); stream.hasMoreElements();) {
                Object changedMapKeyElement = this.buildAddedElementFromChangeSet(stream.nextElement(), mergeManager);
                Object originalElement = ((UnitOfWorkImpl)session).getOriginalVersionOfObject(changedMapKeyElement);
                cp.removeFrom(originalElement, targetCollection, session);
                cp.addInto(changedMapKeyElement, targetCollection, session);
            }
        }

        // reset the attribute to allow for set method to re-morph changes if the collection is not being stored directly
        this.setRealAttributeValueInObject(target, targetCollection);
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

        Object sourceCollection = this.getRealCollectionAttributeValueFromObject(source, session);
        Object targetCollection = cp.containerInstance(cp.sizeFor(sourceCollection));

        for (Object iter = cp.iteratorFor(sourceCollection); cp.hasNext(iter);) {
            Object targetElement = this.buildElementFromElement(cp.next(iter, session), mergeManager);
            cp.addInto(targetElement, targetCollection, session);
        }

        // reset the attribute to allow for set method to re-morph changes if the collection is not being stored directly
        this.setRealAttributeValueInObject(target, targetCollection);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

                    element = ((XMLConverter) getConverter()).convertDataValueToObjectValue(element, executionSession, ((XMLRecord) nestedRow).getUnmarshaller());
                } else {
                    element = getConverter().convertDataValueToObjectValue(element, executionSession);
                }
            }
            cp.addInto(element, result, sourceQuery.getSession());
            if(null != containerAccessor) {
                containerAccessor.setAttributeValueInObject(element, ((DOMRecord)nestedRow).getOwningObject());
            }
        }
        return result;
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addInto()

                    element = ((XMLConverter) getValueConverter()).convertDataValueToObjectValue(element, executionSession, ((XMLRecord) row).getUnmarshaller());
                } else {
                    element = getValueConverter().convertDataValueToObjectValue(element, executionSession);
                }
            }
            cp.addInto(element, result, sourceQuery.getSession());
        }
        return result;
    }

    /**
 
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.DirectMapContainerPolicy.addInto()

            if (null == localName) {
                localName = next.getName();
            }
            QName key = new QName(next.getNamespaceURI(), localName);
            String value = next.getValue();
            cp.addInto(key, value, container, session);
        }
        return container;
    }

    protected XMLDescriptor getDescriptor(XMLRecord xmlRecord, AbstractSession session) throws XMLMarshalException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.