1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class ImageUtil {
32 public static com.liferay.portal.model.Image create(long imageId) {
33 return getPersistence().create(imageId);
34 }
35
36 public static com.liferay.portal.model.Image remove(long imageId)
37 throws com.liferay.portal.NoSuchImageException,
38 com.liferay.portal.SystemException {
39 return getPersistence().remove(imageId);
40 }
41
42 public static com.liferay.portal.model.Image remove(
43 com.liferay.portal.model.Image image)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(image);
46 }
47
48
51 public static com.liferay.portal.model.Image update(
52 com.liferay.portal.model.Image image)
53 throws com.liferay.portal.SystemException {
54 return getPersistence().update(image);
55 }
56
57
70 public static com.liferay.portal.model.Image update(
71 com.liferay.portal.model.Image image, boolean merge)
72 throws com.liferay.portal.SystemException {
73 return getPersistence().update(image, merge);
74 }
75
76 public static com.liferay.portal.model.Image updateImpl(
77 com.liferay.portal.model.Image image, boolean merge)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().updateImpl(image, merge);
80 }
81
82 public static com.liferay.portal.model.Image findByPrimaryKey(long imageId)
83 throws com.liferay.portal.NoSuchImageException,
84 com.liferay.portal.SystemException {
85 return getPersistence().findByPrimaryKey(imageId);
86 }
87
88 public static com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
89 throws com.liferay.portal.SystemException {
90 return getPersistence().fetchByPrimaryKey(imageId);
91 }
92
93 public static java.util.List<com.liferay.portal.model.Image> findBySize(
94 int size) throws com.liferay.portal.SystemException {
95 return getPersistence().findBySize(size);
96 }
97
98 public static java.util.List<com.liferay.portal.model.Image> findBySize(
99 int size, int start, int end) throws com.liferay.portal.SystemException {
100 return getPersistence().findBySize(size, start, end);
101 }
102
103 public static java.util.List<com.liferay.portal.model.Image> findBySize(
104 int size, int start, int end,
105 com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException {
107 return getPersistence().findBySize(size, start, end, obc);
108 }
109
110 public static com.liferay.portal.model.Image findBySize_First(int size,
111 com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.NoSuchImageException,
113 com.liferay.portal.SystemException {
114 return getPersistence().findBySize_First(size, obc);
115 }
116
117 public static com.liferay.portal.model.Image findBySize_Last(int size,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.NoSuchImageException,
120 com.liferay.portal.SystemException {
121 return getPersistence().findBySize_Last(size, obc);
122 }
123
124 public static com.liferay.portal.model.Image[] findBySize_PrevAndNext(
125 long imageId, int size,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.NoSuchImageException,
128 com.liferay.portal.SystemException {
129 return getPersistence().findBySize_PrevAndNext(imageId, size, obc);
130 }
131
132 public static java.util.List<Object> findWithDynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findWithDynamicQuery(dynamicQuery);
136 }
137
138 public static java.util.List<Object> findWithDynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end) throws com.liferay.portal.SystemException {
141 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
142 }
143
144 public static java.util.List<com.liferay.portal.model.Image> findAll()
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findAll();
147 }
148
149 public static java.util.List<com.liferay.portal.model.Image> findAll(
150 int start, int end) throws com.liferay.portal.SystemException {
151 return getPersistence().findAll(start, end);
152 }
153
154 public static java.util.List<com.liferay.portal.model.Image> findAll(
155 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findAll(start, end, obc);
158 }
159
160 public static void removeBySize(int size)
161 throws com.liferay.portal.SystemException {
162 getPersistence().removeBySize(size);
163 }
164
165 public static void removeAll() throws com.liferay.portal.SystemException {
166 getPersistence().removeAll();
167 }
168
169 public static int countBySize(int size)
170 throws com.liferay.portal.SystemException {
171 return getPersistence().countBySize(size);
172 }
173
174 public static int countAll() throws com.liferay.portal.SystemException {
175 return getPersistence().countAll();
176 }
177
178 public static ImagePersistence getPersistence() {
179 return _persistence;
180 }
181
182 public void setPersistence(ImagePersistence persistence) {
183 _persistence = persistence;
184 }
185
186 private static ImagePersistence _persistence;
187 }