org.springframework.data.solr.repository.support
Class MappingSolrEntityInformation<T,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
org.springframework.data.solr.repository.support.MappingSolrEntityInformation<T,ID>
- Type Parameters:
T - ID -
- All Implemented Interfaces:
- EntityInformation<T,ID>, EntityMetadata<T>, SolrEntityInformation<T,ID>
public class MappingSolrEntityInformation<T,ID extends Serializable>
- extends AbstractEntityInformation<T,ID>
- implements SolrEntityInformation<T,ID>
Solr specific implementation of AbstractEntityInformation
- Author:
- Christoph Strobl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingSolrEntityInformation
public MappingSolrEntityInformation(SolrPersistentEntity<T> entity)
MappingSolrEntityInformation
public MappingSolrEntityInformation(SolrPersistentEntity<T> entity,
String solrCoreName)
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()
- Description copied from interface:
SolrEntityInformation
- get the name of the id attribute
- Specified by:
getIdAttribute in interface SolrEntityInformation<T,ID extends Serializable>
- Returns:
getSolrCoreName
public String getSolrCoreName()
- Description copied from interface:
SolrEntityInformation
- get the name of the solr collection the entity resides in
- Specified by:
getSolrCoreName in interface SolrEntityInformation<T,ID extends Serializable>
- Returns:
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.