Spring Data Couchbase

org.springframework.data.couchbase.core.mapping
Class BasicCouchbasePersistentEntity<T>

java.lang.Object
  extended by org.springframework.data.mapping.model.BasicPersistentEntity<T,CouchbasePersistentProperty>
      extended by org.springframework.data.couchbase.core.mapping.BasicCouchbasePersistentEntity<T>
All Implemented Interfaces:
Aware, ApplicationContextAware, CouchbasePersistentEntity<T>, MutablePersistentEntity<T,CouchbasePersistentProperty>, PersistentEntity<T,CouchbasePersistentProperty>

public class BasicCouchbasePersistentEntity<T>
extends BasicPersistentEntity<T,CouchbasePersistentProperty>
implements CouchbasePersistentEntity<T>, ApplicationContextAware

The representation of a persistent entity.

Author:
Michael Nitschinger

Constructor Summary
BasicCouchbasePersistentEntity(TypeInformation<T> typeInformation)
          Create a new entity.
 
Method Summary
 int getExpiry()
          Returns the expiration time of the entity.
 void setApplicationContext(ApplicationContext applicationContext)
          Sets the application context.
 
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, returnPropertyIfBetterIdPropertyCandidateOrNull, verify
 
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.mapping.PersistentEntity
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty
 

Constructor Detail

BasicCouchbasePersistentEntity

public BasicCouchbasePersistentEntity(TypeInformation<T> typeInformation)
Create a new entity.

Parameters:
typeInformation - the type information of the entity.
Method Detail

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Sets the application context.

Specified by:
setApplicationContext in interface ApplicationContextAware
Parameters:
applicationContext - the application context.
Throws:
BeansException - if setting the application context did go wrong.

getExpiry

public int getExpiry()
Returns the expiration time of the entity.

Specified by:
getExpiry in interface CouchbasePersistentEntity<T>
Returns:
the expiration time.

Spring Data Couchbase

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