|
Spring Data Couchbase | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mapping.context.AbstractMappingContext<BasicCouchbasePersistentEntity<?>,CouchbasePersistentProperty>
org.springframework.data.couchbase.core.mapping.CouchbaseMappingContext
public class CouchbaseMappingContext
Default implementation of a MappingContext for Couchbase using
BasicCouchbasePersistentEntity and BasicCouchbasePersistentProperty as primary abstractions.
| Constructor Summary | |
|---|---|
CouchbaseMappingContext()
|
|
| Method Summary | ||
|---|---|---|
protected
|
createPersistentEntity(TypeInformation<T> typeInformation)
Creates a concrete entity based out of the type information passed. |
|
protected CouchbasePersistentProperty |
createPersistentProperty(Field field,
PropertyDescriptor descriptor,
BasicCouchbasePersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder)
Creates a concrete property based on the field information and entity. |
|
void |
setApplicationContext(ApplicationContext applicationContext)
Sets (or overrides) the current application context. |
|
void |
setFieldNamingStrategy(FieldNamingStrategy fieldNamingStrategy)
Configures the FieldNamingStrategy to be used to determine the field name if no manual mapping is applied. |
|
| Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext |
|---|
addPersistentEntity, addPersistentEntity, afterPropertiesSet, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CouchbaseMappingContext()
| Method Detail |
|---|
public void setFieldNamingStrategy(FieldNamingStrategy fieldNamingStrategy)
FieldNamingStrategy to be used to determine the field name if no manual mapping is applied.
Defaults to a strategy using the plain property name.
fieldNamingStrategy - the FieldNamingStrategy to be used to determine the field name if no manual
mapping is applied.protected <T> BasicCouchbasePersistentEntity<?> createPersistentEntity(TypeInformation<T> typeInformation)
createPersistentEntity in class AbstractMappingContext<BasicCouchbasePersistentEntity<?>,CouchbasePersistentProperty>T - the type for the corresponding type information.typeInformation - type information of the entity to create.
protected CouchbasePersistentProperty createPersistentProperty(Field field,
PropertyDescriptor descriptor,
BasicCouchbasePersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder)
createPersistentProperty in class AbstractMappingContext<BasicCouchbasePersistentEntity<?>,CouchbasePersistentProperty>field - the reflection on the field to be used as a property.descriptor - the property descriptor.owner - the entity which owns the property.simpleTypeHolder - the type holder.
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
setApplicationContext in interface ApplicationContextAwareapplicationContext - the application context to be assigned.
BeansException - if the context can not be set properly.
|
Spring Data Couchbase | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||