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>, org.springframework.data.mapping.model.MutablePersistentEntity<T,ElasticsearchPersistentProperty>, org.springframework.data.mapping.PersistentEntity<T,ElasticsearchPersistentProperty>

public class SimpleElasticsearchPersistentEntity<T>
extends org.springframework.data.mapping.model.BasicPersistentEntity<T,ElasticsearchPersistentProperty>
implements ElasticsearchPersistentEntity<T>, ApplicationContextAware

Elasticsearch specific PersistentEntity implementation holding


Constructor Summary
SimpleElasticsearchPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
           
 
Method Summary
 String getIndexName()
           
 String getIndexType()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, isConstructorArgument, isIdProperty, 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, isConstructorArgument, isIdProperty
 

Constructor Detail

SimpleElasticsearchPersistentEntity

public SimpleElasticsearchPersistentEntity(org.springframework.data.util.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>

Spring Data Elasticsearch

Copyright © 2012-2013 BioMed Central. All Rights Reserved.