public class DefaultJpaStoreImpl<S,SID extends Serializable> extends Object implements Store<SID>, AssociativeStore<S,SID>, ContentStore<S,SID>
| Constructor and Description |
|---|
DefaultJpaStoreImpl(org.springframework.core.io.ResourceLoader blobResourceLoader,
MappingContext mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
associate(S entity,
PropertyPath propertyPath,
SID id) |
void |
associate(S entity,
SID id) |
protected Object |
convertToExternalContentIdType(S property,
Object contentId) |
InputStream |
getContent(S entity) |
InputStream |
getContent(S entity,
PropertyPath propertyPath) |
org.springframework.core.io.Resource |
getResource(S entity) |
org.springframework.core.io.Resource |
getResource(SID id) |
org.springframework.core.io.Resource |
getResource(S entity,
PropertyPath propertyPath) |
org.springframework.core.io.Resource |
getResource(S entity,
PropertyPath propertyPath,
GetResourceParams params) |
S |
setContent(S entity,
InputStream content) |
S |
setContent(S entity,
PropertyPath propertyPath,
InputStream content) |
S |
setContent(S entity,
PropertyPath propertyPath,
InputStream content,
long contentLen) |
S |
setContent(S entity,
PropertyPath propertyPath,
org.springframework.core.io.Resource resourceContent) |
S |
setContent(S entity,
org.springframework.core.io.Resource resourceContent) |
void |
unassociate(S entity) |
void |
unassociate(S entity,
PropertyPath propertyPath) |
S |
unsetContent(S metadata) |
S |
unsetContent(S entity,
PropertyPath propertyPath) |
public DefaultJpaStoreImpl(org.springframework.core.io.ResourceLoader blobResourceLoader,
MappingContext mappingContext)
public org.springframework.core.io.Resource getResource(SID id)
getResource in interface Store<SID extends Serializable>public org.springframework.core.io.Resource getResource(S entity)
getResource in interface AssociativeStore<S,SID extends Serializable>public org.springframework.core.io.Resource getResource(S entity, PropertyPath propertyPath)
getResource in interface AssociativeStore<S,SID extends Serializable>public org.springframework.core.io.Resource getResource(S entity, PropertyPath propertyPath, GetResourceParams params)
getResource in interface AssociativeStore<S,SID extends Serializable>public void associate(S entity, PropertyPath propertyPath, SID id)
associate in interface AssociativeStore<S,SID extends Serializable>public void unassociate(S entity, PropertyPath propertyPath)
unassociate in interface AssociativeStore<S,SID extends Serializable>public void associate(S entity, SID id)
associate in interface AssociativeStore<S,SID extends Serializable>public void unassociate(S entity)
unassociate in interface AssociativeStore<S,SID extends Serializable>public InputStream getContent(S entity)
getContent in interface ContentStore<S,SID extends Serializable>public InputStream getContent(S entity, PropertyPath propertyPath)
getContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S entity, InputStream content)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S entity, PropertyPath propertyPath, InputStream content)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S entity, PropertyPath propertyPath, InputStream content, long contentLen)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S entity, org.springframework.core.io.Resource resourceContent)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S entity, PropertyPath propertyPath, org.springframework.core.io.Resource resourceContent)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S unsetContent(S metadata)
unsetContent in interface ContentStore<S,SID extends Serializable>@Transactional public S unsetContent(S entity, PropertyPath propertyPath)
unsetContent in interface ContentStore<S,SID extends Serializable>Copyright © 2023 Paul Warren. All rights reserved.