001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="UserIdMapperPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface UserIdMapperPersistence {
030: public com.liferay.portal.model.UserIdMapper create(
031: long userIdMapperId);
032:
033: public com.liferay.portal.model.UserIdMapper remove(
034: long userIdMapperId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchUserIdMapperException;
037:
038: public com.liferay.portal.model.UserIdMapper remove(
039: com.liferay.portal.model.UserIdMapper userIdMapper)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.UserIdMapper update(
043: com.liferay.portal.model.UserIdMapper userIdMapper)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.UserIdMapper update(
047: com.liferay.portal.model.UserIdMapper userIdMapper,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.UserIdMapper updateImpl(
051: com.liferay.portal.model.UserIdMapper userIdMapper,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.UserIdMapper findByPrimaryKey(
055: long userIdMapperId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchUserIdMapperException;
058:
059: public com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
060: long userIdMapperId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByUserId(long userId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByUserId(long userId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByUserId(long userId, int begin, int end,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException;
072:
073: public com.liferay.portal.model.UserIdMapper findByUserId_First(
074: long userId,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portal.NoSuchUserIdMapperException;
078:
079: public com.liferay.portal.model.UserIdMapper findByUserId_Last(
080: long userId,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portal.NoSuchUserIdMapperException;
084:
085: public com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
086: long userIdMapperId, long userId,
087: com.liferay.portal.kernel.util.OrderByComparator obc)
088: throws com.liferay.portal.SystemException,
089: com.liferay.portal.NoSuchUserIdMapperException;
090:
091: public com.liferay.portal.model.UserIdMapper findByU_T(long userId,
092: java.lang.String type)
093: throws com.liferay.portal.SystemException,
094: com.liferay.portal.NoSuchUserIdMapperException;
095:
096: public com.liferay.portal.model.UserIdMapper fetchByU_T(
097: long userId, java.lang.String type)
098: throws com.liferay.portal.SystemException;
099:
100: public com.liferay.portal.model.UserIdMapper findByT_E(
101: java.lang.String type, java.lang.String externalUserId)
102: throws com.liferay.portal.SystemException,
103: com.liferay.portal.NoSuchUserIdMapperException;
104:
105: public com.liferay.portal.model.UserIdMapper fetchByT_E(
106: java.lang.String type, java.lang.String externalUserId)
107: throws com.liferay.portal.SystemException;
108:
109: public java.util.List findWithDynamicQuery(
110: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
111: throws com.liferay.portal.SystemException;
112:
113: public java.util.List findWithDynamicQuery(
114: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
115: int begin, int end)
116: throws com.liferay.portal.SystemException;
117:
118: public java.util.List findAll()
119: throws com.liferay.portal.SystemException;
120:
121: public java.util.List findAll(int begin, int end)
122: throws com.liferay.portal.SystemException;
123:
124: public java.util.List findAll(int begin, int end,
125: com.liferay.portal.kernel.util.OrderByComparator obc)
126: throws com.liferay.portal.SystemException;
127:
128: public void removeByUserId(long userId)
129: throws com.liferay.portal.SystemException;
130:
131: public void removeByU_T(long userId, java.lang.String type)
132: throws com.liferay.portal.SystemException,
133: com.liferay.portal.NoSuchUserIdMapperException;
134:
135: public void removeByT_E(java.lang.String type,
136: java.lang.String externalUserId)
137: throws com.liferay.portal.SystemException,
138: com.liferay.portal.NoSuchUserIdMapperException;
139:
140: public void removeAll() throws com.liferay.portal.SystemException;
141:
142: public int countByUserId(long userId)
143: throws com.liferay.portal.SystemException;
144:
145: public int countByU_T(long userId, java.lang.String type)
146: throws com.liferay.portal.SystemException;
147:
148: public int countByT_E(java.lang.String type,
149: java.lang.String externalUserId)
150: throws com.liferay.portal.SystemException;
151:
152: public int countAll() throws com.liferay.portal.SystemException;
153: }
|