org.springframework.data.couchbase.core.mapping
Class BasicCouchbasePersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,CouchbasePersistentProperty>
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
| 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 |
BasicCouchbasePersistentEntity
public BasicCouchbasePersistentEntity(TypeInformation<T> typeInformation)
- Create a new entity.
- Parameters:
typeInformation - the type information of the entity.
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.
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.