1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.UserIdMapper update(
48          com.liferay.portal.model.UserIdMapper userIdMapper)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.UserIdMapper updateImpl(
52          com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.UserIdMapper findByPrimaryKey(
56          long userIdMapperId)
57          throws com.liferay.portal.NoSuchUserIdMapperException,
58              com.liferay.portal.SystemException;
59  
60      public com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
61          long userIdMapperId) throws com.liferay.portal.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
64          long userId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
67          long userId, int start, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
71          long userId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
73          throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portal.model.UserIdMapper findByUserId_First(
76          long userId,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.NoSuchUserIdMapperException,
79              com.liferay.portal.SystemException;
80  
81      public com.liferay.portal.model.UserIdMapper findByUserId_Last(
82          long userId,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.NoSuchUserIdMapperException,
85              com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
88          long userIdMapperId, long userId,
89          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
90          throws com.liferay.portal.NoSuchUserIdMapperException,
91              com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.UserIdMapper findByU_T(long userId,
94          java.lang.String type)
95          throws com.liferay.portal.NoSuchUserIdMapperException,
96              com.liferay.portal.SystemException;
97  
98      public com.liferay.portal.model.UserIdMapper fetchByU_T(long userId,
99          java.lang.String type) throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portal.model.UserIdMapper fetchByU_T(long userId,
102         java.lang.String type, boolean retrieveFromCache)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portal.model.UserIdMapper findByT_E(
106         java.lang.String type, java.lang.String externalUserId)
107         throws com.liferay.portal.NoSuchUserIdMapperException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.UserIdMapper fetchByT_E(
111         java.lang.String type, java.lang.String externalUserId)
112         throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.UserIdMapper fetchByT_E(
115         java.lang.String type, java.lang.String externalUserId,
116         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
119         throws com.liferay.portal.SystemException;
120 
121     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
122         int start, int end) throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
125         int start, int end,
126         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127         throws com.liferay.portal.SystemException;
128 
129     public void removeByUserId(long userId)
130         throws com.liferay.portal.SystemException;
131 
132     public void removeByU_T(long userId, java.lang.String type)
133         throws com.liferay.portal.NoSuchUserIdMapperException,
134             com.liferay.portal.SystemException;
135 
136     public void removeByT_E(java.lang.String type,
137         java.lang.String externalUserId)
138         throws com.liferay.portal.NoSuchUserIdMapperException,
139             com.liferay.portal.SystemException;
140 
141     public void removeAll() throws com.liferay.portal.SystemException;
142 
143     public int countByUserId(long userId)
144         throws com.liferay.portal.SystemException;
145 
146     public int countByU_T(long userId, java.lang.String type)
147         throws com.liferay.portal.SystemException;
148 
149     public int countByT_E(java.lang.String type, java.lang.String externalUserId)
150         throws com.liferay.portal.SystemException;
151 
152     public int countAll() throws com.liferay.portal.SystemException;
153 }