@ParametersAreNonnullByDefault public class DefaultImageDetailsDao extends org.springframework.orm.hibernate5.support.HibernateDaoSupport implements ImageDetailsDao, ImageDetailsPrefetchDao
ImageDetails
via Hibernate.Constructor and Description |
---|
DefaultImageDetailsDao() |
Modifier and Type | Method and Description |
---|---|
ImageDetails |
getImageDetails(Attachment attachment)
Fetch the image details of a specific attachment from the database.
|
static long |
imageId(Attachment attachment) |
int |
prefetchImageDetails(Collection<Attachment> attachments)
Attempts to efficiently resolve the
ImageDetailsDto of each given Attachment . |
void |
removeDetailsFor(Attachment attachment)
Remove any stored
ImageDetails for the given Attachment . |
void |
save(ImageDetails imageDetails)
Save the image details of an attachment.
|
public ImageDetails getImageDetails(Attachment attachment)
ImageDetailsDao
getImageDetails
in interface ImageDetailsDao
attachment
- for which the image details will be retrievedpublic void save(ImageDetails imageDetails)
ImageDetailsDao
save
in interface ImageDetailsDao
imageDetails
- to save.public void removeDetailsFor(Attachment attachment)
ImageDetailsDao
ImageDetails
for the given Attachment
.removeDetailsFor
in interface ImageDetailsDao
public static long imageId(Attachment attachment)
@Internal public int prefetchImageDetails(Collection<Attachment> attachments)
ImageDetailsDto
of each given Attachment
. It does this by
issuing a query for all ImageDetailsDto
entities with IDs that match the IDs of the given attachments.prefetchImageDetails
in interface ImageDetailsPrefetchDao
Copyright © 2003–2017 Atlassian. All rights reserved.