public class MorphiaSerializer extends MongodbSerializer
MorphiaSerializer
extends MongodbSerializer
with Morphia specific annotation handlingConstructor and Description |
---|
MorphiaSerializer(org.mongodb.morphia.Morphia morphia) |
Modifier and Type | Method and Description |
---|---|
protected com.mongodb.DBRef |
asReference(java.lang.Object constant) |
protected com.mongodb.DBRef |
asReferenceKey(java.lang.Class<?> entity,
java.lang.Object id) |
protected java.lang.String |
getKeyForPath(Path<?> expr,
PathMetadata metadata) |
protected boolean |
isId(Path<?> arg) |
protected boolean |
isImplicitObjectIdConversion() |
protected boolean |
isReference(Path<?> arg) |
java.lang.Object |
visit(Constant<?> expr,
java.lang.Void context)
Visit a Constant instance with the given context
|
public java.lang.Object visit(Constant<?> expr, java.lang.Void context)
Visitor
visit
in interface Visitor<java.lang.Object,java.lang.Void>
visit
in class MongodbSerializer
expr
- expression to visitcontext
- context of the visit or null, if not usedprotected java.lang.String getKeyForPath(Path<?> expr, PathMetadata metadata)
getKeyForPath
in class MongodbSerializer
protected boolean isReference(Path<?> arg)
isReference
in class MongodbSerializer
protected boolean isImplicitObjectIdConversion()
isImplicitObjectIdConversion
in class MongodbSerializer
protected boolean isId(Path<?> arg)
isId
in class MongodbSerializer
protected com.mongodb.DBRef asReference(java.lang.Object constant)
asReference
in class MongodbSerializer
protected com.mongodb.DBRef asReferenceKey(java.lang.Class<?> entity, java.lang.Object id)
asReferenceKey
in class MongodbSerializer
Copyright © 2007–2021 Querydsl. All rights reserved.