Package sonia.scm.store
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 TypeMethodDescriptionget()
Returns the entity as the specified type of the store.<U> U
Returns the entry as the given type, not as the type that has been specified for the store.getId()
The id of the entry.getParentId
(Class<?> clazz) Returns the id of the parent for the given class.void
Update the store entry with the given object.
-
Method Details
-
getId
String getId()The id of the entry. -
getParentId
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
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
Update the store entry with the given object.- Throws:
QueryableMaintenanceStore.SerializationException
- if the object cannot be serialized.
-