Package org.apache.cayenne.property

Examples of org.apache.cayenne.property.Property


            // get target as local object
            Object target = targetNodeId != null ? context.localObject(
                    (ObjectId) targetNodeId,
                    null) : null;

            Property p = propertyForId(nodeId, arcId.toString());
            if (p instanceof CollectionProperty) {
                ((CollectionProperty) p).addTarget(source, target, false);
            }
            else {
                ((SingleObjectArcProperty) p).setTarget(source, target, false);
View Full Code Here


        Persistent source = (Persistent) context.getGraphManager().getNode(nodeId);
        if (source != null && source.getPersistenceState() != PersistenceState.HOLLOW) {

            Object target = context.localObject((ObjectId) targetNodeId, null);

            Property p = propertyForId(nodeId, arcId.toString());
            if (p instanceof CollectionProperty) {
                ((CollectionProperty) p).removeTarget(source, target, false);
            }
            else {
                ((SingleObjectArcProperty) p).setTarget(source, null, false);
View Full Code Here

TOP

Related Classes of org.apache.cayenne.property.Property

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.