public interface AssociativeStore<S,SID extends Serializable> extends Store<SID>
| Modifier and Type | Method and Description |
|---|---|
void |
associate(S entity,
SID id)
Associates the resource (identified by id) with entity.
|
org.springframework.core.io.Resource |
getResource(S entity)
Returns the resource associated with the given entity, or null if no association exists
|
void |
unassociate(S entity)
Unassociates the resource from entity
|
getResourceorg.springframework.core.io.Resource getResource(S entity)
entity - the entity associated with resourcevoid associate(S entity, SID id)
entity - the target of the associationid - the id of the resource to be associatedvoid unassociate(S entity)
entity - the target of the unassociationCopyright © 2020 Paul Warren. All rights reserved.