org.springframework.data.elasticsearch.core.mapping
Class SimpleElasticsearchPersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,ElasticsearchPersistentProperty>
org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentEntity<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Aware, ApplicationContextAware, ElasticsearchPersistentEntity<T>, MutablePersistentEntity<T,ElasticsearchPersistentProperty>, PersistentEntity<T,ElasticsearchPersistentProperty>
public class SimpleElasticsearchPersistentEntity<T>
- extends BasicPersistentEntity<T,ElasticsearchPersistentProperty>
- implements ElasticsearchPersistentEntity<T>, ApplicationContextAware
Elasticsearch specific PersistentEntity
implementation holding
- Author:
- Rizwan Idrees, Mohsin Husen
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity |
addAssociation, doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, 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, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty |
SimpleElasticsearchPersistentEntity
public SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation)
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
- Specified by:
setApplicationContext
in interface ApplicationContextAware
- Throws:
BeansException
getIndexName
public String getIndexName()
- Specified by:
getIndexName
in interface ElasticsearchPersistentEntity<T>
getIndexType
public String getIndexType()
- Specified by:
getIndexType
in interface ElasticsearchPersistentEntity<T>
getVersionProperty
public ElasticsearchPersistentProperty getVersionProperty()
- Specified by:
getVersionProperty
in interface ElasticsearchPersistentEntity<T>
- Specified by:
getVersionProperty
in interface PersistentEntity<T,ElasticsearchPersistentProperty>
- Overrides:
getVersionProperty
in class BasicPersistentEntity<T,ElasticsearchPersistentProperty>
addPersistentProperty
public void addPersistentProperty(ElasticsearchPersistentProperty property)
- Specified by:
addPersistentProperty
in interface MutablePersistentEntity<T,ElasticsearchPersistentProperty>
- Overrides:
addPersistentProperty
in class BasicPersistentEntity<T,ElasticsearchPersistentProperty>
Copyright © 2013 BioMed Central. All Rights Reserved.