Interface QueryableMaintenanceStore.MaintenanceStoreEntry<T>

Enclosing interface:
QueryableMaintenanceStore<T>

public static interface QueryableMaintenanceStore.MaintenanceStoreEntry<T>
Maintenance helper for a concrete entry in the store.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns the entity as the specified type of the store.
    <U> U
    getAs(Class<U> type)
    Returns the entry as the given type, not as the type that has been specified for the store.
    The id of the entry.
    getParentId(Class<?> clazz)
    Returns the id of the parent for the given class.
    void
    update(Object object)
    Update the store entry with the given object.
  • Method Details

    • getId

      String getId()
      The id of the entry.
    • getParentId

      Optional<String> getParentId(Class<?> clazz)
      Returns the id of the parent for the given class.
    • get

      T get()
      Returns the entity as the specified type of the store.
      Throws:
      QueryableMaintenanceStore.SerializationException - if the entry cannot be deserialized to the type of the store.
    • getAs

      <U> U getAs(Class<U> type)
      Returns the entry as the given type, not as the type that has been specified for the store. This can be used whenever the type of the store has been changed in a way that no longer is compatible with the stored data. In this case, the entry can be deserialized to a different type that is only used during the migration.
      Type Parameters:
      U - The type of the entry.
      Throws:
      QueryableMaintenanceStore.SerializationException - if the entry cannot be deserialized to the given type.
    • update

      void update(Object object)
      Update the store entry with the given object.
      Throws:
      QueryableMaintenanceStore.SerializationException - if the object cannot be serialized.