1
22
23 package com.liferay.portlet.imagegallery.service.persistence;
24
25
31 public interface IGImagePersistence {
32 public com.liferay.portlet.imagegallery.model.IGImage create(long imageId);
33
34 public com.liferay.portlet.imagegallery.model.IGImage remove(long imageId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portlet.imagegallery.NoSuchImageException;
37
38 public com.liferay.portlet.imagegallery.model.IGImage remove(
39 com.liferay.portlet.imagegallery.model.IGImage igImage)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portlet.imagegallery.model.IGImage update(
43 com.liferay.portlet.imagegallery.model.IGImage igImage)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portlet.imagegallery.model.IGImage update(
47 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
51 long imageId)
52 throws com.liferay.portal.SystemException,
53 com.liferay.portlet.imagegallery.NoSuchImageException;
54
55 public com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
56 long imageId) throws com.liferay.portal.SystemException;
57
58 public java.util.List findByFolderId(long folderId)
59 throws com.liferay.portal.SystemException;
60
61 public java.util.List findByFolderId(long folderId, int begin, int end)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List findByFolderId(long folderId, int begin, int end,
65 com.liferay.portal.kernel.util.OrderByComparator obc)
66 throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.imagegallery.model.IGImage findByFolderId_First(
69 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.imagegallery.NoSuchImageException;
72
73 public com.liferay.portlet.imagegallery.model.IGImage findByFolderId_Last(
74 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
75 throws com.liferay.portal.SystemException,
76 com.liferay.portlet.imagegallery.NoSuchImageException;
77
78 public com.liferay.portlet.imagegallery.model.IGImage[] findByFolderId_PrevAndNext(
79 long imageId, long folderId,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.imagegallery.NoSuchImageException;
83
84 public java.util.List findWithDynamicQuery(
85 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
86 throws com.liferay.portal.SystemException;
87
88 public java.util.List findWithDynamicQuery(
89 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
90 int begin, int end) throws com.liferay.portal.SystemException;
91
92 public java.util.List findAll() throws com.liferay.portal.SystemException;
93
94 public java.util.List findAll(int begin, int end)
95 throws com.liferay.portal.SystemException;
96
97 public java.util.List findAll(int begin, int end,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException;
100
101 public void removeByFolderId(long folderId)
102 throws com.liferay.portal.SystemException;
103
104 public void removeAll() throws com.liferay.portal.SystemException;
105
106 public int countByFolderId(long folderId)
107 throws com.liferay.portal.SystemException;
108
109 public int countAll() throws com.liferay.portal.SystemException;
110 }