org.apache.cayenne.reflect
Class ListProperty
java.lang.Object
org.apache.cayenne.reflect.BaseProperty
org.apache.cayenne.reflect.BaseArcProperty
org.apache.cayenne.reflect.BaseToManyProperty
org.apache.cayenne.reflect.ListProperty
- All Implemented Interfaces:
- ArcProperty, Property, ToManyProperty
- Direct Known Subclasses:
- IndexedListProperty
public class ListProperty
- extends BaseToManyProperty
Provides access to a property implemented as a List Field.
- Since:
- 1.2
- Author:
- Andrus Adamchik
ListProperty
public ListProperty(ClassDescriptor owner,
ClassDescriptor targetDescriptor,
Accessor accessor,
String reverseName)
createCollectionValueHolder
protected ValueHolder createCollectionValueHolder(Object object)
throws PropertyException
- Creates a List for an object. Expects an object to be an instance of Persistent.
- Specified by:
createCollectionValueHolder
in class BaseToManyProperty
- Throws:
PropertyException
isFault
public boolean isFault(Object object)
- Description copied from interface:
ArcProperty
- Returns whether a target node connected to a given object is an unresolved fault.
- Specified by:
isFault
in interface ArcProperty
- Specified by:
isFault
in class BaseArcProperty
- Parameters:
object
- an object that is a source object of the relationship.
invalidate
public void invalidate(Object object)
- Description copied from interface:
ArcProperty
- Turns a property of an object into a fault.
Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.