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.SystemException,
38 com.liferay.portal.NoSuchImageException {
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 public static com.liferay.portal.model.Image update(
49 com.liferay.portal.model.Image image)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(image);
52 }
53
54 public static com.liferay.portal.model.Image update(
55 com.liferay.portal.model.Image image, boolean merge)
56 throws com.liferay.portal.SystemException {
57 return getPersistence().update(image, merge);
58 }
59
60 public static com.liferay.portal.model.Image updateImpl(
61 com.liferay.portal.model.Image image, boolean merge)
62 throws com.liferay.portal.SystemException {
63 return getPersistence().updateImpl(image, merge);
64 }
65
66 public static com.liferay.portal.model.Image findByPrimaryKey(long imageId)
67 throws com.liferay.portal.SystemException,
68 com.liferay.portal.NoSuchImageException {
69 return getPersistence().findByPrimaryKey(imageId);
70 }
71
72 public static com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
73 throws com.liferay.portal.SystemException {
74 return getPersistence().fetchByPrimaryKey(imageId);
75 }
76
77 public static java.util.List findBySize(int size)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().findBySize(size);
80 }
81
82 public static java.util.List findBySize(int size, int begin, int end)
83 throws com.liferay.portal.SystemException {
84 return getPersistence().findBySize(size, begin, end);
85 }
86
87 public static java.util.List findBySize(int size, int begin, int end,
88 com.liferay.portal.kernel.util.OrderByComparator obc)
89 throws com.liferay.portal.SystemException {
90 return getPersistence().findBySize(size, begin, end, obc);
91 }
92
93 public static com.liferay.portal.model.Image findBySize_First(int size,
94 com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portal.NoSuchImageException {
97 return getPersistence().findBySize_First(size, obc);
98 }
99
100 public static com.liferay.portal.model.Image findBySize_Last(int size,
101 com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException,
103 com.liferay.portal.NoSuchImageException {
104 return getPersistence().findBySize_Last(size, obc);
105 }
106
107 public static com.liferay.portal.model.Image[] findBySize_PrevAndNext(
108 long imageId, int size,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portal.NoSuchImageException {
112 return getPersistence().findBySize_PrevAndNext(imageId, size, obc);
113 }
114
115 public static java.util.List findWithDynamicQuery(
116 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
117 throws com.liferay.portal.SystemException {
118 return getPersistence().findWithDynamicQuery(queryInitializer);
119 }
120
121 public static java.util.List findWithDynamicQuery(
122 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
123 int begin, int end) throws com.liferay.portal.SystemException {
124 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
125 end);
126 }
127
128 public static java.util.List findAll()
129 throws com.liferay.portal.SystemException {
130 return getPersistence().findAll();
131 }
132
133 public static java.util.List findAll(int begin, int end)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findAll(begin, end);
136 }
137
138 public static java.util.List findAll(int begin, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findAll(begin, end, obc);
142 }
143
144 public static void removeBySize(int size)
145 throws com.liferay.portal.SystemException {
146 getPersistence().removeBySize(size);
147 }
148
149 public static void removeAll() throws com.liferay.portal.SystemException {
150 getPersistence().removeAll();
151 }
152
153 public static int countBySize(int size)
154 throws com.liferay.portal.SystemException {
155 return getPersistence().countBySize(size);
156 }
157
158 public static int countAll() throws com.liferay.portal.SystemException {
159 return getPersistence().countAll();
160 }
161
162 public static ImagePersistence getPersistence() {
163 return _getUtil()._persistence;
164 }
165
166 public void setPersistence(ImagePersistence persistence) {
167 _persistence = persistence;
168 }
169
170 private static ImageUtil _getUtil() {
171 if (_util == null) {
172 _util = (ImageUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
173 }
174
175 return _util;
176 }
177
178 private static final String _UTIL = ImageUtil.class.getName();
179 private static ImageUtil _util;
180 private ImagePersistence _persistence;
181 }