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="UserTrackerPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface UserTrackerPersistence {
030: public com.liferay.portal.model.UserTracker create(
031: long userTrackerId);
032:
033: public com.liferay.portal.model.UserTracker remove(
034: long userTrackerId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchUserTrackerException;
037:
038: public com.liferay.portal.model.UserTracker remove(
039: com.liferay.portal.model.UserTracker userTracker)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.UserTracker update(
043: com.liferay.portal.model.UserTracker userTracker)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.UserTracker update(
047: com.liferay.portal.model.UserTracker userTracker,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.UserTracker updateImpl(
051: com.liferay.portal.model.UserTracker userTracker,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.UserTracker findByPrimaryKey(
055: long userTrackerId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchUserTrackerException;
058:
059: public com.liferay.portal.model.UserTracker fetchByPrimaryKey(
060: long userTrackerId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByCompanyId(long companyId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByCompanyId(long companyId, int begin,
067: int end) throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByCompanyId(long companyId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portal.model.UserTracker findByCompanyId_First(
075: long companyId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchUserTrackerException;
079:
080: public com.liferay.portal.model.UserTracker findByCompanyId_Last(
081: long companyId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portal.NoSuchUserTrackerException;
085:
086: public com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
087: long userTrackerId, long companyId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portal.NoSuchUserTrackerException;
091:
092: public java.util.List findByUserId(long userId)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByUserId(long userId, int begin, int end)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByUserId(long userId, int begin, int end,
099: com.liferay.portal.kernel.util.OrderByComparator obc)
100: throws com.liferay.portal.SystemException;
101:
102: public com.liferay.portal.model.UserTracker findByUserId_First(
103: long userId,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portal.NoSuchUserTrackerException;
107:
108: public com.liferay.portal.model.UserTracker findByUserId_Last(
109: long userId,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException,
112: com.liferay.portal.NoSuchUserTrackerException;
113:
114: public com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
115: long userTrackerId, long userId,
116: com.liferay.portal.kernel.util.OrderByComparator obc)
117: throws com.liferay.portal.SystemException,
118: com.liferay.portal.NoSuchUserTrackerException;
119:
120: public java.util.List findBySessionId(java.lang.String sessionId)
121: throws com.liferay.portal.SystemException;
122:
123: public java.util.List findBySessionId(java.lang.String sessionId,
124: int begin, int end)
125: throws com.liferay.portal.SystemException;
126:
127: public java.util.List findBySessionId(java.lang.String sessionId,
128: int begin, int end,
129: com.liferay.portal.kernel.util.OrderByComparator obc)
130: throws com.liferay.portal.SystemException;
131:
132: public com.liferay.portal.model.UserTracker findBySessionId_First(
133: java.lang.String sessionId,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException,
136: com.liferay.portal.NoSuchUserTrackerException;
137:
138: public com.liferay.portal.model.UserTracker findBySessionId_Last(
139: java.lang.String sessionId,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portal.NoSuchUserTrackerException;
143:
144: public com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
145: long userTrackerId, java.lang.String sessionId,
146: com.liferay.portal.kernel.util.OrderByComparator obc)
147: throws com.liferay.portal.SystemException,
148: com.liferay.portal.NoSuchUserTrackerException;
149:
150: public java.util.List findWithDynamicQuery(
151: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
152: throws com.liferay.portal.SystemException;
153:
154: public java.util.List findWithDynamicQuery(
155: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
156: int begin, int end)
157: throws com.liferay.portal.SystemException;
158:
159: public java.util.List findAll()
160: throws com.liferay.portal.SystemException;
161:
162: public java.util.List findAll(int begin, int end)
163: throws com.liferay.portal.SystemException;
164:
165: public java.util.List findAll(int begin, int end,
166: com.liferay.portal.kernel.util.OrderByComparator obc)
167: throws com.liferay.portal.SystemException;
168:
169: public void removeByCompanyId(long companyId)
170: throws com.liferay.portal.SystemException;
171:
172: public void removeByUserId(long userId)
173: throws com.liferay.portal.SystemException;
174:
175: public void removeBySessionId(java.lang.String sessionId)
176: throws com.liferay.portal.SystemException;
177:
178: public void removeAll() throws com.liferay.portal.SystemException;
179:
180: public int countByCompanyId(long companyId)
181: throws com.liferay.portal.SystemException;
182:
183: public int countByUserId(long userId)
184: throws com.liferay.portal.SystemException;
185:
186: public int countBySessionId(java.lang.String sessionId)
187: throws com.liferay.portal.SystemException;
188:
189: public int countAll() throws com.liferay.portal.SystemException;
190: }
|