001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.UserIdMapper;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the user ID mapper service. This utility wraps {@link UserIdMapperPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see UserIdMapperPersistence
036     * @see UserIdMapperPersistenceImpl
037     * @generated
038     */
039    public class UserIdMapperUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(UserIdMapper userIdMapper) {
057                    getPersistence().clearCache(userIdMapper);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<UserIdMapper> findWithDynamicQuery(
072                    DynamicQuery dynamicQuery) throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<UserIdMapper> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<UserIdMapper> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
098             */
099            public static UserIdMapper update(UserIdMapper userIdMapper, boolean merge)
100                    throws SystemException {
101                    return getPersistence().update(userIdMapper, merge);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
106             */
107            public static UserIdMapper update(UserIdMapper userIdMapper, boolean merge,
108                    ServiceContext serviceContext) throws SystemException {
109                    return getPersistence().update(userIdMapper, merge, serviceContext);
110            }
111    
112            /**
113            * Caches the user ID mapper in the entity cache if it is enabled.
114            *
115            * @param userIdMapper the user ID mapper
116            */
117            public static void cacheResult(
118                    com.liferay.portal.model.UserIdMapper userIdMapper) {
119                    getPersistence().cacheResult(userIdMapper);
120            }
121    
122            /**
123            * Caches the user ID mappers in the entity cache if it is enabled.
124            *
125            * @param userIdMappers the user ID mappers
126            */
127            public static void cacheResult(
128                    java.util.List<com.liferay.portal.model.UserIdMapper> userIdMappers) {
129                    getPersistence().cacheResult(userIdMappers);
130            }
131    
132            /**
133            * Creates a new user ID mapper with the primary key. Does not add the user ID mapper to the database.
134            *
135            * @param userIdMapperId the primary key for the new user ID mapper
136            * @return the new user ID mapper
137            */
138            public static com.liferay.portal.model.UserIdMapper create(
139                    long userIdMapperId) {
140                    return getPersistence().create(userIdMapperId);
141            }
142    
143            /**
144            * Removes the user ID mapper with the primary key from the database. Also notifies the appropriate model listeners.
145            *
146            * @param userIdMapperId the primary key of the user ID mapper
147            * @return the user ID mapper that was removed
148            * @throws com.liferay.portal.NoSuchUserIdMapperException if a user ID mapper with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public static com.liferay.portal.model.UserIdMapper remove(
152                    long userIdMapperId)
153                    throws com.liferay.portal.NoSuchUserIdMapperException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return getPersistence().remove(userIdMapperId);
156            }
157    
158            public static com.liferay.portal.model.UserIdMapper updateImpl(
159                    com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return getPersistence().updateImpl(userIdMapper, merge);
162            }
163    
164            /**
165            * Returns the user ID mapper with the primary key or throws a {@link com.liferay.portal.NoSuchUserIdMapperException} if it could not be found.
166            *
167            * @param userIdMapperId the primary key of the user ID mapper
168            * @return the user ID mapper
169            * @throws com.liferay.portal.NoSuchUserIdMapperException if a user ID mapper with the primary key could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public static com.liferay.portal.model.UserIdMapper findByPrimaryKey(
173                    long userIdMapperId)
174                    throws com.liferay.portal.NoSuchUserIdMapperException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return getPersistence().findByPrimaryKey(userIdMapperId);
177            }
178    
179            /**
180            * Returns the user ID mapper with the primary key or returns <code>null</code> if it could not be found.
181            *
182            * @param userIdMapperId the primary key of the user ID mapper
183            * @return the user ID mapper, or <code>null</code> if a user ID mapper with the primary key could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public static com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
187                    long userIdMapperId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return getPersistence().fetchByPrimaryKey(userIdMapperId);
190            }
191    
192            /**
193            * Returns all the user ID mappers where userId = &#63;.
194            *
195            * @param userId the user ID
196            * @return the matching user ID mappers
197            * @throws SystemException if a system exception occurred
198            */
199            public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
200                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
201                    return getPersistence().findByUserId(userId);
202            }
203    
204            /**
205            * Returns a range of all the user ID mappers where userId = &#63;.
206            *
207            * <p>
208            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
209            * </p>
210            *
211            * @param userId the user ID
212            * @param start the lower bound of the range of user ID mappers
213            * @param end the upper bound of the range of user ID mappers (not inclusive)
214            * @return the range of matching user ID mappers
215            * @throws SystemException if a system exception occurred
216            */
217            public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
218                    long userId, int start, int end)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return getPersistence().findByUserId(userId, start, end);
221            }
222    
223            /**
224            * Returns an ordered range of all the user ID mappers where userId = &#63;.
225            *
226            * <p>
227            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
228            * </p>
229            *
230            * @param userId the user ID
231            * @param start the lower bound of the range of user ID mappers
232            * @param end the upper bound of the range of user ID mappers (not inclusive)
233            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
234            * @return the ordered range of matching user ID mappers
235            * @throws SystemException if a system exception occurred
236            */
237            public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
238                    long userId, int start, int end,
239                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240                    throws com.liferay.portal.kernel.exception.SystemException {
241                    return getPersistence()
242                                       .findByUserId(userId, start, end, orderByComparator);
243            }
244    
245            /**
246            * Returns the first user ID mapper in the ordered set where userId = &#63;.
247            *
248            * @param userId the user ID
249            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
250            * @return the first matching user ID mapper
251            * @throws com.liferay.portal.NoSuchUserIdMapperException if a matching user ID mapper could not be found
252            * @throws SystemException if a system exception occurred
253            */
254            public static com.liferay.portal.model.UserIdMapper findByUserId_First(
255                    long userId,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.NoSuchUserIdMapperException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return getPersistence().findByUserId_First(userId, orderByComparator);
260            }
261    
262            /**
263            * Returns the first user ID mapper in the ordered set where userId = &#63;.
264            *
265            * @param userId the user ID
266            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
267            * @return the first matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found
268            * @throws SystemException if a system exception occurred
269            */
270            public static com.liferay.portal.model.UserIdMapper fetchByUserId_First(
271                    long userId,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return getPersistence().fetchByUserId_First(userId, orderByComparator);
275            }
276    
277            /**
278            * Returns the last user ID mapper in the ordered set where userId = &#63;.
279            *
280            * @param userId the user ID
281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
282            * @return the last matching user ID mapper
283            * @throws com.liferay.portal.NoSuchUserIdMapperException if a matching user ID mapper could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public static com.liferay.portal.model.UserIdMapper findByUserId_Last(
287                    long userId,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.NoSuchUserIdMapperException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return getPersistence().findByUserId_Last(userId, orderByComparator);
292            }
293    
294            /**
295            * Returns the last user ID mapper in the ordered set where userId = &#63;.
296            *
297            * @param userId the user ID
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the last matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public static com.liferay.portal.model.UserIdMapper fetchByUserId_Last(
303                    long userId,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return getPersistence().fetchByUserId_Last(userId, orderByComparator);
307            }
308    
309            /**
310            * Returns the user ID mappers before and after the current user ID mapper in the ordered set where userId = &#63;.
311            *
312            * @param userIdMapperId the primary key of the current user ID mapper
313            * @param userId the user ID
314            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
315            * @return the previous, current, and next user ID mapper
316            * @throws com.liferay.portal.NoSuchUserIdMapperException if a user ID mapper with the primary key could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public static com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
320                    long userIdMapperId, long userId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.NoSuchUserIdMapperException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return getPersistence()
325                                       .findByUserId_PrevAndNext(userIdMapperId, userId,
326                            orderByComparator);
327            }
328    
329            /**
330            * Returns the user ID mapper where userId = &#63; and type = &#63; or throws a {@link com.liferay.portal.NoSuchUserIdMapperException} if it could not be found.
331            *
332            * @param userId the user ID
333            * @param type the type
334            * @return the matching user ID mapper
335            * @throws com.liferay.portal.NoSuchUserIdMapperException if a matching user ID mapper could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public static com.liferay.portal.model.UserIdMapper findByU_T(long userId,
339                    java.lang.String type)
340                    throws com.liferay.portal.NoSuchUserIdMapperException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().findByU_T(userId, type);
343            }
344    
345            /**
346            * Returns the user ID mapper where userId = &#63; and type = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
347            *
348            * @param userId the user ID
349            * @param type the type
350            * @return the matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public static com.liferay.portal.model.UserIdMapper fetchByU_T(
354                    long userId, java.lang.String type)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().fetchByU_T(userId, type);
357            }
358    
359            /**
360            * Returns the user ID mapper where userId = &#63; and type = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
361            *
362            * @param userId the user ID
363            * @param type the type
364            * @param retrieveFromCache whether to use the finder cache
365            * @return the matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found
366            * @throws SystemException if a system exception occurred
367            */
368            public static com.liferay.portal.model.UserIdMapper fetchByU_T(
369                    long userId, java.lang.String type, boolean retrieveFromCache)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return getPersistence().fetchByU_T(userId, type, retrieveFromCache);
372            }
373    
374            /**
375            * Returns the user ID mapper where type = &#63; and externalUserId = &#63; or throws a {@link com.liferay.portal.NoSuchUserIdMapperException} if it could not be found.
376            *
377            * @param type the type
378            * @param externalUserId the external user ID
379            * @return the matching user ID mapper
380            * @throws com.liferay.portal.NoSuchUserIdMapperException if a matching user ID mapper could not be found
381            * @throws SystemException if a system exception occurred
382            */
383            public static com.liferay.portal.model.UserIdMapper findByT_E(
384                    java.lang.String type, java.lang.String externalUserId)
385                    throws com.liferay.portal.NoSuchUserIdMapperException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return getPersistence().findByT_E(type, externalUserId);
388            }
389    
390            /**
391            * Returns the user ID mapper where type = &#63; and externalUserId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
392            *
393            * @param type the type
394            * @param externalUserId the external user ID
395            * @return the matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found
396            * @throws SystemException if a system exception occurred
397            */
398            public static com.liferay.portal.model.UserIdMapper fetchByT_E(
399                    java.lang.String type, java.lang.String externalUserId)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return getPersistence().fetchByT_E(type, externalUserId);
402            }
403    
404            /**
405            * Returns the user ID mapper where type = &#63; and externalUserId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
406            *
407            * @param type the type
408            * @param externalUserId the external user ID
409            * @param retrieveFromCache whether to use the finder cache
410            * @return the matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public static com.liferay.portal.model.UserIdMapper fetchByT_E(
414                    java.lang.String type, java.lang.String externalUserId,
415                    boolean retrieveFromCache)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return getPersistence()
418                                       .fetchByT_E(type, externalUserId, retrieveFromCache);
419            }
420    
421            /**
422            * Returns all the user ID mappers.
423            *
424            * @return the user ID mappers
425            * @throws SystemException if a system exception occurred
426            */
427            public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return getPersistence().findAll();
430            }
431    
432            /**
433            * Returns a range of all the user ID mappers.
434            *
435            * <p>
436            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
437            * </p>
438            *
439            * @param start the lower bound of the range of user ID mappers
440            * @param end the upper bound of the range of user ID mappers (not inclusive)
441            * @return the range of user ID mappers
442            * @throws SystemException if a system exception occurred
443            */
444            public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
445                    int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return getPersistence().findAll(start, end);
448            }
449    
450            /**
451            * Returns an ordered range of all the user ID mappers.
452            *
453            * <p>
454            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
455            * </p>
456            *
457            * @param start the lower bound of the range of user ID mappers
458            * @param end the upper bound of the range of user ID mappers (not inclusive)
459            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
460            * @return the ordered range of user ID mappers
461            * @throws SystemException if a system exception occurred
462            */
463            public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
464                    int start, int end,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    return getPersistence().findAll(start, end, orderByComparator);
468            }
469    
470            /**
471            * Removes all the user ID mappers where userId = &#63; from the database.
472            *
473            * @param userId the user ID
474            * @throws SystemException if a system exception occurred
475            */
476            public static void removeByUserId(long userId)
477                    throws com.liferay.portal.kernel.exception.SystemException {
478                    getPersistence().removeByUserId(userId);
479            }
480    
481            /**
482            * Removes the user ID mapper where userId = &#63; and type = &#63; from the database.
483            *
484            * @param userId the user ID
485            * @param type the type
486            * @return the user ID mapper that was removed
487            * @throws SystemException if a system exception occurred
488            */
489            public static com.liferay.portal.model.UserIdMapper removeByU_T(
490                    long userId, java.lang.String type)
491                    throws com.liferay.portal.NoSuchUserIdMapperException,
492                            com.liferay.portal.kernel.exception.SystemException {
493                    return getPersistence().removeByU_T(userId, type);
494            }
495    
496            /**
497            * Removes the user ID mapper where type = &#63; and externalUserId = &#63; from the database.
498            *
499            * @param type the type
500            * @param externalUserId the external user ID
501            * @return the user ID mapper that was removed
502            * @throws SystemException if a system exception occurred
503            */
504            public static com.liferay.portal.model.UserIdMapper removeByT_E(
505                    java.lang.String type, java.lang.String externalUserId)
506                    throws com.liferay.portal.NoSuchUserIdMapperException,
507                            com.liferay.portal.kernel.exception.SystemException {
508                    return getPersistence().removeByT_E(type, externalUserId);
509            }
510    
511            /**
512            * Removes all the user ID mappers from the database.
513            *
514            * @throws SystemException if a system exception occurred
515            */
516            public static void removeAll()
517                    throws com.liferay.portal.kernel.exception.SystemException {
518                    getPersistence().removeAll();
519            }
520    
521            /**
522            * Returns the number of user ID mappers where userId = &#63;.
523            *
524            * @param userId the user ID
525            * @return the number of matching user ID mappers
526            * @throws SystemException if a system exception occurred
527            */
528            public static int countByUserId(long userId)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getPersistence().countByUserId(userId);
531            }
532    
533            /**
534            * Returns the number of user ID mappers where userId = &#63; and type = &#63;.
535            *
536            * @param userId the user ID
537            * @param type the type
538            * @return the number of matching user ID mappers
539            * @throws SystemException if a system exception occurred
540            */
541            public static int countByU_T(long userId, java.lang.String type)
542                    throws com.liferay.portal.kernel.exception.SystemException {
543                    return getPersistence().countByU_T(userId, type);
544            }
545    
546            /**
547            * Returns the number of user ID mappers where type = &#63; and externalUserId = &#63;.
548            *
549            * @param type the type
550            * @param externalUserId the external user ID
551            * @return the number of matching user ID mappers
552            * @throws SystemException if a system exception occurred
553            */
554            public static int countByT_E(java.lang.String type,
555                    java.lang.String externalUserId)
556                    throws com.liferay.portal.kernel.exception.SystemException {
557                    return getPersistence().countByT_E(type, externalUserId);
558            }
559    
560            /**
561            * Returns the number of user ID mappers.
562            *
563            * @return the number of user ID mappers
564            * @throws SystemException if a system exception occurred
565            */
566            public static int countAll()
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getPersistence().countAll();
569            }
570    
571            public static UserIdMapperPersistence getPersistence() {
572                    if (_persistence == null) {
573                            _persistence = (UserIdMapperPersistence)PortalBeanLocatorUtil.locate(UserIdMapperPersistence.class.getName());
574    
575                            ReferenceRegistry.registerReference(UserIdMapperUtil.class,
576                                    "_persistence");
577                    }
578    
579                    return _persistence;
580            }
581    
582            /**
583             * @deprecated
584             */
585            public void setPersistence(UserIdMapperPersistence persistence) {
586            }
587    
588            private static UserIdMapperPersistence _persistence;
589    }