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 obc)
73          throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portal.model.UserIdMapper findByUserId_First(
76          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.NoSuchUserIdMapperException,
78              com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.UserIdMapper findByUserId_Last(
81          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.NoSuchUserIdMapperException,
83              com.liferay.portal.SystemException;
84  
85      public com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
86          long userIdMapperId, long userId,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.NoSuchUserIdMapperException,
89              com.liferay.portal.SystemException;
90  
91      public com.liferay.portal.model.UserIdMapper findByU_T(long userId,
92          java.lang.String type)
93          throws com.liferay.portal.NoSuchUserIdMapperException,
94              com.liferay.portal.SystemException;
95  
96      public com.liferay.portal.model.UserIdMapper fetchByU_T(long userId,
97          java.lang.String type) throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.UserIdMapper fetchByU_T(long userId,
100         java.lang.String type, boolean retrieveFromCache)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portal.model.UserIdMapper findByT_E(
104         java.lang.String type, java.lang.String externalUserId)
105         throws com.liferay.portal.NoSuchUserIdMapperException,
106             com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.UserIdMapper fetchByT_E(
109         java.lang.String type, java.lang.String externalUserId)
110         throws com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.UserIdMapper fetchByT_E(
113         java.lang.String type, java.lang.String externalUserId,
114         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
117         throws com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
120         int start, int end) throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
123         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException;
125 
126     public void removeByUserId(long userId)
127         throws com.liferay.portal.SystemException;
128 
129     public void removeByU_T(long userId, java.lang.String type)
130         throws com.liferay.portal.NoSuchUserIdMapperException,
131             com.liferay.portal.SystemException;
132 
133     public void removeByT_E(java.lang.String type,
134         java.lang.String externalUserId)
135         throws com.liferay.portal.NoSuchUserIdMapperException,
136             com.liferay.portal.SystemException;
137 
138     public void removeAll() throws com.liferay.portal.SystemException;
139 
140     public int countByUserId(long userId)
141         throws com.liferay.portal.SystemException;
142 
143     public int countByU_T(long userId, java.lang.String type)
144         throws com.liferay.portal.SystemException;
145 
146     public int countByT_E(java.lang.String type, java.lang.String externalUserId)
147         throws com.liferay.portal.SystemException;
148 
149     public int countAll() throws com.liferay.portal.SystemException;
150 }