You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2012/10/17 22:31:18 UTC
svn commit: r1399420 -
/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyDescriptor.java
Author: aadamchik
Date: Wed Oct 17 20:31:18 2012
New Revision: 1399420
URL: http://svn.apache.org/viewvc?rev=1399420&view=rev
Log:
duplicating super methods to avoid a bunch of deprecation warnings
Modified:
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyDescriptor.java
Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyDescriptor.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyDescriptor.java?rev=1399420&r1=1399419&r2=1399420&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyDescriptor.java (original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyDescriptor.java Wed Oct 17 20:31:18 2012
@@ -20,11 +20,59 @@
package org.apache.cayenne.reflect;
/**
- * Defines bean property API used by Cayenne to access object data, do faulting and graph
- * maintenance tasks.
+ * Defines bean property API used by Cayenne to access object data, do faulting
+ * and graph maintenance tasks.
*
* @since 3.2
*/
public interface PropertyDescriptor extends Property {
+ /**
+ * Returns property name.
+ */
+ String getName();
+
+ /**
+ * Returns a property value of an object without disturbing the object fault
+ * status.
+ */
+ Object readPropertyDirectly(Object object) throws PropertyException;
+
+ /**
+ * Returns a property value, inflating unresolved object if need.
+ */
+ Object readProperty(Object object) throws PropertyException;
+
+ /**
+ * Sets a property value of an object without disturbing the object fault
+ * status. Old value of the property is specified as a hint and can be
+ * ignored by the property implementor.
+ */
+ void writePropertyDirectly(Object object, Object oldValue, Object newValue)
+ throws PropertyException;
+
+ /**
+ * Sets a property value, inflating unresolved object if need. Old value of
+ * the property is specified as a hint and can be ignored by the property
+ * implementor.
+ */
+ void writeProperty(Object object, Object oldValue, Object newValue)
+ throws PropertyException;
+
+ /**
+ * A visitor accept method.
+ *
+ * @return a status returned by the corresponding callback method of the
+ * visitor. It serves as an indication of whether peer properties
+ * processing is still needed.
+ */
+ boolean visit(PropertyVisitor visitor);
+
+ /**
+ * If a property is implemented as a ValueHolder, this operation would
+ * create an unfaulted value holder and inject it into the object, if an
+ * object doesn't have it set yet.
+ */
+ void injectValueHolder(Object object) throws PropertyException;
+
}