public interface AssociativeStore<S,SID extends Serializable> extends Store<SID>
| Modifier and Type | Method and Description |
|---|---|
void |
associate(S entity,
PropertyPath propertyPath,
SID id)
Associates the resource (identified by id) with entity.
|
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
|
org.springframework.core.io.Resource |
getResource(S entity,
PropertyPath propertyPath)
Returns the resource associated with the given property for entity, or null if no association exists
|
void |
unassociate(S entity)
Unassociates the resource from entity
|
void |
unassociate(S entity,
PropertyPath propertyPath)
Unassociates the resource from entity
|
getResourceorg.springframework.core.io.Resource getResource(S entity)
entity - the entity associated with resourceorg.springframework.core.io.Resource getResource(S entity, PropertyPath propertyPath)
entity - the entity associated with resourcepropertyPath - the property path of the associated resourcevoid associate(S entity, SID id)
entity - the target of the associationid - the id of the resource to be associatedvoid associate(S entity, PropertyPath propertyPath, SID id)
entity - the target of the associationpropertyPath - the property path to associate the resource toid - the id of the resource to be associatedvoid unassociate(S entity)
entity - the target of the unassociationvoid unassociate(S entity, PropertyPath propertyPath)
entity - the target of the unassociationpropertyPath - the property path to unassociate the resource fromCopyright © 2021 Paul Warren. All rights reserved.