Interface KeyValuePersistentEntity<T, P extends KeyValuePersistentProperty<P>>
- Type Parameters:
T-
- All Superinterfaces:
Aware, EnvironmentAware, Iterable<P>, MutablePersistentEntity<T,P>, PersistentEntity<T, P>
- All Known Implementing Classes:
BasicKeyValuePersistentEntity
public interface KeyValuePersistentEntity<T, P extends KeyValuePersistentProperty<P>>
extends MutablePersistentEntity<T,P>
KeyValue-specific extension of
PersistentEntity declaring a keySpace.- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringGet the keySpace a given entity assigns to.default StringReturns the required keySpace or throws anIllegalStateExceptionif the keySpace is not defined.Methods inherited from interface EnvironmentAware
setEnvironmentMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface MutablePersistentEntity
addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from interface PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Method Details
-
getKeySpace
-
getRequiredKeySpace
Returns the required keySpace or throws anIllegalStateExceptionif the keySpace is not defined.- Returns:
- the keySpace property of this
PersistentEntity. - Throws:
IllegalStateException- if the keySpace is not defined.- Since:
- 4.0
-