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.persistence;
022:
023: /**
024: * <a href="RatingsStatsUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class RatingsStatsUtil {
030: public static com.liferay.portlet.ratings.model.RatingsStats create(
031: long statsId) {
032: return getPersistence().create(statsId);
033: }
034:
035: public static com.liferay.portlet.ratings.model.RatingsStats remove(
036: long statsId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.ratings.NoSuchStatsException {
038: return getPersistence().remove(statsId);
039: }
040:
041: public static com.liferay.portlet.ratings.model.RatingsStats remove(
042: com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(ratingsStats);
045: }
046:
047: public static com.liferay.portlet.ratings.model.RatingsStats update(
048: com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(ratingsStats);
051: }
052:
053: public static com.liferay.portlet.ratings.model.RatingsStats update(
054: com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(ratingsStats, merge);
057: }
058:
059: public static com.liferay.portlet.ratings.model.RatingsStats updateImpl(
060: com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(ratingsStats, merge);
063: }
064:
065: public static com.liferay.portlet.ratings.model.RatingsStats findByPrimaryKey(
066: long statsId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.ratings.NoSuchStatsException {
068: return getPersistence().findByPrimaryKey(statsId);
069: }
070:
071: public static com.liferay.portlet.ratings.model.RatingsStats fetchByPrimaryKey(
072: long statsId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(statsId);
074: }
075:
076: public static com.liferay.portlet.ratings.model.RatingsStats findByC_C(
077: long classNameId, long classPK)
078: throws com.liferay.portal.SystemException,
079: com.liferay.portlet.ratings.NoSuchStatsException {
080: return getPersistence().findByC_C(classNameId, classPK);
081: }
082:
083: public static com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
084: long classNameId, long classPK)
085: throws com.liferay.portal.SystemException {
086: return getPersistence().fetchByC_C(classNameId, classPK);
087: }
088:
089: public static java.util.List findWithDynamicQuery(
090: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
091: throws com.liferay.portal.SystemException {
092: return getPersistence().findWithDynamicQuery(queryInitializer);
093: }
094:
095: public static java.util.List findWithDynamicQuery(
096: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
097: int begin, int end)
098: throws com.liferay.portal.SystemException {
099: return getPersistence().findWithDynamicQuery(queryInitializer,
100: begin, end);
101: }
102:
103: public static java.util.List findAll()
104: throws com.liferay.portal.SystemException {
105: return getPersistence().findAll();
106: }
107:
108: public static java.util.List findAll(int begin, int end)
109: throws com.liferay.portal.SystemException {
110: return getPersistence().findAll(begin, end);
111: }
112:
113: public static java.util.List findAll(int begin, int end,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException {
116: return getPersistence().findAll(begin, end, obc);
117: }
118:
119: public static void removeByC_C(long classNameId, long classPK)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portlet.ratings.NoSuchStatsException {
122: getPersistence().removeByC_C(classNameId, classPK);
123: }
124:
125: public static void removeAll()
126: throws com.liferay.portal.SystemException {
127: getPersistence().removeAll();
128: }
129:
130: public static int countByC_C(long classNameId, long classPK)
131: throws com.liferay.portal.SystemException {
132: return getPersistence().countByC_C(classNameId, classPK);
133: }
134:
135: public static int countAll()
136: throws com.liferay.portal.SystemException {
137: return getPersistence().countAll();
138: }
139:
140: public static RatingsStatsPersistence getPersistence() {
141: return _getUtil()._persistence;
142: }
143:
144: public void setPersistence(RatingsStatsPersistence persistence) {
145: _persistence = persistence;
146: }
147:
148: private static RatingsStatsUtil _getUtil() {
149: if (_util == null) {
150: _util = (RatingsStatsUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
151: .locate(_UTIL);
152: }
153:
154: return _util;
155: }
156:
157: private static final String _UTIL = RatingsStatsUtil.class
158: .getName();
159: private static RatingsStatsUtil _util;
160: private RatingsStatsPersistence _persistence;
161: }
|