|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.agfa.hap.sdo.mapper.JavaBeanMapper
public class JavaBeanMapper
DataMapper that uses Java Bean conventions to access data on java classes.
This mapper assumes that for each Property
there are appropriately named
accessors defined on the corresponding class.
Each Type
is mapped to the java class with the same name. It is also possible
to register a class as corresponding to a type.
Constructor Summary | |
---|---|
JavaBeanMapper(TypeMapper typeMapper)
|
Method Summary | |
---|---|
java.lang.Object |
create(Type type)
|
Type |
getCorrespondingType(java.lang.Class clazz)
|
java.util.Iterator<?> |
getObjects(java.lang.Object object,
Property property)
|
java.util.Collection<java.lang.Object> |
getProperties(java.util.Collection<java.lang.Object> objects,
Property bulkProperty,
SnapshotDefinition def)
Return the corresponding values for this bulk property for the given object. |
java.lang.Object |
getProperty(java.lang.Object object,
Property property)
|
Type |
getType(java.lang.Object object)
|
TypeMapper |
getTypeMapper()
|
boolean |
isBulkProperty(java.lang.Class clazz,
Property property)
|
boolean |
isProxy(java.lang.Object instance)
|
java.lang.Object |
newProxy(Type type,
java.lang.Object identity)
Create a new proxy. |
protected void |
setOpposite(java.lang.Object object,
Property property,
java.lang.Object value)
|
void |
setProperty(java.lang.Object object,
Property property,
java.lang.Object value)
Assigns the given value to the property of the object. |
void |
setUnavailable(java.lang.Object object,
Property property)
Marks a property as unavailable ( PartialDataObject#isAvailable(Property)} . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaBeanMapper(TypeMapper typeMapper)
Method Detail |
---|
public java.util.Iterator<?> getObjects(java.lang.Object object, Property property)
getObjects
in interface DataMapper<java.lang.Object>
public java.lang.Object getProperty(java.lang.Object object, Property property)
getProperty
in interface DataMapper<java.lang.Object>
public void setProperty(java.lang.Object object, Property property, java.lang.Object value)
DataMapper
setProperty
in interface DataMapper<java.lang.Object>
protected void setOpposite(java.lang.Object object, Property property, java.lang.Object value)
public void setUnavailable(java.lang.Object object, Property property)
DataMapper
PartialDataObject#isAvailable(Property)}
.
setUnavailable
in interface DataMapper<java.lang.Object>
public Type getType(java.lang.Object object)
getType
in interface DataMapper<java.lang.Object>
public Type getCorrespondingType(java.lang.Class clazz)
getCorrespondingType
in interface DataMapper<java.lang.Object>
public TypeMapper getTypeMapper()
public java.lang.Object create(Type type)
create
in interface DataMapper<java.lang.Object>
DataMapper.getCorrespondingType(Class)
public java.lang.Object newProxy(Type type, java.lang.Object identity)
DataMapper
newProxy
in interface DataMapper<java.lang.Object>
public boolean isProxy(java.lang.Object instance)
isProxy
in interface DataMapper<java.lang.Object>
public java.util.Collection<java.lang.Object> getProperties(java.util.Collection<java.lang.Object> objects, Property bulkProperty, SnapshotDefinition def)
DataMapper
getProperties
in interface DataMapper<java.lang.Object>
public boolean isBulkProperty(java.lang.Class clazz, Property property)
isBulkProperty
in interface DataMapper<java.lang.Object>
DataMapper.getProperties(Collection, Property, SnapshotDefinition)
to allow more efficient retrieval.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |