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.ratings.service;
022:
023: /**
024: * <a href="RatingsStatsLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.ratings.service.RatingsStatsLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.ratings.service.RatingsStatsLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.ratings.service.RatingsStatsLocalService
047: * @see com.liferay.portlet.ratings.service.RatingsStatsLocalServiceFactory
048: *
049: */
050: public class RatingsStatsLocalServiceUtil {
051: public static com.liferay.portlet.ratings.model.RatingsStats addRatingsStats(
052: com.liferay.portlet.ratings.model.RatingsStats model)
053: throws com.liferay.portal.SystemException {
054: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
055: .getService();
056:
057: return ratingsStatsLocalService.addRatingsStats(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
064: .getService();
065:
066: return ratingsStatsLocalService.dynamicQuery(queryInitializer);
067: }
068:
069: public static java.util.List dynamicQuery(
070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071: int begin, int end)
072: throws com.liferay.portal.SystemException {
073: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
074: .getService();
075:
076: return ratingsStatsLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.ratings.model.RatingsStats updateRatingsStats(
081: com.liferay.portlet.ratings.model.RatingsStats model)
082: throws com.liferay.portal.SystemException {
083: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
084: .getService();
085:
086: return ratingsStatsLocalService.updateRatingsStats(model);
087: }
088:
089: public static com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence getRatingsEntryPersistence() {
090: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
091: .getService();
092:
093: return ratingsStatsLocalService.getRatingsEntryPersistence();
094: }
095:
096: public static void setRatingsEntryPersistence(
097: com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence ratingsEntryPersistence) {
098: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
099: .getService();
100:
101: ratingsStatsLocalService
102: .setRatingsEntryPersistence(ratingsEntryPersistence);
103: }
104:
105: public static com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence getRatingsStatsPersistence() {
106: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
107: .getService();
108:
109: return ratingsStatsLocalService.getRatingsStatsPersistence();
110: }
111:
112: public static void setRatingsStatsPersistence(
113: com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence ratingsStatsPersistence) {
114: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
115: .getService();
116:
117: ratingsStatsLocalService
118: .setRatingsStatsPersistence(ratingsStatsPersistence);
119: }
120:
121: public static void afterPropertiesSet() {
122: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
123: .getService();
124:
125: ratingsStatsLocalService.afterPropertiesSet();
126: }
127:
128: public static void deleteStats(java.lang.String className,
129: long classPK) throws com.liferay.portal.PortalException,
130: com.liferay.portal.SystemException {
131: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
132: .getService();
133:
134: ratingsStatsLocalService.deleteStats(className, classPK);
135: }
136:
137: public static com.liferay.portlet.ratings.model.RatingsStats getStats(
138: long statsId) throws com.liferay.portal.PortalException,
139: com.liferay.portal.SystemException {
140: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
141: .getService();
142:
143: return ratingsStatsLocalService.getStats(statsId);
144: }
145:
146: public static com.liferay.portlet.ratings.model.RatingsStats getStats(
147: java.lang.String className, long classPK)
148: throws com.liferay.portal.PortalException,
149: com.liferay.portal.SystemException {
150: RatingsStatsLocalService ratingsStatsLocalService = RatingsStatsLocalServiceFactory
151: .getService();
152:
153: return ratingsStatsLocalService.getStats(className, classPK);
154: }
155: }
|