org.springframework.data.elasticsearch.repository.support
Class MappingElasticsearchEntityInformation<T,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
org.springframework.data.elasticsearch.repository.support.MappingElasticsearchEntityInformation<T,ID>
- Type Parameters:
T - ID -
- All Implemented Interfaces:
- ElasticsearchEntityInformation<T,ID>, EntityInformation<T,ID>, EntityMetadata<T>
public class MappingElasticsearchEntityInformation<T,ID extends Serializable>
- extends AbstractEntityInformation<T,ID>
- implements ElasticsearchEntityInformation<T,ID>
Elasticsearch specific implementation of
AbstractEntityInformation
- Author:
- Rizwan Idrees, Mohsin Husen, Ryan Henszey
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingElasticsearchEntityInformation
public MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity)
MappingElasticsearchEntityInformation
public MappingElasticsearchEntityInformation(ElasticsearchPersistentEntity<T> entity,
String indexName,
String type)
getId
public ID getId(T entity)
- Specified by:
getId in interface EntityInformation<T,ID extends Serializable>
getIdType
public Class<ID> getIdType()
- Specified by:
getIdType in interface 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>
getVersion
public Long getVersion(T entity)
- Specified by:
getVersion in interface ElasticsearchEntityInformation<T,ID extends Serializable>
getParentId
public String getParentId(T entity)
- Specified by:
getParentId in interface ElasticsearchEntityInformation<T,ID extends Serializable>
Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.