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.portlet.shopping.service.persistence;
022:
023: /**
024: * <a href="ShoppingCategoryPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface ShoppingCategoryPersistence {
030: public com.liferay.portlet.shopping.model.ShoppingCategory create(
031: long categoryId);
032:
033: public com.liferay.portlet.shopping.model.ShoppingCategory remove(
034: long categoryId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.shopping.NoSuchCategoryException;
036:
037: public com.liferay.portlet.shopping.model.ShoppingCategory remove(
038: com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.shopping.model.ShoppingCategory update(
042: com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.shopping.model.ShoppingCategory update(
046: com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
050: com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.shopping.model.ShoppingCategory findByPrimaryKey(
054: long categoryId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.shopping.NoSuchCategoryException;
056:
057: public com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
058: long categoryId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByGroupId(long groupId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId, int begin, int end)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
072: long groupId,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portlet.shopping.NoSuchCategoryException;
076:
077: public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
078: long groupId,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portlet.shopping.NoSuchCategoryException;
082:
083: public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
084: long categoryId, long groupId,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.shopping.NoSuchCategoryException;
088:
089: public java.util.List findByG_P(long groupId, long parentCategoryId)
090: throws com.liferay.portal.SystemException;
091:
092: public java.util.List findByG_P(long groupId,
093: long parentCategoryId, int begin, int end)
094: throws com.liferay.portal.SystemException;
095:
096: public java.util.List findByG_P(long groupId,
097: long parentCategoryId, int begin, int end,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException;
100:
101: public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
102: long groupId, long parentCategoryId,
103: com.liferay.portal.kernel.util.OrderByComparator obc)
104: throws com.liferay.portal.SystemException,
105: com.liferay.portlet.shopping.NoSuchCategoryException;
106:
107: public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
108: long groupId, long parentCategoryId,
109: com.liferay.portal.kernel.util.OrderByComparator obc)
110: throws com.liferay.portal.SystemException,
111: com.liferay.portlet.shopping.NoSuchCategoryException;
112:
113: public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
114: long categoryId, long groupId, long parentCategoryId,
115: com.liferay.portal.kernel.util.OrderByComparator obc)
116: throws com.liferay.portal.SystemException,
117: com.liferay.portlet.shopping.NoSuchCategoryException;
118:
119: public java.util.List findWithDynamicQuery(
120: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
121: throws com.liferay.portal.SystemException;
122:
123: public java.util.List findWithDynamicQuery(
124: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
125: int begin, int end)
126: throws com.liferay.portal.SystemException;
127:
128: public java.util.List findAll()
129: throws com.liferay.portal.SystemException;
130:
131: public java.util.List findAll(int begin, int end)
132: throws com.liferay.portal.SystemException;
133:
134: public java.util.List findAll(int begin, int end,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException;
137:
138: public void removeByGroupId(long groupId)
139: throws com.liferay.portal.SystemException;
140:
141: public void removeByG_P(long groupId, long parentCategoryId)
142: throws com.liferay.portal.SystemException;
143:
144: public void removeAll() throws com.liferay.portal.SystemException;
145:
146: public int countByGroupId(long groupId)
147: throws com.liferay.portal.SystemException;
148:
149: public int countByG_P(long groupId, long parentCategoryId)
150: throws com.liferay.portal.SystemException;
151:
152: public int countAll() throws com.liferay.portal.SystemException;
153: }
|