public class MapperOptions extends Object
| Constructor and Description |
|---|
MapperOptions()
Creates a default options instance.
|
MapperOptions(MapperOptions options)
Copy Constructor
|
| Modifier and Type | Method and Description |
|---|---|
EntityCacheFactory |
getCacheFactory() |
DatastoreProvider |
getDatastoreProvider()
Deprecated.
unused
|
CustomMapper |
getDefaultMapper() |
CustomMapper |
getEmbeddedMapper() |
ObjectFactory |
getObjectFactory() |
CustomMapper |
getReferenceMapper() |
CustomMapper |
getValueMapper() |
boolean |
isActLikeSerializer()
Deprecated.
this is actually the default and proper behavior. this setting is redundant
|
boolean |
isCacheClassLookups() |
boolean |
isIgnoreFinals() |
boolean |
isMapSubPackages() |
boolean |
isStoreEmpties() |
boolean |
isStoreNulls() |
boolean |
isUseLowerCaseCollectionNames() |
void |
setActLikeSerializer(boolean actLikeSerializer)
Deprecated.
this is actually the default and proper behavior. this setting is redundant
|
void |
setCacheClassLookups(boolean cacheClassLookups)
Sets whether Morphia should cache name -> Class lookups
|
void |
setCacheFactory(EntityCacheFactory cacheFactory)
Sets the factory to create an EntityCache
|
void |
setDatastoreProvider(DatastoreProvider datastoreProvider)
Deprecated.
unused
|
void |
setDefaultMapper(CustomMapper pDefaultMapper)
Sets the mapper to use for top level entities
|
void |
setEmbeddedMapper(CustomMapper pEmbeddedMapper)
Sets the mapper to use for embedded entities
|
void |
setIgnoreFinals(boolean ignoreFinals)
Controls if final fields are stored.
|
void |
setMapSubPackages(boolean mapSubPackages)
Controls if classes from sub-packages should be mapped.
|
void |
setObjectFactory(ObjectFactory objectFactory)
Sets the ObjectFactory to use when instantiating entity classes.
|
void |
setReferenceMapper(CustomMapper pReferenceMapper)
Sets the mapper to use for references
|
void |
setStoreEmpties(boolean storeEmpties)
Controls if Morphia should store empty values for lists/maps/sets/arrays
|
void |
setStoreNulls(boolean storeNulls)
Controls if null are stored.
|
void |
setUseLowerCaseCollectionNames(boolean useLowerCaseCollectionNames)
Controls if default entity collection name should be lowercase.
|
void |
setValueMapper(CustomMapper pValueMapper)
Sets the mapper to use when processing values
|
public MapperOptions()
public MapperOptions(MapperOptions options)
options - the MapperOptions to copypublic EntityCacheFactory getCacheFactory()
public void setCacheFactory(EntityCacheFactory cacheFactory)
cacheFactory - the factorypublic DatastoreProvider getDatastoreProvider()
public void setDatastoreProvider(DatastoreProvider datastoreProvider)
datastoreProvider - the DatastoreProvider to usepublic CustomMapper getDefaultMapper()
public void setDefaultMapper(CustomMapper pDefaultMapper)
pDefaultMapper - the mapper to usepublic CustomMapper getEmbeddedMapper()
public void setEmbeddedMapper(CustomMapper pEmbeddedMapper)
pEmbeddedMapper - the mapper to usepublic ObjectFactory getObjectFactory()
public void setObjectFactory(ObjectFactory objectFactory)
objectFactory - the factory to usepublic CustomMapper getReferenceMapper()
Referencepublic void setReferenceMapper(CustomMapper pReferenceMapper)
pReferenceMapper - the mapper to useReferencepublic CustomMapper getValueMapper()
public void setValueMapper(CustomMapper pValueMapper)
pValueMapper - the mapper to usepublic boolean isActLikeSerializer()
public void setActLikeSerializer(boolean actLikeSerializer)
actLikeSerializer - true if Morphia should ignore transient fieldspublic boolean isCacheClassLookups()
public void setCacheClassLookups(boolean cacheClassLookups)
cacheClassLookups - true if the lookup results should be cachedpublic boolean isIgnoreFinals()
public void setIgnoreFinals(boolean ignoreFinals)
ignoreFinals - true if Morphia should ignore final fieldspublic boolean isStoreEmpties()
public void setStoreEmpties(boolean storeEmpties)
storeEmpties - true if Morphia should store empty values for lists/maps/sets/arrayspublic boolean isStoreNulls()
public void setStoreNulls(boolean storeNulls)
storeNulls - true if Morphia should store null valuespublic boolean isUseLowerCaseCollectionNames()
public void setUseLowerCaseCollectionNames(boolean useLowerCaseCollectionNames)
useLowerCaseCollectionNames - true if Morphia should use lower case values when calculating collection namespublic boolean isMapSubPackages()
public void setMapSubPackages(boolean mapSubPackages)
mapSubPackages - true if Morphia should map classes from the sub-packages as well