1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  
26  /**
27   * <a href="UserIdMapperPersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       UserIdMapperPersistenceImpl
36   * @see       UserIdMapperUtil
37   * @generated
38   */
39  public interface UserIdMapperPersistence extends BasePersistence {
40      public void cacheResult(com.liferay.portal.model.UserIdMapper userIdMapper);
41  
42      public void cacheResult(
43          java.util.List<com.liferay.portal.model.UserIdMapper> userIdMappers);
44  
45      public void clearCache();
46  
47      public com.liferay.portal.model.UserIdMapper create(long userIdMapperId);
48  
49      public com.liferay.portal.model.UserIdMapper remove(long userIdMapperId)
50          throws com.liferay.portal.NoSuchUserIdMapperException,
51              com.liferay.portal.SystemException;
52  
53      public com.liferay.portal.model.UserIdMapper remove(
54          com.liferay.portal.model.UserIdMapper userIdMapper)
55          throws com.liferay.portal.SystemException;
56  
57      /**
58       * @deprecated Use {@link #update(UserIdMapper, boolean merge)}.
59       */
60      public com.liferay.portal.model.UserIdMapper update(
61          com.liferay.portal.model.UserIdMapper userIdMapper)
62          throws com.liferay.portal.SystemException;
63  
64      /**
65       * Add, update, or merge, the entity. This method also calls the model
66       * listeners to trigger the proper events associated with adding, deleting,
67       * or updating an entity.
68       *
69       * @param  userIdMapper the entity to add, update, or merge
70       * @param  merge boolean value for whether to merge the entity. The default
71       *         value is false. Setting merge to true is more expensive and
72       *         should only be true when userIdMapper is transient. See
73       *         LEP-5473 for a detailed discussion of this method.
74       * @return the entity that was added, updated, or merged
75       */
76      public com.liferay.portal.model.UserIdMapper update(
77          com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.UserIdMapper updateImpl(
81          com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
82          throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.UserIdMapper findByPrimaryKey(
85          long userIdMapperId)
86          throws com.liferay.portal.NoSuchUserIdMapperException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
90          long userIdMapperId) throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
93          long userId) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
96          long userId, int start, int end)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
100         long userId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.UserIdMapper findByUserId_First(
105         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.NoSuchUserIdMapperException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.UserIdMapper findByUserId_Last(
110         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchUserIdMapperException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
115         long userIdMapperId, long userId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchUserIdMapperException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portal.model.UserIdMapper findByU_T(long userId,
121         java.lang.String type)
122         throws com.liferay.portal.NoSuchUserIdMapperException,
123             com.liferay.portal.SystemException;
124 
125     public com.liferay.portal.model.UserIdMapper fetchByU_T(long userId,
126         java.lang.String type) throws com.liferay.portal.SystemException;
127 
128     public com.liferay.portal.model.UserIdMapper fetchByU_T(long userId,
129         java.lang.String type, boolean retrieveFromCache)
130         throws com.liferay.portal.SystemException;
131 
132     public com.liferay.portal.model.UserIdMapper findByT_E(
133         java.lang.String type, java.lang.String externalUserId)
134         throws com.liferay.portal.NoSuchUserIdMapperException,
135             com.liferay.portal.SystemException;
136 
137     public com.liferay.portal.model.UserIdMapper fetchByT_E(
138         java.lang.String type, java.lang.String externalUserId)
139         throws com.liferay.portal.SystemException;
140 
141     public com.liferay.portal.model.UserIdMapper fetchByT_E(
142         java.lang.String type, java.lang.String externalUserId,
143         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
144 
145     public java.util.List<Object> findWithDynamicQuery(
146         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147         throws com.liferay.portal.SystemException;
148 
149     public java.util.List<Object> findWithDynamicQuery(
150         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151         int end) throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
157         int start, int end) throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
160         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException;
162 
163     public void removeByUserId(long userId)
164         throws com.liferay.portal.SystemException;
165 
166     public void removeByU_T(long userId, java.lang.String type)
167         throws com.liferay.portal.NoSuchUserIdMapperException,
168             com.liferay.portal.SystemException;
169 
170     public void removeByT_E(java.lang.String type,
171         java.lang.String externalUserId)
172         throws com.liferay.portal.NoSuchUserIdMapperException,
173             com.liferay.portal.SystemException;
174 
175     public void removeAll() throws com.liferay.portal.SystemException;
176 
177     public int countByUserId(long userId)
178         throws com.liferay.portal.SystemException;
179 
180     public int countByU_T(long userId, java.lang.String type)
181         throws com.liferay.portal.SystemException;
182 
183     public int countByT_E(java.lang.String type, java.lang.String externalUserId)
184         throws com.liferay.portal.SystemException;
185 
186     public int countAll() throws com.liferay.portal.SystemException;
187 }