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>, 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
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 |
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 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>
Copyright © 2012-2013 BioMed Central. All Rights Reserved.