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