Class DefaultJpaStoreImpl<S,SID extends Serializable>
java.lang.Object
internal.org.springframework.content.jpa.store.DefaultJpaStoreImpl<S,SID>
- All Implemented Interfaces:
AssociativeStore<S,,SID> ContentRepository<S,,SID> ContentStore<S,,SID> Store<SID>,AssociativeStore<S,,SID> ContentStore<S,,SID> Store<SID>
public class DefaultJpaStoreImpl<S,SID extends Serializable>
extends Object
implements Store<SID>, AssociativeStore<S,SID>, ContentStore<S,SID>, ContentStore<S,SID>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultJpaStoreImpl(org.springframework.core.io.ResourceLoader blobResourceLoader, MappingContext mappingContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidassociate(S entity, PropertyPath propertyPath, SID id) voidprotected ObjectconvertToExternalContentIdType(S property, Object contentId) getContent(S entity) getContent(S entity, PropertyPath propertyPath) org.springframework.core.io.ResourcegetResource(S entity) org.springframework.core.io.ResourcegetResource(SID id) org.springframework.core.io.ResourcegetResource(S entity, PropertyPath propertyPath) org.springframework.core.io.ResourcegetResource(S entity, PropertyPath propertyPath, GetResourceParams params) org.springframework.core.io.ResourcegetResource(S entity, PropertyPath propertyPath, GetResourceParams params) setContent(S entity, InputStream content) setContent(S entity, PropertyPath propertyPath, InputStream content) setContent(S entity, PropertyPath propertyPath, InputStream content, long contentLen) setContent(S entity, PropertyPath propertyPath, InputStream content, SetContentParams params) setContent(S entity, PropertyPath propertyPath, InputStream content, SetContentParams params) setContent(S entity, PropertyPath propertyPath, org.springframework.core.io.Resource resourceContent) setContent(S entity, org.springframework.core.io.Resource resourceContent) voidunassociate(S entity) voidunassociate(S entity, PropertyPath propertyPath) unsetContent(S metadata) unsetContent(S entity, PropertyPath propertyPath) unsetContent(S entity, PropertyPath propertyPath, UnsetContentParams params) unsetContent(S entity, PropertyPath propertyPath, UnsetContentParams params)
-
Constructor Details
-
DefaultJpaStoreImpl
public DefaultJpaStoreImpl(org.springframework.core.io.ResourceLoader blobResourceLoader, MappingContext mappingContext)
-
-
Method Details
-
getResource
- Specified by:
getResourcein interfaceStore<S>- Specified by:
getResourcein interfaceStore<S>
-
getResource
- Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable>
-
getResource
- Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable>
-
getResource
public org.springframework.core.io.Resource getResource(S entity, PropertyPath propertyPath, GetResourceParams params) - Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable>
-
getResource
public org.springframework.core.io.Resource getResource(S entity, PropertyPath propertyPath, GetResourceParams params) - Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable>
-
associate
- Specified by:
associatein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
associatein interfaceAssociativeStore<S,SID extends Serializable>
-
unassociate
- Specified by:
unassociatein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
unassociatein interfaceAssociativeStore<S,SID extends Serializable>
-
associate
- Specified by:
associatein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
associatein interfaceAssociativeStore<S,SID extends Serializable>
-
unassociate
- Specified by:
unassociatein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
unassociatein interfaceAssociativeStore<S,SID extends Serializable>
-
getContent
- Specified by:
getContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
getContentin interfaceContentStore<S,SID extends Serializable>
-
getContent
- Specified by:
getContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
getContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
- Specified by:
setContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
- Specified by:
setContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
@Transactional public S setContent(S entity, PropertyPath propertyPath, InputStream content, long contentLen) - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
@Transactional public S setContent(S entity, PropertyPath propertyPath, InputStream content, SetContentParams params) - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
@Transactional public S setContent(S entity, PropertyPath propertyPath, InputStream content, SetContentParams params) - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
- Specified by:
setContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
@Transactional public S setContent(S entity, PropertyPath propertyPath, org.springframework.core.io.Resource resourceContent) - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
unsetContent
- Specified by:
unsetContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
unsetContentin interfaceContentStore<S,SID extends Serializable>
-
unsetContent
- Specified by:
unsetContentin interfaceContentStore<S,SID extends Serializable> - Specified by:
unsetContentin interfaceContentStore<S,SID extends Serializable>
-
unsetContent
@Transactional public S unsetContent(S entity, PropertyPath propertyPath, UnsetContentParams params) - Specified by:
unsetContentin interfaceContentStore<S,SID extends Serializable>
-
unsetContent
@Transactional public S unsetContent(S entity, PropertyPath propertyPath, UnsetContentParams params) - Specified by:
unsetContentin interfaceContentStore<S,SID extends Serializable>
-
convertToExternalContentIdType
-