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="SubscriptionPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface SubscriptionPersistence {
030: public com.liferay.portal.model.Subscription create(
031: long subscriptionId);
032:
033: public com.liferay.portal.model.Subscription remove(
034: long subscriptionId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchSubscriptionException;
037:
038: public com.liferay.portal.model.Subscription remove(
039: com.liferay.portal.model.Subscription subscription)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.Subscription update(
043: com.liferay.portal.model.Subscription subscription)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.Subscription update(
047: com.liferay.portal.model.Subscription subscription,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.Subscription updateImpl(
051: com.liferay.portal.model.Subscription subscription,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.Subscription findByPrimaryKey(
055: long subscriptionId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchSubscriptionException;
058:
059: public com.liferay.portal.model.Subscription fetchByPrimaryKey(
060: long subscriptionId)
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.Subscription findByUserId_First(
074: long userId,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portal.NoSuchSubscriptionException;
078:
079: public com.liferay.portal.model.Subscription findByUserId_Last(
080: long userId,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portal.NoSuchSubscriptionException;
084:
085: public com.liferay.portal.model.Subscription[] findByUserId_PrevAndNext(
086: long subscriptionId, long userId,
087: com.liferay.portal.kernel.util.OrderByComparator obc)
088: throws com.liferay.portal.SystemException,
089: com.liferay.portal.NoSuchSubscriptionException;
090:
091: public java.util.List findByC_C_C(long companyId, long classNameId,
092: long classPK) throws com.liferay.portal.SystemException;
093:
094: public java.util.List findByC_C_C(long companyId, long classNameId,
095: long classPK, int begin, int end)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByC_C_C(long companyId, long classNameId,
099: long classPK, int begin, int end,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException;
102:
103: public com.liferay.portal.model.Subscription findByC_C_C_First(
104: long companyId, long classNameId, long classPK,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portal.NoSuchSubscriptionException;
108:
109: public com.liferay.portal.model.Subscription findByC_C_C_Last(
110: long companyId, long classNameId, long classPK,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portal.NoSuchSubscriptionException;
114:
115: public com.liferay.portal.model.Subscription[] findByC_C_C_PrevAndNext(
116: long subscriptionId, long companyId, long classNameId,
117: long classPK,
118: com.liferay.portal.kernel.util.OrderByComparator obc)
119: throws com.liferay.portal.SystemException,
120: com.liferay.portal.NoSuchSubscriptionException;
121:
122: public com.liferay.portal.model.Subscription findByC_U_C_C(
123: long companyId, long userId, long classNameId, long classPK)
124: throws com.liferay.portal.SystemException,
125: com.liferay.portal.NoSuchSubscriptionException;
126:
127: public com.liferay.portal.model.Subscription fetchByC_U_C_C(
128: long companyId, long userId, long classNameId, long classPK)
129: throws com.liferay.portal.SystemException;
130:
131: public java.util.List findWithDynamicQuery(
132: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
133: throws com.liferay.portal.SystemException;
134:
135: public java.util.List findWithDynamicQuery(
136: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
137: int begin, int end)
138: throws com.liferay.portal.SystemException;
139:
140: public java.util.List findAll()
141: throws com.liferay.portal.SystemException;
142:
143: public java.util.List findAll(int begin, int end)
144: throws com.liferay.portal.SystemException;
145:
146: public java.util.List findAll(int begin, int end,
147: com.liferay.portal.kernel.util.OrderByComparator obc)
148: throws com.liferay.portal.SystemException;
149:
150: public void removeByUserId(long userId)
151: throws com.liferay.portal.SystemException;
152:
153: public void removeByC_C_C(long companyId, long classNameId,
154: long classPK) throws com.liferay.portal.SystemException;
155:
156: public void removeByC_U_C_C(long companyId, long userId,
157: long classNameId, long classPK)
158: throws com.liferay.portal.SystemException,
159: com.liferay.portal.NoSuchSubscriptionException;
160:
161: public void removeAll() throws com.liferay.portal.SystemException;
162:
163: public int countByUserId(long userId)
164: throws com.liferay.portal.SystemException;
165:
166: public int countByC_C_C(long companyId, long classNameId,
167: long classPK) throws com.liferay.portal.SystemException;
168:
169: public int countByC_U_C_C(long companyId, long userId,
170: long classNameId, long classPK)
171: throws com.liferay.portal.SystemException;
172:
173: public int countAll() throws com.liferay.portal.SystemException;
174: }
|