001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.asset.model.AssetTag;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       AssetTagPersistenceImpl
024     * @see       AssetTagUtil
025     * @generated
026     */
027    public interface AssetTagPersistence extends BasePersistence<AssetTag> {
028            public void cacheResult(com.liferay.portlet.asset.model.AssetTag assetTag);
029    
030            public void cacheResult(
031                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags);
032    
033            public com.liferay.portlet.asset.model.AssetTag create(long tagId);
034    
035            public com.liferay.portlet.asset.model.AssetTag remove(long tagId)
036                    throws com.liferay.portal.kernel.exception.SystemException,
037                            com.liferay.portlet.asset.NoSuchTagException;
038    
039            public com.liferay.portlet.asset.model.AssetTag updateImpl(
040                    com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(long tagId)
044                    throws com.liferay.portal.kernel.exception.SystemException,
045                            com.liferay.portlet.asset.NoSuchTagException;
046    
047            public com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(
048                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
051                    long groupId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
055                    long groupId, int start, int end)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
059                    long groupId, int start, int end,
060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
064                    long groupId,
065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066                    throws com.liferay.portal.kernel.exception.SystemException,
067                            com.liferay.portlet.asset.NoSuchTagException;
068    
069            public com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
070                    long groupId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.asset.NoSuchTagException;
074    
075            public com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
076                    long tagId, long groupId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.asset.NoSuchTagException;
080    
081            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
082                    long groupId)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
086                    long groupId, int start, int end)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
090                    long groupId, int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
098                    int start, int end)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
102                    int start, int end,
103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            public void removeByGroupId(long groupId)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public void removeAll()
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public int countByGroupId(long groupId)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            public int filterCountByGroupId(long groupId)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public int countAll()
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
122                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
123    
124            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
125                    long pk, int start, int end)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
129                    long pk, int start, int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            public int getAssetEntriesSize(long pk)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            public boolean containsAssetEntry(long pk, long assetEntryPK)
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public boolean containsAssetEntries(long pk)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public void addAssetEntry(long pk, long assetEntryPK)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            public void addAssetEntry(long pk,
146                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            public void addAssetEntries(long pk, long[] assetEntryPKs)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public void addAssetEntries(long pk,
153                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public void clearAssetEntries(long pk)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public void removeAssetEntry(long pk, long assetEntryPK)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public void removeAssetEntry(long pk,
163                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            public void removeAssetEntries(long pk, long[] assetEntryPKs)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            public void removeAssetEntries(long pk,
170                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            public void setAssetEntries(long pk, long[] assetEntryPKs)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public void setAssetEntries(long pk,
177                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    }