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 Details

    • getKeySpace

      @Nullable String getKeySpace()
      Get the keySpace a given entity assigns to.
      Returns:
      can be null.
    • getRequiredKeySpace

      default String getRequiredKeySpace()
      Returns the required keySpace or throws an IllegalStateException if the keySpace is not defined.
      Returns:
      the keySpace property of this PersistentEntity.
      Throws:
      IllegalStateException - if the keySpace is not defined.
      Since:
      4.0