Package org.apache.cayenne.reflect

Examples of org.apache.cayenne.reflect.ClassDescriptor.visitProperties()


        injectInitialValue(object);

        // now we need to find all arc changes, inject missing value holders and pull in
        // all transient connected objects

        descriptor.visitProperties(new PropertyVisitor() {

            public boolean visitToMany(ToManyProperty property) {
                property.injectValueHolder(persistent);

                if (!property.isFault(persistent)) {
View Full Code Here


                    lastProcessed[0] = property;
                    return true;
                }
            };

            descriptor.visitProperties(visitor);
        }

    }
}
View Full Code Here

                    lastProcessed[0] = property;
                    return true;
                }
            };

            descriptor.visitProperties(visitor);
        }

    }

    static void assertPropertiesAreInOrder(Property o1,
View Full Code Here

                    property.invalidate(object);
                    return true;
                }
            };

            descriptor.visitProperties(arcInvalidator);
            object.setPersistenceState(PersistenceState.HOLLOW);
           
            // remove cached changes
            graphManager.changeLog.unregisterNode(id);
            graphManager.stateLog.unregisterNode(id);
View Full Code Here

                errorMessage.append(" Declared properties are: ");

                // Grab each of the declared properties.
                final List<String> properties = new ArrayList<String>();
                classDescriptor.visitProperties(new PropertyVisitor() {

                    public boolean visitAttribute(final AttributeProperty property) {
                        properties.add(property.getName());

                        return true;
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.