Spring Data Elasticsearch

org.springframework.data.elasticsearch.repository.support
Class MappingElasticsearchEntityInformation<T,ID extends Serializable>

java.lang.Object
  extended by org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
      extended by org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation<T,ID>
Type Parameters:
T -
ID -
All Implemented Interfaces:
ElasticsearchEntityInformation<T,ID>, org.springframework.data.repository.core.EntityInformation<T,ID>, org.springframework.data.repository.core.EntityMetadata<T>

public class MappingElasticsearchEntityInformation<T,ID extends Serializable>
extends org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
implements ElasticsearchEntityInformation<T,ID>

Elasticsearch specific implementation of AbstractEntityInformation


Constructor Summary
MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity)
           
MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity, String indexName, String type)
           
 
Method Summary
 ID getId(T entity)
           
 String getIdAttribute()
           
 Class<ID> getIdType()
           
 String getIndexName()
           
 String getType()
           
 
Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType, isNew
 
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.repository.core.EntityInformation
isNew
 
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
 

Constructor Detail

MappingElasticsearchEntityInformation

public MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity)

MappingElasticsearchEntityInformation

public MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity,
                                             String indexName,
                                             String type)
Method Detail

getId

public ID getId(T entity)
Specified by:
getId in interface org.springframework.data.repository.core.EntityInformation<T,ID extends Serializable>

getIdType

public Class<ID> getIdType()
Specified by:
getIdType in interface org.springframework.data.repository.core.EntityInformation<T,ID extends Serializable>

getIdAttribute

public String getIdAttribute()
Specified by:
getIdAttribute in interface ElasticsearchEntityInformation<T,ID extends Serializable>

getIndexName

public String getIndexName()
Specified by:
getIndexName in interface ElasticsearchEntityInformation<T,ID extends Serializable>

getType

public String getType()
Specified by:
getType in interface ElasticsearchEntityInformation<T,ID extends Serializable>

Spring Data Elasticsearch

Copyright © 2013 BioMed Central. All Rights Reserved.