org.springframework.data.couchbase.repository.support
Class MappingCouchbaseEntityInformation<T,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
org.springframework.data.couchbase.repository.support.MappingCouchbaseEntityInformation<T,ID>
- All Implemented Interfaces:
- CouchbaseEntityInformation<T,ID>, EntityInformation<T,ID>, EntityMetadata<T>
public class MappingCouchbaseEntityInformation<T,ID extends Serializable>
- extends AbstractEntityInformation<T,ID>
- implements CouchbaseEntityInformation<T,ID>
Entity Information container.
- Author:
- Michael Nitschinger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingCouchbaseEntityInformation
public MappingCouchbaseEntityInformation(CouchbasePersistentEntity<T> entity)
- Create a new Infomration container.
- Parameters:
entity - the entity of the container.
getId
public ID getId(T entity)
- Returns the ID of the entity.
- Specified by:
getId in interface EntityInformation<T,ID extends Serializable>
- Parameters:
entity - the entity from where to extract the ID from.
- Returns:
- the id of the entity.
getIdType
public Class<ID> getIdType()
- Returns the ID type.
- Specified by:
getIdType in interface EntityInformation<T,ID extends Serializable>
- Returns:
- the ID type.
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.