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