public interface ObjectMapper
| Modifier and Type | Method and Description |
|---|---|
String |
convertCamelCase(String n) |
String |
createCamelCase(String n,
boolean capitalize) |
List<Field> |
getAllFields(Class cls) |
String |
getCollectionName(Class cls) |
Field |
getField(Class cls,
String fld) |
String |
getFieldName(Class cls,
String field) |
List<String> |
getFields(Class o,
Class<? extends Annotation>... annotations) |
org.bson.types.ObjectId |
getId(Object o) |
Morphium |
getMorphium() |
NameProvider |
getNameProviderForClass(Class<?> cls)
get current name provider for class
|
<T> Class<? extends T> |
getRealClass(Class<? extends T> o)
de-Referencing class - handling for Lazy-Dereferencing und parital update
|
<T> T |
getRealObject(T o)
de-Referencing class - handling for Lazy-Dereferencing und parital update
|
Object |
getValue(Object o,
String fld) |
boolean |
isEntity(Object o) |
com.mongodb.DBObject |
marshall(Object o) |
void |
setMorphium(Morphium m) |
void |
setNameProviderForClass(Class<?> cls,
NameProvider np)
override settings vor name Provider from @Entity
|
void |
setValue(Object o,
Object value,
String fld) |
<T> T |
unmarshall(Class<? extends T> cls,
com.mongodb.DBObject o) |
com.mongodb.DBObject marshall(Object o)
<T> T unmarshall(Class<? extends T> cls, com.mongodb.DBObject o)
org.bson.types.ObjectId getId(Object o)
<T> T getRealObject(T o)
o - - the object to check (might be a proxy)=<T> Class<? extends T> getRealClass(Class<? extends T> o)
o - - class to look forList<String> getFields(Class o, Class<? extends Annotation>... annotations)
boolean isEntity(Object o)
Morphium getMorphium()
void setMorphium(Morphium m)
NameProvider getNameProviderForClass(Class<?> cls)
cls - - classvoid setNameProviderForClass(Class<?> cls, NameProvider np)
cls - - classnp - the name Provider to useCopyright © 2013. All Rights Reserved.