1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.UserIdMapper;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="UserIdMapperUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       UserIdMapperPersistence
34   * @see       UserIdMapperPersistenceImpl
35   * @generated
36   */
37  public class UserIdMapperUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static UserIdMapper remove(UserIdMapper userIdMapper)
65          throws SystemException {
66          return getPersistence().remove(userIdMapper);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static UserIdMapper update(UserIdMapper userIdMapper, boolean merge)
73          throws SystemException {
74          return getPersistence().update(userIdMapper, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portal.model.UserIdMapper userIdMapper) {
79          getPersistence().cacheResult(userIdMapper);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portal.model.UserIdMapper> userIdMappers) {
84          getPersistence().cacheResult(userIdMappers);
85      }
86  
87      public static com.liferay.portal.model.UserIdMapper create(
88          long userIdMapperId) {
89          return getPersistence().create(userIdMapperId);
90      }
91  
92      public static com.liferay.portal.model.UserIdMapper remove(
93          long userIdMapperId)
94          throws com.liferay.portal.NoSuchUserIdMapperException,
95              com.liferay.portal.kernel.exception.SystemException {
96          return getPersistence().remove(userIdMapperId);
97      }
98  
99      public static com.liferay.portal.model.UserIdMapper updateImpl(
100         com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getPersistence().updateImpl(userIdMapper, merge);
103     }
104 
105     public static com.liferay.portal.model.UserIdMapper findByPrimaryKey(
106         long userIdMapperId)
107         throws com.liferay.portal.NoSuchUserIdMapperException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return getPersistence().findByPrimaryKey(userIdMapperId);
110     }
111 
112     public static com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
113         long userIdMapperId)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getPersistence().fetchByPrimaryKey(userIdMapperId);
116     }
117 
118     public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
119         long userId) throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().findByUserId(userId);
121     }
122 
123     public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
124         long userId, int start, int end)
125         throws com.liferay.portal.kernel.exception.SystemException {
126         return getPersistence().findByUserId(userId, start, end);
127     }
128 
129     public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
130         long userId, int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence()
134                    .findByUserId(userId, start, end, orderByComparator);
135     }
136 
137     public static com.liferay.portal.model.UserIdMapper findByUserId_First(
138         long userId,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.NoSuchUserIdMapperException,
141             com.liferay.portal.kernel.exception.SystemException {
142         return getPersistence().findByUserId_First(userId, orderByComparator);
143     }
144 
145     public static com.liferay.portal.model.UserIdMapper findByUserId_Last(
146         long userId,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.NoSuchUserIdMapperException,
149             com.liferay.portal.kernel.exception.SystemException {
150         return getPersistence().findByUserId_Last(userId, orderByComparator);
151     }
152 
153     public static com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
154         long userIdMapperId, long userId,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.NoSuchUserIdMapperException,
157             com.liferay.portal.kernel.exception.SystemException {
158         return getPersistence()
159                    .findByUserId_PrevAndNext(userIdMapperId, userId,
160             orderByComparator);
161     }
162 
163     public static com.liferay.portal.model.UserIdMapper findByU_T(long userId,
164         java.lang.String type)
165         throws com.liferay.portal.NoSuchUserIdMapperException,
166             com.liferay.portal.kernel.exception.SystemException {
167         return getPersistence().findByU_T(userId, type);
168     }
169 
170     public static com.liferay.portal.model.UserIdMapper fetchByU_T(
171         long userId, java.lang.String type)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().fetchByU_T(userId, type);
174     }
175 
176     public static com.liferay.portal.model.UserIdMapper fetchByU_T(
177         long userId, java.lang.String type, boolean retrieveFromCache)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByU_T(userId, type, retrieveFromCache);
180     }
181 
182     public static com.liferay.portal.model.UserIdMapper findByT_E(
183         java.lang.String type, java.lang.String externalUserId)
184         throws com.liferay.portal.NoSuchUserIdMapperException,
185             com.liferay.portal.kernel.exception.SystemException {
186         return getPersistence().findByT_E(type, externalUserId);
187     }
188 
189     public static com.liferay.portal.model.UserIdMapper fetchByT_E(
190         java.lang.String type, java.lang.String externalUserId)
191         throws com.liferay.portal.kernel.exception.SystemException {
192         return getPersistence().fetchByT_E(type, externalUserId);
193     }
194 
195     public static com.liferay.portal.model.UserIdMapper fetchByT_E(
196         java.lang.String type, java.lang.String externalUserId,
197         boolean retrieveFromCache)
198         throws com.liferay.portal.kernel.exception.SystemException {
199         return getPersistence()
200                    .fetchByT_E(type, externalUserId, retrieveFromCache);
201     }
202 
203     public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
204         throws com.liferay.portal.kernel.exception.SystemException {
205         return getPersistence().findAll();
206     }
207 
208     public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
209         int start, int end)
210         throws com.liferay.portal.kernel.exception.SystemException {
211         return getPersistence().findAll(start, end);
212     }
213 
214     public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
215         int start, int end,
216         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().findAll(start, end, orderByComparator);
219     }
220 
221     public static void removeByUserId(long userId)
222         throws com.liferay.portal.kernel.exception.SystemException {
223         getPersistence().removeByUserId(userId);
224     }
225 
226     public static void removeByU_T(long userId, java.lang.String type)
227         throws com.liferay.portal.NoSuchUserIdMapperException,
228             com.liferay.portal.kernel.exception.SystemException {
229         getPersistence().removeByU_T(userId, type);
230     }
231 
232     public static void removeByT_E(java.lang.String type,
233         java.lang.String externalUserId)
234         throws com.liferay.portal.NoSuchUserIdMapperException,
235             com.liferay.portal.kernel.exception.SystemException {
236         getPersistence().removeByT_E(type, externalUserId);
237     }
238 
239     public static void removeAll()
240         throws com.liferay.portal.kernel.exception.SystemException {
241         getPersistence().removeAll();
242     }
243 
244     public static int countByUserId(long userId)
245         throws com.liferay.portal.kernel.exception.SystemException {
246         return getPersistence().countByUserId(userId);
247     }
248 
249     public static int countByU_T(long userId, java.lang.String type)
250         throws com.liferay.portal.kernel.exception.SystemException {
251         return getPersistence().countByU_T(userId, type);
252     }
253 
254     public static int countByT_E(java.lang.String type,
255         java.lang.String externalUserId)
256         throws com.liferay.portal.kernel.exception.SystemException {
257         return getPersistence().countByT_E(type, externalUserId);
258     }
259 
260     public static int countAll()
261         throws com.liferay.portal.kernel.exception.SystemException {
262         return getPersistence().countAll();
263     }
264 
265     public static UserIdMapperPersistence getPersistence() {
266         if (_persistence == null) {
267             _persistence = (UserIdMapperPersistence)PortalBeanLocatorUtil.locate(UserIdMapperPersistence.class.getName());
268         }
269 
270         return _persistence;
271     }
272 
273     public void setPersistence(UserIdMapperPersistence persistence) {
274         _persistence = persistence;
275     }
276 
277     private static UserIdMapperPersistence _persistence;
278 }