T
- the type of the property described by this persistent propertypublic interface DatastorePersistentEntity<T> extends org.springframework.data.mapping.model.MutablePersistentEntity<T,DatastorePersistentProperty>, org.springframework.context.ApplicationContextAware
Modifier and Type | Method and Description |
---|---|
void |
doWithColumnBackedProperties(org.springframework.data.mapping.PropertyHandler<DatastorePersistentProperty> handler)
Applies the given
PropertyHandler to all DatastorePersistentProperty contained
in this DatastorePersistentEntity that are stored as columns in the table for this
entity. |
void |
doWithDescendantProperties(org.springframework.data.mapping.PropertyHandler<DatastorePersistentProperty> handler)
Applies the given
PropertyHandler to all DatastorePersistentProperty contained
in this DatastorePersistentEntity that are properties backed by descendants. |
List<String> |
getCompatibleDiscriminationValues()
Get the discrimination values corresponding to this persistent entity ad its supertypes.
|
String |
getDiscriminationFieldName()
Get the name of the field for subtype discrimination if there is one.
|
String |
getDiscriminatorValue()
Get the discrimination value corresponding to this persistent entity type.
|
DatastorePersistentProperty |
getIdPropertyOrFail()
Gets the ID property, and will throw
DatastoreDataException if the entity does not have
an ID property. |
String |
kindName()
Gets the name of the Datastore Kind.
|
addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
forEach, iterator, spliterator
String kindName()
DatastorePersistentProperty getIdPropertyOrFail()
DatastoreDataException
if the entity does not have
an ID property.String getDiscriminationFieldName()
null
if this persistent entity doesn't
have one.String getDiscriminatorValue()
null
if there is no value for this type.List<String> getCompatibleDiscriminationValues()
void doWithColumnBackedProperties(org.springframework.data.mapping.PropertyHandler<DatastorePersistentProperty> handler)
PropertyHandler
to all DatastorePersistentProperty
contained
in this DatastorePersistentEntity
that are stored as columns in the table for this
entity. This means properties backed by descendants or references to entities of other Kinds
are not provided to the handler
.handler
- must not be null.void doWithDescendantProperties(org.springframework.data.mapping.PropertyHandler<DatastorePersistentProperty> handler)
PropertyHandler
to all DatastorePersistentProperty
contained
in this DatastorePersistentEntity
that are properties backed by descendants.handler
- must not be null.Copyright © 2022. All rights reserved.