Class DatastorePersistentPropertyImpl
java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<DatastorePersistentProperty>
com.google.cloud.spring.data.datastore.core.mapping.DatastorePersistentPropertyImpl
- All Implemented Interfaces:
DatastorePersistentProperty,org.springframework.data.mapping.PersistentProperty<DatastorePersistentProperty>
public class DatastorePersistentPropertyImpl
extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<DatastorePersistentProperty>
implements DatastorePersistentProperty
Persistent property metadata implementation for Datastore.
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.mapping.Association<DatastorePersistentProperty>Get theEmbeddedTypeof the property indicating what what type of embedding pathway will be used to store the property.Get the name of the field to store this property in Datastore.booleanTrue if the property is stored within Datastore entity.booleanWhether the property contains entities that are related to this entity via the Cloud Datastore Ancestor relationship and have this entity as their ancestor.booleanReturn whether this property is a lazily-fetched one.booleanReturn whether to skip null value, i.e., skip insertion if value is null.booleanTrue if the property should be excluded from indexes.Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessMethods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getActualType, getActualTypeInformation, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMap, isReadableMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, isAssociation, isCollectionLike, isEntity, isIdProperty, isImmutable, isMap, isReadable, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
Method Details
-
getFieldName
Description copied from interface:DatastorePersistentPropertyGet the name of the field to store this property in Datastore.- Specified by:
getFieldNamein interfaceDatastorePersistentProperty- Returns:
- the string name of the field.
-
isDescendants
public boolean isDescendants()Description copied from interface:DatastorePersistentPropertyWhether the property contains entities that are related to this entity via the Cloud Datastore Ancestor relationship and have this entity as their ancestor.- Specified by:
isDescendantsin interfaceDatastorePersistentProperty- Returns:
trueif the property contains child entities.falseotherwise.
-
isUnindexed
public boolean isUnindexed()Description copied from interface:DatastorePersistentPropertyTrue if the property should be excluded from indexes.- Specified by:
isUnindexedin interfaceDatastorePersistentProperty- Returns:
- true if the property should be indexed
-
isColumnBacked
public boolean isColumnBacked()Description copied from interface:DatastorePersistentPropertyTrue if the property is stored within Datastore entity.- Specified by:
isColumnBackedin interfaceDatastorePersistentProperty- Returns:
- true if the property is stored within Datastore entity
-
getEmbeddedType
Description copied from interface:DatastorePersistentPropertyGet theEmbeddedTypeof the property indicating what what type of embedding pathway will be used to store the property.- Specified by:
getEmbeddedTypein interfaceDatastorePersistentProperty- Returns:
- the embedded type.
-
createAssociation
protected org.springframework.data.mapping.Association<DatastorePersistentProperty> createAssociation()- Specified by:
createAssociationin classorg.springframework.data.mapping.model.AbstractPersistentProperty<DatastorePersistentProperty>
-
isLazyLoaded
public boolean isLazyLoaded()Description copied from interface:DatastorePersistentPropertyReturn whether this property is a lazily-fetched one.- Specified by:
isLazyLoadedin interfaceDatastorePersistentProperty- Returns:
trueif the property is lazily-fetched.falseotherwise.
-
isSkipNullValue
public boolean isSkipNullValue()Description copied from interface:DatastorePersistentPropertyReturn whether to skip null value, i.e., skip insertion if value is null.- Specified by:
isSkipNullValuein interfaceDatastorePersistentProperty- Returns:
trueif the null value is skipped.falseotherwise.
-