|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataMapper<T>
Interface that allows any object to be exposed as DataObject
instances.
The implementation is guaranteed to work for DataObject instances as well.
Method Summary | |
---|---|
T |
create(Type type)
|
Type |
getCorrespondingType(java.lang.Class clazz)
|
java.util.Iterator<? extends T> |
getObjects(T object,
Property property)
|
java.util.Collection<T> |
getProperties(java.util.Collection<T> object,
Property bulkProperty,
SnapshotDefinition def)
Return the corresponding values for this bulk property for the given object. |
java.lang.Object |
getProperty(T object,
Property property)
|
Type |
getType(T object)
|
boolean |
isBulkProperty(java.lang.Class clazz,
Property property)
|
boolean |
isProxy(T object)
|
T |
newProxy(Type type,
java.lang.Object identity)
Create a new proxy. |
void |
setProperty(T object,
Property property,
java.lang.Object value)
Assigns the given value to the property of the object. |
void |
setUnavailable(T object,
Property property)
Marks a property as unavailable ( PartialDataObject#isAvailable(Property)} . |
Method Detail |
---|
Type getType(T object)
throws
- IllegalArgumentException
in case no
corresponding sdo type can be found.Type getCorrespondingType(java.lang.Class clazz)
throws
- IllegalArgumentException
in case no
corresponding sdo type can be found.
TODO 1 mechanism for indication no type was foundjava.util.Iterator<? extends T> getObjects(T object, Property property)
java.lang.Object getProperty(T object, Property property)
void setProperty(T object, Property property, java.lang.Object value)
boolean isBulkProperty(java.lang.Class clazz, Property property)
getProperties(Collection, Property, SnapshotDefinition)
to allow more efficient retrieval.java.util.Collection<T> getProperties(java.util.Collection<T> object, Property bulkProperty, SnapshotDefinition def)
void setUnavailable(T object, Property property)
PartialDataObject#isAvailable(Property)}
.
boolean isProxy(T object)
T create(Type type)
getCorrespondingType(Class)
T newProxy(Type type, java.lang.Object identity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |