1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class ImageUtil {
40 public static void cacheResult(com.liferay.portal.model.Image image) {
41 getPersistence().cacheResult(image);
42 }
43
44 public static void cacheResult(
45 java.util.List<com.liferay.portal.model.Image> images) {
46 getPersistence().cacheResult(images);
47 }
48
49 public static void clearCache() {
50 getPersistence().clearCache();
51 }
52
53 public static com.liferay.portal.model.Image create(long imageId) {
54 return getPersistence().create(imageId);
55 }
56
57 public static com.liferay.portal.model.Image remove(long imageId)
58 throws com.liferay.portal.NoSuchImageException,
59 com.liferay.portal.SystemException {
60 return getPersistence().remove(imageId);
61 }
62
63 public static com.liferay.portal.model.Image remove(
64 com.liferay.portal.model.Image image)
65 throws com.liferay.portal.SystemException {
66 return getPersistence().remove(image);
67 }
68
69
72 public static com.liferay.portal.model.Image update(
73 com.liferay.portal.model.Image image)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(image);
76 }
77
78
90 public static com.liferay.portal.model.Image update(
91 com.liferay.portal.model.Image image, boolean merge)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().update(image, merge);
94 }
95
96 public static com.liferay.portal.model.Image updateImpl(
97 com.liferay.portal.model.Image image, boolean merge)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().updateImpl(image, merge);
100 }
101
102 public static com.liferay.portal.model.Image findByPrimaryKey(long imageId)
103 throws com.liferay.portal.NoSuchImageException,
104 com.liferay.portal.SystemException {
105 return getPersistence().findByPrimaryKey(imageId);
106 }
107
108 public static com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
109 throws com.liferay.portal.SystemException {
110 return getPersistence().fetchByPrimaryKey(imageId);
111 }
112
113 public static java.util.List<com.liferay.portal.model.Image> findBySize(
114 int size) throws com.liferay.portal.SystemException {
115 return getPersistence().findBySize(size);
116 }
117
118 public static java.util.List<com.liferay.portal.model.Image> findBySize(
119 int size, int start, int end) throws com.liferay.portal.SystemException {
120 return getPersistence().findBySize(size, start, end);
121 }
122
123 public static java.util.List<com.liferay.portal.model.Image> findBySize(
124 int size, int start, int end,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.SystemException {
127 return getPersistence().findBySize(size, start, end, obc);
128 }
129
130 public static com.liferay.portal.model.Image findBySize_First(int size,
131 com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.NoSuchImageException,
133 com.liferay.portal.SystemException {
134 return getPersistence().findBySize_First(size, obc);
135 }
136
137 public static com.liferay.portal.model.Image findBySize_Last(int size,
138 com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.NoSuchImageException,
140 com.liferay.portal.SystemException {
141 return getPersistence().findBySize_Last(size, obc);
142 }
143
144 public static com.liferay.portal.model.Image[] findBySize_PrevAndNext(
145 long imageId, int size,
146 com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.NoSuchImageException,
148 com.liferay.portal.SystemException {
149 return getPersistence().findBySize_PrevAndNext(imageId, size, obc);
150 }
151
152 public static java.util.List<Object> findWithDynamicQuery(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.SystemException {
155 return getPersistence().findWithDynamicQuery(dynamicQuery);
156 }
157
158 public static java.util.List<Object> findWithDynamicQuery(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
160 int end) throws com.liferay.portal.SystemException {
161 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
162 }
163
164 public static java.util.List<com.liferay.portal.model.Image> findAll()
165 throws com.liferay.portal.SystemException {
166 return getPersistence().findAll();
167 }
168
169 public static java.util.List<com.liferay.portal.model.Image> findAll(
170 int start, int end) throws com.liferay.portal.SystemException {
171 return getPersistence().findAll(start, end);
172 }
173
174 public static java.util.List<com.liferay.portal.model.Image> findAll(
175 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.SystemException {
177 return getPersistence().findAll(start, end, obc);
178 }
179
180 public static void removeBySize(int size)
181 throws com.liferay.portal.SystemException {
182 getPersistence().removeBySize(size);
183 }
184
185 public static void removeAll() throws com.liferay.portal.SystemException {
186 getPersistence().removeAll();
187 }
188
189 public static int countBySize(int size)
190 throws com.liferay.portal.SystemException {
191 return getPersistence().countBySize(size);
192 }
193
194 public static int countAll() throws com.liferay.portal.SystemException {
195 return getPersistence().countAll();
196 }
197
198 public static ImagePersistence getPersistence() {
199 return _persistence;
200 }
201
202 public void setPersistence(ImagePersistence persistence) {
203 _persistence = persistence;
204 }
205
206 private static ImagePersistence _persistence;
207 }