Package ai.platon.gora.mongodb.store
Class MongoMappingBuilder<K,T extends ai.platon.gora.persistency.impl.PersistentBase>
java.lang.Object
ai.platon.gora.mongodb.store.MongoMappingBuilder<K,T>
public class MongoMappingBuilder<K,T extends ai.platon.gora.persistency.impl.PersistentBase>
extends Object
A builder for creating the mapper. This will allow building a thread safe
MongoMapping using simple immutabilty.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Return the built mapping if it is in a legal stateprotected voidLoad theMongoMappingfrom an input stream passed in parameter.protected voidloadPersistentClass(org.jdom.Element classElement, Class<T> pPersistentClass) Handle the XML parsing of the class definition.
-
Constructor Details
-
MongoMappingBuilder
-
-
Method Details
-
build
Return the built mapping if it is in a legal state -
fromInputStream
Load theMongoMappingfrom an input stream passed in parameter.- Parameters:
is- input stream holding the mapping- Throws:
IOException
-
loadPersistentClass
Handle the XML parsing of the class definition.- Parameters:
classElement- the XML node containing the class definition
-