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.base;
022:
023: import com.liferay.portal.SystemException;
024: import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
025:
026: import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
027: import com.liferay.portlet.softwarecatalog.model.impl.SCProductScreenshotImpl;
028: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
029: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalServiceFactory;
030: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
031: import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionServiceFactory;
032: import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
033: import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalServiceFactory;
034: import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
035: import com.liferay.portlet.softwarecatalog.service.SCLicenseServiceFactory;
036: import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
037: import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceFactory;
038: import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
039: import com.liferay.portlet.softwarecatalog.service.SCProductEntryServiceFactory;
040: import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
041: import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
042: import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceFactory;
043: import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
044: import com.liferay.portlet.softwarecatalog.service.SCProductVersionServiceFactory;
045: import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
046: import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionUtil;
047: import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
048: import com.liferay.portlet.softwarecatalog.service.persistence.SCLicenseUtil;
049: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
050: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryUtil;
051: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
052: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotUtil;
053: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
054: import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionUtil;
055:
056: import org.springframework.beans.factory.InitializingBean;
057:
058: import java.util.List;
059:
060: /**
061: * <a href="SCProductScreenshotLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
062: *
063: * @author Brian Wing Shun Chan
064: *
065: */
066: public abstract class SCProductScreenshotLocalServiceBaseImpl implements
067: SCProductScreenshotLocalService, InitializingBean {
068: public SCProductScreenshot addSCProductScreenshot(
069: SCProductScreenshot model) throws SystemException {
070: SCProductScreenshot scProductScreenshot = new SCProductScreenshotImpl();
071:
072: scProductScreenshot.setNew(true);
073:
074: scProductScreenshot.setProductScreenshotId(model
075: .getProductScreenshotId());
076: scProductScreenshot.setCompanyId(model.getCompanyId());
077: scProductScreenshot.setGroupId(model.getGroupId());
078: scProductScreenshot
079: .setProductEntryId(model.getProductEntryId());
080: scProductScreenshot.setThumbnailId(model.getThumbnailId());
081: scProductScreenshot.setFullImageId(model.getFullImageId());
082: scProductScreenshot.setPriority(model.getPriority());
083:
084: return scProductScreenshotPersistence
085: .update(scProductScreenshot);
086: }
087:
088: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
089: throws SystemException {
090: return scProductScreenshotPersistence
091: .findWithDynamicQuery(queryInitializer);
092: }
093:
094: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
095: int begin, int end) throws SystemException {
096: return scProductScreenshotPersistence.findWithDynamicQuery(
097: queryInitializer, begin, end);
098: }
099:
100: public SCProductScreenshot updateSCProductScreenshot(
101: SCProductScreenshot model) throws SystemException {
102: return scProductScreenshotPersistence.update(model, true);
103: }
104:
105: public SCLicenseLocalService getSCLicenseLocalService() {
106: return scLicenseLocalService;
107: }
108:
109: public void setSCLicenseLocalService(
110: SCLicenseLocalService scLicenseLocalService) {
111: this .scLicenseLocalService = scLicenseLocalService;
112: }
113:
114: public SCLicenseService getSCLicenseService() {
115: return scLicenseService;
116: }
117:
118: public void setSCLicenseService(SCLicenseService scLicenseService) {
119: this .scLicenseService = scLicenseService;
120: }
121:
122: public SCLicensePersistence getSCLicensePersistence() {
123: return scLicensePersistence;
124: }
125:
126: public void setSCLicensePersistence(
127: SCLicensePersistence scLicensePersistence) {
128: this .scLicensePersistence = scLicensePersistence;
129: }
130:
131: public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
132: return scFrameworkVersionLocalService;
133: }
134:
135: public void setSCFrameworkVersionLocalService(
136: SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
137: this .scFrameworkVersionLocalService = scFrameworkVersionLocalService;
138: }
139:
140: public SCFrameworkVersionService getSCFrameworkVersionService() {
141: return scFrameworkVersionService;
142: }
143:
144: public void setSCFrameworkVersionService(
145: SCFrameworkVersionService scFrameworkVersionService) {
146: this .scFrameworkVersionService = scFrameworkVersionService;
147: }
148:
149: public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
150: return scFrameworkVersionPersistence;
151: }
152:
153: public void setSCFrameworkVersionPersistence(
154: SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
155: this .scFrameworkVersionPersistence = scFrameworkVersionPersistence;
156: }
157:
158: public SCProductEntryLocalService getSCProductEntryLocalService() {
159: return scProductEntryLocalService;
160: }
161:
162: public void setSCProductEntryLocalService(
163: SCProductEntryLocalService scProductEntryLocalService) {
164: this .scProductEntryLocalService = scProductEntryLocalService;
165: }
166:
167: public SCProductEntryService getSCProductEntryService() {
168: return scProductEntryService;
169: }
170:
171: public void setSCProductEntryService(
172: SCProductEntryService scProductEntryService) {
173: this .scProductEntryService = scProductEntryService;
174: }
175:
176: public SCProductEntryPersistence getSCProductEntryPersistence() {
177: return scProductEntryPersistence;
178: }
179:
180: public void setSCProductEntryPersistence(
181: SCProductEntryPersistence scProductEntryPersistence) {
182: this .scProductEntryPersistence = scProductEntryPersistence;
183: }
184:
185: public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
186: return scProductScreenshotPersistence;
187: }
188:
189: public void setSCProductScreenshotPersistence(
190: SCProductScreenshotPersistence scProductScreenshotPersistence) {
191: this .scProductScreenshotPersistence = scProductScreenshotPersistence;
192: }
193:
194: public SCProductVersionLocalService getSCProductVersionLocalService() {
195: return scProductVersionLocalService;
196: }
197:
198: public void setSCProductVersionLocalService(
199: SCProductVersionLocalService scProductVersionLocalService) {
200: this .scProductVersionLocalService = scProductVersionLocalService;
201: }
202:
203: public SCProductVersionService getSCProductVersionService() {
204: return scProductVersionService;
205: }
206:
207: public void setSCProductVersionService(
208: SCProductVersionService scProductVersionService) {
209: this .scProductVersionService = scProductVersionService;
210: }
211:
212: public SCProductVersionPersistence getSCProductVersionPersistence() {
213: return scProductVersionPersistence;
214: }
215:
216: public void setSCProductVersionPersistence(
217: SCProductVersionPersistence scProductVersionPersistence) {
218: this .scProductVersionPersistence = scProductVersionPersistence;
219: }
220:
221: public void afterPropertiesSet() {
222: if (scLicenseLocalService == null) {
223: scLicenseLocalService = SCLicenseLocalServiceFactory
224: .getImpl();
225: }
226:
227: if (scLicenseService == null) {
228: scLicenseService = SCLicenseServiceFactory.getImpl();
229: }
230:
231: if (scLicensePersistence == null) {
232: scLicensePersistence = SCLicenseUtil.getPersistence();
233: }
234:
235: if (scFrameworkVersionLocalService == null) {
236: scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory
237: .getImpl();
238: }
239:
240: if (scFrameworkVersionService == null) {
241: scFrameworkVersionService = SCFrameworkVersionServiceFactory
242: .getImpl();
243: }
244:
245: if (scFrameworkVersionPersistence == null) {
246: scFrameworkVersionPersistence = SCFrameworkVersionUtil
247: .getPersistence();
248: }
249:
250: if (scProductEntryLocalService == null) {
251: scProductEntryLocalService = SCProductEntryLocalServiceFactory
252: .getImpl();
253: }
254:
255: if (scProductEntryService == null) {
256: scProductEntryService = SCProductEntryServiceFactory
257: .getImpl();
258: }
259:
260: if (scProductEntryPersistence == null) {
261: scProductEntryPersistence = SCProductEntryUtil
262: .getPersistence();
263: }
264:
265: if (scProductScreenshotPersistence == null) {
266: scProductScreenshotPersistence = SCProductScreenshotUtil
267: .getPersistence();
268: }
269:
270: if (scProductVersionLocalService == null) {
271: scProductVersionLocalService = SCProductVersionLocalServiceFactory
272: .getImpl();
273: }
274:
275: if (scProductVersionService == null) {
276: scProductVersionService = SCProductVersionServiceFactory
277: .getImpl();
278: }
279:
280: if (scProductVersionPersistence == null) {
281: scProductVersionPersistence = SCProductVersionUtil
282: .getPersistence();
283: }
284: }
285:
286: protected SCLicenseLocalService scLicenseLocalService;
287: protected SCLicenseService scLicenseService;
288: protected SCLicensePersistence scLicensePersistence;
289: protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
290: protected SCFrameworkVersionService scFrameworkVersionService;
291: protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
292: protected SCProductEntryLocalService scProductEntryLocalService;
293: protected SCProductEntryService scProductEntryService;
294: protected SCProductEntryPersistence scProductEntryPersistence;
295: protected SCProductScreenshotPersistence scProductScreenshotPersistence;
296: protected SCProductVersionLocalService scProductVersionLocalService;
297: protected SCProductVersionService scProductVersionService;
298: protected SCProductVersionPersistence scProductVersionPersistence;
299: }
|