Package org.kie.api.persistence
Interface ObjectStoringStrategy
public interface ObjectStoringStrategy
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Similar to ObjectMarshallingStrategy, it is used to decide whether this implementation is going to work for the given Object.Returns the key for the persisted object.Returns the persisted object.Returns the key for the persisted object.
-
Method Details
-
accept
Similar to ObjectMarshallingStrategy, it is used to decide whether this implementation is going to work for the given Object.- Parameters:
obj
- a given object- Returns:
- true if it can persist the given object.
-
persist
Returns the key for the persisted object.- Parameters:
persistable
- the object to persist.- Returns:
- the key of the persisted object.
-
update
Returns the key for the persisted object.- Parameters:
persistable
- the object to persist.- Returns:
- the key of the persisted object.
-
read
Returns the persisted object.- Parameters:
key
- the key of the persisted object.- Returns:
- a persisted object or null.
-