1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="TagsAssetPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       TagsAssetPersistenceImpl
37   * @see       TagsAssetUtil
38   * @generated
39   */
40  public interface TagsAssetPersistence extends BasePersistence {
41      public void cacheResult(com.liferay.portlet.tags.model.TagsAsset tagsAsset);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets);
45  
46      public void clearCache();
47  
48      public com.liferay.portlet.tags.model.TagsAsset create(long assetId);
49  
50      public com.liferay.portlet.tags.model.TagsAsset remove(long assetId)
51          throws com.liferay.portal.SystemException,
52              com.liferay.portlet.tags.NoSuchAssetException;
53  
54      public com.liferay.portlet.tags.model.TagsAsset remove(
55          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * @deprecated Use {@link #update(TagsAsset, boolean merge)}.
60       */
61      public com.liferay.portlet.tags.model.TagsAsset update(
62          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
63          throws com.liferay.portal.SystemException;
64  
65      /**
66       * Add, update, or merge, the entity. This method also calls the model
67       * listeners to trigger the proper events associated with adding, deleting,
68       * or updating an entity.
69       *
70       * @param  tagsAsset the entity to add, update, or merge
71       * @param  merge boolean value for whether to merge the entity. The default
72       *         value is false. Setting merge to true is more expensive and
73       *         should only be true when tagsAsset is transient. See
74       *         LEP-5473 for a detailed discussion of this method.
75       * @return the entity that was added, updated, or merged
76       */
77      public com.liferay.portlet.tags.model.TagsAsset update(
78          com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.tags.model.TagsAsset updateImpl(
82          com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.tags.model.TagsAsset findByPrimaryKey(
86          long assetId)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.tags.NoSuchAssetException;
89  
90      public com.liferay.portlet.tags.model.TagsAsset fetchByPrimaryKey(
91          long assetId) throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
94          long companyId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
97          long companyId, int start, int end)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
101         long companyId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.tags.model.TagsAsset findByCompanyId_First(
106         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.tags.NoSuchAssetException;
109 
110     public com.liferay.portlet.tags.model.TagsAsset findByCompanyId_Last(
111         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.tags.NoSuchAssetException;
114 
115     public com.liferay.portlet.tags.model.TagsAsset[] findByCompanyId_PrevAndNext(
116         long assetId, long companyId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.tags.NoSuchAssetException;
120 
121     public com.liferay.portlet.tags.model.TagsAsset findByC_C(
122         long classNameId, long classPK)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tags.NoSuchAssetException;
125 
126     public com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
127         long classNameId, long classPK)
128         throws com.liferay.portal.SystemException;
129 
130     public com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
131         long classNameId, long classPK, boolean retrieveFromCache)
132         throws com.liferay.portal.SystemException;
133 
134     public java.util.List<Object> findWithDynamicQuery(
135         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List<Object> findWithDynamicQuery(
139         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140         int end) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll()
143         throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
146         int start, int end) throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
149         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException;
151 
152     public void removeByCompanyId(long companyId)
153         throws com.liferay.portal.SystemException;
154 
155     public void removeByC_C(long classNameId, long classPK)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.tags.NoSuchAssetException;
158 
159     public void removeAll() throws com.liferay.portal.SystemException;
160 
161     public int countByCompanyId(long companyId)
162         throws com.liferay.portal.SystemException;
163 
164     public int countByC_C(long classNameId, long classPK)
165         throws com.liferay.portal.SystemException;
166 
167     public int countAll() throws com.liferay.portal.SystemException;
168 
169     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
170         long pk) throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
173         long pk, int start, int end) throws com.liferay.portal.SystemException;
174 
175     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
176         long pk, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.SystemException;
179 
180     public int getTagsEntriesSize(long pk)
181         throws com.liferay.portal.SystemException;
182 
183     public boolean containsTagsEntry(long pk, long tagsEntryPK)
184         throws com.liferay.portal.SystemException;
185 
186     public boolean containsTagsEntries(long pk)
187         throws com.liferay.portal.SystemException;
188 
189     public void addTagsEntry(long pk, long tagsEntryPK)
190         throws com.liferay.portal.SystemException;
191 
192     public void addTagsEntry(long pk,
193         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
194         throws com.liferay.portal.SystemException;
195 
196     public void addTagsEntries(long pk, long[] tagsEntryPKs)
197         throws com.liferay.portal.SystemException;
198 
199     public void addTagsEntries(long pk,
200         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
201         throws com.liferay.portal.SystemException;
202 
203     public void clearTagsEntries(long pk)
204         throws com.liferay.portal.SystemException;
205 
206     public void removeTagsEntry(long pk, long tagsEntryPK)
207         throws com.liferay.portal.SystemException;
208 
209     public void removeTagsEntry(long pk,
210         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
211         throws com.liferay.portal.SystemException;
212 
213     public void removeTagsEntries(long pk, long[] tagsEntryPKs)
214         throws com.liferay.portal.SystemException;
215 
216     public void removeTagsEntries(long pk,
217         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
218         throws com.liferay.portal.SystemException;
219 
220     public void setTagsEntries(long pk, long[] tagsEntryPKs)
221         throws com.liferay.portal.SystemException;
222 
223     public void setTagsEntries(long pk,
224         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
225         throws com.liferay.portal.SystemException;
226 }