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.model.UserIdMapper;
18  
19  /**
20   * <a href="UserIdMapperPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       UserIdMapperPersistenceImpl
29   * @see       UserIdMapperUtil
30   * @generated
31   */
32  public interface UserIdMapperPersistence extends BasePersistence<UserIdMapper> {
33      public void cacheResult(com.liferay.portal.model.UserIdMapper userIdMapper);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.UserIdMapper> userIdMappers);
37  
38      public com.liferay.portal.model.UserIdMapper create(long userIdMapperId);
39  
40      public com.liferay.portal.model.UserIdMapper remove(long userIdMapperId)
41          throws com.liferay.portal.NoSuchUserIdMapperException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.UserIdMapper updateImpl(
45          com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.UserIdMapper findByPrimaryKey(
49          long userIdMapperId)
50          throws com.liferay.portal.NoSuchUserIdMapperException,
51              com.liferay.portal.kernel.exception.SystemException;
52  
53      public com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
54          long userIdMapperId)
55          throws com.liferay.portal.kernel.exception.SystemException;
56  
57      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
58          long userId) throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
61          long userId, int start, int end)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
65          long userId, int start, int end,
66          com.liferay.portal.kernel.util.OrderByComparator obc)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public com.liferay.portal.model.UserIdMapper findByUserId_First(
70          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
71          throws com.liferay.portal.NoSuchUserIdMapperException,
72              com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.UserIdMapper findByUserId_Last(
75          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchUserIdMapperException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
80          long userIdMapperId, long userId,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.NoSuchUserIdMapperException,
83              com.liferay.portal.kernel.exception.SystemException;
84  
85      public com.liferay.portal.model.UserIdMapper findByU_T(long userId,
86          java.lang.String type)
87          throws com.liferay.portal.NoSuchUserIdMapperException,
88              com.liferay.portal.kernel.exception.SystemException;
89  
90      public com.liferay.portal.model.UserIdMapper fetchByU_T(long userId,
91          java.lang.String type)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      public com.liferay.portal.model.UserIdMapper fetchByU_T(long userId,
95          java.lang.String type, boolean retrieveFromCache)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portal.model.UserIdMapper findByT_E(
99          java.lang.String type, java.lang.String externalUserId)
100         throws com.liferay.portal.NoSuchUserIdMapperException,
101             com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portal.model.UserIdMapper fetchByT_E(
104         java.lang.String type, java.lang.String externalUserId)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portal.model.UserIdMapper fetchByT_E(
108         java.lang.String type, java.lang.String externalUserId,
109         boolean retrieveFromCache)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
116         int start, int end)
117         throws com.liferay.portal.kernel.exception.SystemException;
118 
119     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
120         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public void removeByUserId(long userId)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public void removeByU_T(long userId, java.lang.String type)
127         throws com.liferay.portal.NoSuchUserIdMapperException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public void removeByT_E(java.lang.String type,
131         java.lang.String externalUserId)
132         throws com.liferay.portal.NoSuchUserIdMapperException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public void removeAll()
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public int countByUserId(long userId)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public int countByU_T(long userId, java.lang.String type)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public int countByT_E(java.lang.String type, java.lang.String externalUserId)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public int countAll()
148         throws com.liferay.portal.kernel.exception.SystemException;
149 }