Spring Data Elasticsearch

org.springframework.data.elasticsearch.core.mapping
Class SimpleElasticsearchPersistentEntity<T>

java.lang.Object
  extended by org.springframework.data.mapping.model.BasicPersistentEntity<T,ElasticsearchPersistentProperty>
      extended by 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

Constructor Summary
SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation)
           
 
Method Summary
 void addPersistentProperty(ElasticsearchPersistentProperty property)
           
 String getIndexName()
           
 String getIndexType()
           
 ElasticsearchPersistentProperty getVersionProperty()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
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
 

Constructor Detail

SimpleElasticsearchPersistentEntity

public SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation)
Method Detail

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>

Spring Data Elasticsearch

Copyright © 2013 BioMed Central. All Rights Reserved.