Spring Data Couchbase

org.springframework.data.couchbase.repository.support
Class MappingCouchbaseEntityInformation<T,ID extends Serializable>

java.lang.Object
  extended by org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
      extended by 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

Constructor Summary
MappingCouchbaseEntityInformation(CouchbasePersistentEntity<T> entity)
          Create a new Infomration container.
 
Method Summary
 ID getId(T entity)
          Returns the ID of the entity.
 Class<ID> getIdType()
          Returns the ID type.
 
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

MappingCouchbaseEntityInformation

public MappingCouchbaseEntityInformation(CouchbasePersistentEntity<T> entity)
Create a new Infomration container.

Parameters:
entity - the entity of the container.
Method Detail

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.

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.