com.atlassian.confluence.pages.attachments
Class DefaultImageDetailsDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.confluence.pages.attachments.DefaultImageDetailsDao
All Implemented Interfaces:
ImageDetailsDao, org.springframework.beans.factory.InitializingBean

public class DefaultImageDetailsDao
extends org.springframework.orm.hibernate.support.HibernateDaoSupport
implements ImageDetailsDao

Stores and retrieves ImageDetails via Hibernate.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
DefaultImageDetailsDao()
           
 
Method Summary
 ImageDetails getImageDetails(Attachment attachment)
          Fetch the image details of a specific attachment from the database.
 void removeDetailsFor(Attachment attachment)
          Remove any stored ImageDetails for the given Attachment.
 void save(ImageDetails imageDetails)
          Save the image details of an attachment.
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultImageDetailsDao

public DefaultImageDetailsDao()
Method Detail

getImageDetails

public ImageDetails getImageDetails(Attachment attachment)
Description copied from interface: ImageDetailsDao
Fetch the image details of a specific attachment from the database.

Specified by:
getImageDetails in interface ImageDetailsDao
Parameters:
attachment - for which the image details will be retrieved
Returns:
null if no image details have been stored for this attachment

save

public void save(ImageDetails imageDetails)
Description copied from interface: ImageDetailsDao
Save the image details of an attachment.

Specified by:
save in interface ImageDetailsDao
Parameters:
imageDetails - to save.

removeDetailsFor

public void removeDetailsFor(Attachment attachment)
Description copied from interface: ImageDetailsDao
Remove any stored ImageDetails for the given Attachment.

Specified by:
removeDetailsFor in interface ImageDetailsDao


Copyright © 2003-2014 Atlassian. All Rights Reserved.