Class CachingAerospikePersistentProperty
java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<AerospikePersistentProperty>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<AerospikePersistentProperty>
org.springframework.data.aerospike.mapping.BasicAerospikePersistentProperty
org.springframework.data.aerospike.mapping.CachingAerospikePersistentProperty
- All Implemented Interfaces:
AerospikePersistentProperty,PersistentProperty<AerospikePersistentProperty>
- Author:
- Peter Milne
-
Constructor Summary
ConstructorsConstructorDescriptionCachingAerospikePersistentProperty(Property property, PersistentEntity<?, AerospikePersistentProperty> owner, SimpleTypeHolder simpleTypeHolder, FieldNamingStrategy fieldNamingStrategy) Creates a newCachingAerospikePersistentProperty. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanMethods inherited from class org.springframework.data.aerospike.mapping.BasicAerospikePersistentProperty
isExplicitIdPropertyMethods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isVersionProperty, isWritable, toStringMethods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getActualType, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMap, isReadableMethods inherited from interface org.springframework.data.mapping.PersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isCollectionLike, isEntity, isImmutable, isMap, isReadable, isVersionProperty, isWritable
-
Constructor Details
-
CachingAerospikePersistentProperty
public CachingAerospikePersistentProperty(Property property, PersistentEntity<?, AerospikePersistentProperty> owner, SimpleTypeHolder simpleTypeHolder, FieldNamingStrategy fieldNamingStrategy) Creates a newCachingAerospikePersistentProperty.- Parameters:
property- ThePropertyto be persistent.owner- must not be null.simpleTypeHolder- must not be null.fieldNamingStrategy- a field naming strategy - in case of null default will be selected.
-
-
Method Details
-
isIdProperty
public boolean isIdProperty()- Specified by:
isIdPropertyin interfacePersistentProperty<AerospikePersistentProperty>- Overrides:
isIdPropertyin classAnnotationBasedPersistentProperty<AerospikePersistentProperty>
-
isAssociation
public boolean isAssociation()- Specified by:
isAssociationin interfacePersistentProperty<AerospikePersistentProperty>- Overrides:
isAssociationin classAnnotationBasedPersistentProperty<AerospikePersistentProperty>
-
getFieldName
- Specified by:
getFieldNamein interfaceAerospikePersistentProperty- Overrides:
getFieldNamein classBasicAerospikePersistentProperty- Returns:
- the field name to be used to store the value of the property.
-
usePropertyAccess
public boolean usePropertyAccess()- Specified by:
usePropertyAccessin interfaceAerospikePersistentProperty- Specified by:
usePropertyAccessin interfacePersistentProperty<AerospikePersistentProperty>- Overrides:
usePropertyAccessin classAnnotationBasedPersistentProperty<AerospikePersistentProperty>- Returns:
- whether property access shall be used for reading the property value. This means it will use the getter instead of field access.
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfacePersistentProperty<AerospikePersistentProperty>- Overrides:
isTransientin classAnnotationBasedPersistentProperty<AerospikePersistentProperty>
-
isExpirationProperty
public boolean isExpirationProperty()- Specified by:
isExpirationPropertyin interfaceAerospikePersistentProperty- Overrides:
isExpirationPropertyin classBasicAerospikePersistentProperty- Returns:
- whether expiration property is present
-
isExpirationSpecifiedAsUnixTime
public boolean isExpirationSpecifiedAsUnixTime()- Specified by:
isExpirationSpecifiedAsUnixTimein interfaceAerospikePersistentProperty- Overrides:
isExpirationSpecifiedAsUnixTimein classBasicAerospikePersistentProperty- Returns:
- whether expiration is set as Unix timestamp
-