|
Spring Data Document | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mapping.model.BasicPersistentEntity<T,MongoPersistentProperty>
org.springframework.data.mongodb.core.mapping.BasicMongoPersistentEntity<T>
public class BasicMongoPersistentEntity<T>
Mongo specific PersistentEntity implementation that adds Mongo specific meta-data such as the collection name
and the like.
| Constructor Summary | |
|---|---|
BasicMongoPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
Creates a new BasicMongoPersistentEntity with the given TypeInformation. |
|
| Method Summary | |
|---|---|
String |
getCollection()
Returns the collection the entity should be stored in. |
void |
setApplicationContext(ApplicationContext applicationContext)
|
| Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity |
|---|
addAssociation, addPersistentProperty, doWithAssociations, doWithProperties, getIdProperty, getName, getPersistentProperty, getPreferredConstructor, getType, getTypeAlias, getTypeInformation, setIdProperty, verify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.data.mapping.PersistentEntity |
|---|
doWithAssociations, doWithProperties, getIdProperty, getName, getPersistentProperty, getPreferredConstructor, getType, getTypeAlias, getTypeInformation |
| Constructor Detail |
|---|
public BasicMongoPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
BasicMongoPersistentEntity with the given TypeInformation. Will default the
collection name to the entities simple type name.
typeInformation - | Method Detail |
|---|
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic String getCollection()
getCollection in interface MongoPersistentEntity<T>
|
Spring Data Document | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||