Class ThumbnailDAO
- java.lang.Object
-
- org.silverpeas.core.io.media.image.thumbnail.model.ThumbnailDAO
-
@Repository public class ThumbnailDAO extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ThumbnailDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAllThumbnails(Connection con, String instanceId)
void
deleteThumbnail(Connection con, int objectId, int objectType, String instanceId)
ThumbnailDetail
insertThumbnail(Connection con, ThumbnailDetail thumbnailDetail)
void
moveThumbnail(Connection con, ThumbnailDetail thumbToUpdate, String toInstanceId)
ThumbnailDetail
selectByKey(Connection con, String instanceId, int objectId, int objectType)
List<ThumbnailDetail>
selectByReference(Connection con, Set<ThumbnailReference> references)
void
updateThumbnail(Connection con, ThumbnailDetail thumbToUpdate)
-
-
-
Method Detail
-
insertThumbnail
public ThumbnailDetail insertThumbnail(Connection con, ThumbnailDetail thumbnailDetail) throws SQLException
- Throws:
SQLException
-
updateThumbnail
public void updateThumbnail(Connection con, ThumbnailDetail thumbToUpdate) throws SQLException
- Throws:
SQLException
-
deleteThumbnail
public void deleteThumbnail(Connection con, int objectId, int objectType, String instanceId) throws SQLException
- Throws:
SQLException
-
moveThumbnail
public void moveThumbnail(Connection con, ThumbnailDetail thumbToUpdate, String toInstanceId) throws SQLException
- Throws:
SQLException
-
deleteAllThumbnails
public void deleteAllThumbnails(Connection con, String instanceId) throws SQLException
- Throws:
SQLException
-
selectByKey
public ThumbnailDetail selectByKey(Connection con, String instanceId, int objectId, int objectType) throws SQLException
- Throws:
SQLException
-
selectByReference
public List<ThumbnailDetail> selectByReference(Connection con, Set<ThumbnailReference> references) throws SQLException
- Throws:
SQLException
-
-