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 theEmbeddedType
of 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.boolean
True if the property is stored within Datastore entity.boolean
Whether the property contains entities that are related to this entity via the Cloud Datastore Ancestor relationship and have this entity as their ancestor.boolean
Return whether this property is a lazily-fetched one.boolean
True 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, usePropertyAccess
Methods 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
Method Details
-
getFieldName
Description copied from interface:DatastorePersistentProperty
Get the name of the field to store this property in Datastore.- Specified by:
getFieldName
in interfaceDatastorePersistentProperty
- Returns:
- the string name of the field.
-
isDescendants
public boolean isDescendants()Description copied from interface:DatastorePersistentProperty
Whether 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:
isDescendants
in interfaceDatastorePersistentProperty
- Returns:
true
if the property contains child entities.false
otherwise.
-
isUnindexed
public boolean isUnindexed()Description copied from interface:DatastorePersistentProperty
True if the property should be excluded from indexes.- Specified by:
isUnindexed
in interfaceDatastorePersistentProperty
- Returns:
- true if the property should be indexed
-
isColumnBacked
public boolean isColumnBacked()Description copied from interface:DatastorePersistentProperty
True if the property is stored within Datastore entity.- Specified by:
isColumnBacked
in interfaceDatastorePersistentProperty
- Returns:
- true if the property is stored within Datastore entity
-
getEmbeddedType
Description copied from interface:DatastorePersistentProperty
Get theEmbeddedType
of the property indicating what what type of embedding pathway will be used to store the property.- Specified by:
getEmbeddedType
in interfaceDatastorePersistentProperty
- Returns:
- the embedded type.
-
createAssociation
protected org.springframework.data.mapping.Association<DatastorePersistentProperty> createAssociation()- Specified by:
createAssociation
in classorg.springframework.data.mapping.model.AbstractPersistentProperty<DatastorePersistentProperty>
-
isLazyLoaded
public boolean isLazyLoaded()Description copied from interface:DatastorePersistentProperty
Return whether this property is a lazily-fetched one.- Specified by:
isLazyLoaded
in interfaceDatastorePersistentProperty
- Returns:
true
if the property is lazily-fetched.false
otherwise.
-