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.portal.service.persistence;
022:
023: /**
024: * <a href="LayoutSetUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class LayoutSetUtil {
030: public static com.liferay.portal.model.LayoutSet create(
031: long layoutSetId) {
032: return getPersistence().create(layoutSetId);
033: }
034:
035: public static com.liferay.portal.model.LayoutSet remove(
036: long layoutSetId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchLayoutSetException {
039: return getPersistence().remove(layoutSetId);
040: }
041:
042: public static com.liferay.portal.model.LayoutSet remove(
043: com.liferay.portal.model.LayoutSet layoutSet)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(layoutSet);
046: }
047:
048: public static com.liferay.portal.model.LayoutSet update(
049: com.liferay.portal.model.LayoutSet layoutSet)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(layoutSet);
052: }
053:
054: public static com.liferay.portal.model.LayoutSet update(
055: com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
056: throws com.liferay.portal.SystemException {
057: return getPersistence().update(layoutSet, merge);
058: }
059:
060: public static com.liferay.portal.model.LayoutSet updateImpl(
061: com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
062: throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(layoutSet, merge);
064: }
065:
066: public static com.liferay.portal.model.LayoutSet findByPrimaryKey(
067: long layoutSetId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchLayoutSetException {
070: return getPersistence().findByPrimaryKey(layoutSetId);
071: }
072:
073: public static com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
074: long layoutSetId) throws com.liferay.portal.SystemException {
075: return getPersistence().fetchByPrimaryKey(layoutSetId);
076: }
077:
078: public static java.util.List findByGroupId(long groupId)
079: throws com.liferay.portal.SystemException {
080: return getPersistence().findByGroupId(groupId);
081: }
082:
083: public static java.util.List findByGroupId(long groupId, int begin,
084: int end) throws com.liferay.portal.SystemException {
085: return getPersistence().findByGroupId(groupId, begin, end);
086: }
087:
088: public static java.util.List findByGroupId(long groupId, int begin,
089: int end,
090: com.liferay.portal.kernel.util.OrderByComparator obc)
091: throws com.liferay.portal.SystemException {
092: return getPersistence().findByGroupId(groupId, begin, end, obc);
093: }
094:
095: public static com.liferay.portal.model.LayoutSet findByGroupId_First(
096: long groupId,
097: com.liferay.portal.kernel.util.OrderByComparator obc)
098: throws com.liferay.portal.SystemException,
099: com.liferay.portal.NoSuchLayoutSetException {
100: return getPersistence().findByGroupId_First(groupId, obc);
101: }
102:
103: public static com.liferay.portal.model.LayoutSet findByGroupId_Last(
104: long groupId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portal.NoSuchLayoutSetException {
108: return getPersistence().findByGroupId_Last(groupId, obc);
109: }
110:
111: public static com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
112: long layoutSetId, long groupId,
113: com.liferay.portal.kernel.util.OrderByComparator obc)
114: throws com.liferay.portal.SystemException,
115: com.liferay.portal.NoSuchLayoutSetException {
116: return getPersistence().findByGroupId_PrevAndNext(layoutSetId,
117: groupId, obc);
118: }
119:
120: public static com.liferay.portal.model.LayoutSet findByVirtualHost(
121: java.lang.String virtualHost)
122: throws com.liferay.portal.SystemException,
123: com.liferay.portal.NoSuchLayoutSetException {
124: return getPersistence().findByVirtualHost(virtualHost);
125: }
126:
127: public static com.liferay.portal.model.LayoutSet fetchByVirtualHost(
128: java.lang.String virtualHost)
129: throws com.liferay.portal.SystemException {
130: return getPersistence().fetchByVirtualHost(virtualHost);
131: }
132:
133: public static com.liferay.portal.model.LayoutSet findByG_P(
134: long groupId, boolean privateLayout)
135: throws com.liferay.portal.SystemException,
136: com.liferay.portal.NoSuchLayoutSetException {
137: return getPersistence().findByG_P(groupId, privateLayout);
138: }
139:
140: public static com.liferay.portal.model.LayoutSet fetchByG_P(
141: long groupId, boolean privateLayout)
142: throws com.liferay.portal.SystemException {
143: return getPersistence().fetchByG_P(groupId, privateLayout);
144: }
145:
146: public static java.util.List findWithDynamicQuery(
147: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
148: throws com.liferay.portal.SystemException {
149: return getPersistence().findWithDynamicQuery(queryInitializer);
150: }
151:
152: public static java.util.List findWithDynamicQuery(
153: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
154: int begin, int end)
155: throws com.liferay.portal.SystemException {
156: return getPersistence().findWithDynamicQuery(queryInitializer,
157: begin, end);
158: }
159:
160: public static java.util.List findAll()
161: throws com.liferay.portal.SystemException {
162: return getPersistence().findAll();
163: }
164:
165: public static java.util.List findAll(int begin, int end)
166: throws com.liferay.portal.SystemException {
167: return getPersistence().findAll(begin, end);
168: }
169:
170: public static java.util.List findAll(int begin, int end,
171: com.liferay.portal.kernel.util.OrderByComparator obc)
172: throws com.liferay.portal.SystemException {
173: return getPersistence().findAll(begin, end, obc);
174: }
175:
176: public static void removeByGroupId(long groupId)
177: throws com.liferay.portal.SystemException {
178: getPersistence().removeByGroupId(groupId);
179: }
180:
181: public static void removeByVirtualHost(java.lang.String virtualHost)
182: throws com.liferay.portal.SystemException,
183: com.liferay.portal.NoSuchLayoutSetException {
184: getPersistence().removeByVirtualHost(virtualHost);
185: }
186:
187: public static void removeByG_P(long groupId, boolean privateLayout)
188: throws com.liferay.portal.SystemException,
189: com.liferay.portal.NoSuchLayoutSetException {
190: getPersistence().removeByG_P(groupId, privateLayout);
191: }
192:
193: public static void removeAll()
194: throws com.liferay.portal.SystemException {
195: getPersistence().removeAll();
196: }
197:
198: public static int countByGroupId(long groupId)
199: throws com.liferay.portal.SystemException {
200: return getPersistence().countByGroupId(groupId);
201: }
202:
203: public static int countByVirtualHost(java.lang.String virtualHost)
204: throws com.liferay.portal.SystemException {
205: return getPersistence().countByVirtualHost(virtualHost);
206: }
207:
208: public static int countByG_P(long groupId, boolean privateLayout)
209: throws com.liferay.portal.SystemException {
210: return getPersistence().countByG_P(groupId, privateLayout);
211: }
212:
213: public static int countAll()
214: throws com.liferay.portal.SystemException {
215: return getPersistence().countAll();
216: }
217:
218: public static LayoutSetPersistence getPersistence() {
219: return _getUtil()._persistence;
220: }
221:
222: public void setPersistence(LayoutSetPersistence persistence) {
223: _persistence = persistence;
224: }
225:
226: private static LayoutSetUtil _getUtil() {
227: if (_util == null) {
228: _util = (LayoutSetUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
229: .locate(_UTIL);
230: }
231:
232: return _util;
233: }
234:
235: private static final String _UTIL = LayoutSetUtil.class.getName();
236: private static LayoutSetUtil _util;
237: private LayoutSetPersistence _persistence;
238: }
|