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="ShoppingItemFieldPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface ShoppingItemFieldPersistence {
030: public com.liferay.portlet.shopping.model.ShoppingItemField create(
031: long itemFieldId);
032:
033: public com.liferay.portlet.shopping.model.ShoppingItemField remove(
034: long itemFieldId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.shopping.NoSuchItemFieldException;
037:
038: public com.liferay.portlet.shopping.model.ShoppingItemField remove(
039: com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.shopping.model.ShoppingItemField update(
043: com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.shopping.model.ShoppingItemField update(
047: com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.shopping.model.ShoppingItemField updateImpl(
051: com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.shopping.model.ShoppingItemField findByPrimaryKey(
055: long itemFieldId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.shopping.NoSuchItemFieldException;
058:
059: public com.liferay.portlet.shopping.model.ShoppingItemField fetchByPrimaryKey(
060: long itemFieldId) throws com.liferay.portal.SystemException;
061:
062: public java.util.List findByItemId(long itemId)
063: throws com.liferay.portal.SystemException;
064:
065: public java.util.List findByItemId(long itemId, int begin, int end)
066: throws com.liferay.portal.SystemException;
067:
068: public java.util.List findByItemId(long itemId, int begin, int end,
069: com.liferay.portal.kernel.util.OrderByComparator obc)
070: throws com.liferay.portal.SystemException;
071:
072: public com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_First(
073: long itemId,
074: com.liferay.portal.kernel.util.OrderByComparator obc)
075: throws com.liferay.portal.SystemException,
076: com.liferay.portlet.shopping.NoSuchItemFieldException;
077:
078: public com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_Last(
079: long itemId,
080: com.liferay.portal.kernel.util.OrderByComparator obc)
081: throws com.liferay.portal.SystemException,
082: com.liferay.portlet.shopping.NoSuchItemFieldException;
083:
084: public com.liferay.portlet.shopping.model.ShoppingItemField[] findByItemId_PrevAndNext(
085: long itemFieldId, long itemId,
086: com.liferay.portal.kernel.util.OrderByComparator obc)
087: throws com.liferay.portal.SystemException,
088: com.liferay.portlet.shopping.NoSuchItemFieldException;
089:
090: public java.util.List findWithDynamicQuery(
091: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findWithDynamicQuery(
095: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
096: int begin, int end)
097: throws com.liferay.portal.SystemException;
098:
099: public java.util.List findAll()
100: throws com.liferay.portal.SystemException;
101:
102: public java.util.List findAll(int begin, int end)
103: throws com.liferay.portal.SystemException;
104:
105: public java.util.List findAll(int begin, int end,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException;
108:
109: public void removeByItemId(long itemId)
110: throws com.liferay.portal.SystemException;
111:
112: public void removeAll() throws com.liferay.portal.SystemException;
113:
114: public int countByItemId(long itemId)
115: throws com.liferay.portal.SystemException;
116:
117: public int countAll() throws com.liferay.portal.SystemException;
118: }
|