001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.softwarecatalog.service.persistence;
022:
023: /**
024: * <a href="SCProductScreenshotUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class SCProductScreenshotUtil {
030: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
031: long productScreenshotId) {
032: return getPersistence().create(productScreenshotId);
033: }
034:
035: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
036: long productScreenshotId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
039: return getPersistence().remove(productScreenshotId);
040: }
041:
042: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
043: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(scProductScreenshot);
046: }
047:
048: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
049: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(scProductScreenshot);
052: }
053:
054: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
055: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(scProductScreenshot, merge);
058: }
059:
060: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
061: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(scProductScreenshot, merge);
064: }
065:
066: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
067: long productScreenshotId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
070: return getPersistence().findByPrimaryKey(productScreenshotId);
071: }
072:
073: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
074: long productScreenshotId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(productScreenshotId);
077: }
078:
079: public static java.util.List findByProductEntryId(
080: long productEntryId)
081: throws com.liferay.portal.SystemException {
082: return getPersistence().findByProductEntryId(productEntryId);
083: }
084:
085: public static java.util.List findByProductEntryId(
086: long productEntryId, int begin, int end)
087: throws com.liferay.portal.SystemException {
088: return getPersistence().findByProductEntryId(productEntryId,
089: begin, end);
090: }
091:
092: public static java.util.List findByProductEntryId(
093: long productEntryId, int begin, int end,
094: com.liferay.portal.kernel.util.OrderByComparator obc)
095: throws com.liferay.portal.SystemException {
096: return getPersistence().findByProductEntryId(productEntryId,
097: begin, end, obc);
098: }
099:
100: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
101: long productEntryId,
102: com.liferay.portal.kernel.util.OrderByComparator obc)
103: throws com.liferay.portal.SystemException,
104: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
105: return getPersistence().findByProductEntryId_First(
106: productEntryId, obc);
107: }
108:
109: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
110: long productEntryId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
114: return getPersistence().findByProductEntryId_Last(
115: productEntryId, obc);
116: }
117:
118: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
119: long productScreenshotId, long productEntryId,
120: com.liferay.portal.kernel.util.OrderByComparator obc)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
123: return getPersistence().findByProductEntryId_PrevAndNext(
124: productScreenshotId, productEntryId, obc);
125: }
126:
127: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
128: long thumbnailId)
129: throws com.liferay.portal.SystemException,
130: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
131: return getPersistence().findByThumbnailId(thumbnailId);
132: }
133:
134: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
135: long thumbnailId) throws com.liferay.portal.SystemException {
136: return getPersistence().fetchByThumbnailId(thumbnailId);
137: }
138:
139: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
140: long fullImageId)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
143: return getPersistence().findByFullImageId(fullImageId);
144: }
145:
146: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
147: long fullImageId) throws com.liferay.portal.SystemException {
148: return getPersistence().fetchByFullImageId(fullImageId);
149: }
150:
151: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
152: long productEntryId, int priority)
153: throws com.liferay.portal.SystemException,
154: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
155: return getPersistence().findByP_P(productEntryId, priority);
156: }
157:
158: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
159: long productEntryId, int priority)
160: throws com.liferay.portal.SystemException {
161: return getPersistence().fetchByP_P(productEntryId, priority);
162: }
163:
164: public static java.util.List findWithDynamicQuery(
165: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
166: throws com.liferay.portal.SystemException {
167: return getPersistence().findWithDynamicQuery(queryInitializer);
168: }
169:
170: public static java.util.List findWithDynamicQuery(
171: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
172: int begin, int end)
173: throws com.liferay.portal.SystemException {
174: return getPersistence().findWithDynamicQuery(queryInitializer,
175: begin, end);
176: }
177:
178: public static java.util.List findAll()
179: throws com.liferay.portal.SystemException {
180: return getPersistence().findAll();
181: }
182:
183: public static java.util.List findAll(int begin, int end)
184: throws com.liferay.portal.SystemException {
185: return getPersistence().findAll(begin, end);
186: }
187:
188: public static java.util.List findAll(int begin, int end,
189: com.liferay.portal.kernel.util.OrderByComparator obc)
190: throws com.liferay.portal.SystemException {
191: return getPersistence().findAll(begin, end, obc);
192: }
193:
194: public static void removeByProductEntryId(long productEntryId)
195: throws com.liferay.portal.SystemException {
196: getPersistence().removeByProductEntryId(productEntryId);
197: }
198:
199: public static void removeByThumbnailId(long thumbnailId)
200: throws com.liferay.portal.SystemException,
201: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
202: getPersistence().removeByThumbnailId(thumbnailId);
203: }
204:
205: public static void removeByFullImageId(long fullImageId)
206: throws com.liferay.portal.SystemException,
207: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
208: getPersistence().removeByFullImageId(fullImageId);
209: }
210:
211: public static void removeByP_P(long productEntryId, int priority)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
214: getPersistence().removeByP_P(productEntryId, priority);
215: }
216:
217: public static void removeAll()
218: throws com.liferay.portal.SystemException {
219: getPersistence().removeAll();
220: }
221:
222: public static int countByProductEntryId(long productEntryId)
223: throws com.liferay.portal.SystemException {
224: return getPersistence().countByProductEntryId(productEntryId);
225: }
226:
227: public static int countByThumbnailId(long thumbnailId)
228: throws com.liferay.portal.SystemException {
229: return getPersistence().countByThumbnailId(thumbnailId);
230: }
231:
232: public static int countByFullImageId(long fullImageId)
233: throws com.liferay.portal.SystemException {
234: return getPersistence().countByFullImageId(fullImageId);
235: }
236:
237: public static int countByP_P(long productEntryId, int priority)
238: throws com.liferay.portal.SystemException {
239: return getPersistence().countByP_P(productEntryId, priority);
240: }
241:
242: public static int countAll()
243: throws com.liferay.portal.SystemException {
244: return getPersistence().countAll();
245: }
246:
247: public static SCProductScreenshotPersistence getPersistence() {
248: return _getUtil()._persistence;
249: }
250:
251: public void setPersistence(
252: SCProductScreenshotPersistence persistence) {
253: _persistence = persistence;
254: }
255:
256: private static SCProductScreenshotUtil _getUtil() {
257: if (_util == null) {
258: _util = (SCProductScreenshotUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
259: .locate(_UTIL);
260: }
261:
262: return _util;
263: }
264:
265: private static final String _UTIL = SCProductScreenshotUtil.class
266: .getName();
267: private static SCProductScreenshotUtil _util;
268: private SCProductScreenshotPersistence _persistence;
269: }
|