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 getIndexStoreType()
           
 String getIndexType()
           
 ElasticsearchPersistentProperty getParentIdProperty()
           
 String getParentType()
           
 String getRefreshInterval()
           
 short getReplicas()
           
 short getShards()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 String settingPath()
           
 
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, returnPropertyIfBetterIdPropertyCandidateOrNull, 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.elasticsearch.core.mapping.ElasticsearchPersistentEntity
getVersionProperty
 
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, 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>

getIndexStoreType

public String getIndexStoreType()
Specified by:
getIndexStoreType in interface ElasticsearchPersistentEntity<T>

getShards

public short getShards()
Specified by:
getShards in interface ElasticsearchPersistentEntity<T>

getReplicas

public short getReplicas()
Specified by:
getReplicas in interface ElasticsearchPersistentEntity<T>

getRefreshInterval

public String getRefreshInterval()
Specified by:
getRefreshInterval in interface ElasticsearchPersistentEntity<T>

getParentType

public String getParentType()
Specified by:
getParentType in interface ElasticsearchPersistentEntity<T>

getParentIdProperty

public ElasticsearchPersistentProperty getParentIdProperty()
Specified by:
getParentIdProperty in interface ElasticsearchPersistentEntity<T>

settingPath

public String settingPath()
Specified by:
settingPath in interface ElasticsearchPersistentEntity<T>

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 © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.