1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.tags.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.tags.model.TagsAsset;
20  
21  /**
22   * <a href="TagsAssetPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       TagsAssetPersistenceImpl
31   * @see       TagsAssetUtil
32   * @generated
33   */
34  public interface TagsAssetPersistence extends BasePersistence<TagsAsset> {
35      public void cacheResult(com.liferay.portlet.tags.model.TagsAsset tagsAsset);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets);
39  
40      public com.liferay.portlet.tags.model.TagsAsset create(long assetId);
41  
42      public com.liferay.portlet.tags.model.TagsAsset remove(long assetId)
43          throws com.liferay.portal.SystemException,
44              com.liferay.portlet.tags.NoSuchAssetException;
45  
46      /**
47       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
48       */
49      public com.liferay.portlet.tags.model.TagsAsset update(
50          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
51          throws com.liferay.portal.SystemException;
52  
53      public com.liferay.portlet.tags.model.TagsAsset updateImpl(
54          com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
55          throws com.liferay.portal.SystemException;
56  
57      public com.liferay.portlet.tags.model.TagsAsset findByPrimaryKey(
58          long assetId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portlet.tags.NoSuchAssetException;
61  
62      public com.liferay.portlet.tags.model.TagsAsset fetchByPrimaryKey(
63          long assetId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
66          long companyId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
69          long companyId, int start, int end)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
73          long companyId, int start, int end,
74          com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.tags.model.TagsAsset findByCompanyId_First(
78          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portlet.tags.NoSuchAssetException;
81  
82      public com.liferay.portlet.tags.model.TagsAsset findByCompanyId_Last(
83          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException,
85              com.liferay.portlet.tags.NoSuchAssetException;
86  
87      public com.liferay.portlet.tags.model.TagsAsset[] findByCompanyId_PrevAndNext(
88          long assetId, long companyId,
89          com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.tags.NoSuchAssetException;
92  
93      public com.liferay.portlet.tags.model.TagsAsset findByC_C(
94          long classNameId, long classPK)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.tags.NoSuchAssetException;
97  
98      public com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
99          long classNameId, long classPK)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
103         long classNameId, long classPK, boolean retrieveFromCache)
104         throws com.liferay.portal.SystemException;
105 
106     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll()
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
110         int start, int end) throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
113         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException;
115 
116     public void removeByCompanyId(long companyId)
117         throws com.liferay.portal.SystemException;
118 
119     public void removeByC_C(long classNameId, long classPK)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portlet.tags.NoSuchAssetException;
122 
123     public void removeAll() throws com.liferay.portal.SystemException;
124 
125     public int countByCompanyId(long companyId)
126         throws com.liferay.portal.SystemException;
127 
128     public int countByC_C(long classNameId, long classPK)
129         throws com.liferay.portal.SystemException;
130 
131     public int countAll() throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
134         long pk) throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
137         long pk, int start, int end) throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
140         long pk, int start, int end,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException;
143 
144     public int getTagsEntriesSize(long pk)
145         throws com.liferay.portal.SystemException;
146 
147     public boolean containsTagsEntry(long pk, long tagsEntryPK)
148         throws com.liferay.portal.SystemException;
149 
150     public boolean containsTagsEntries(long pk)
151         throws com.liferay.portal.SystemException;
152 
153     public void addTagsEntry(long pk, long tagsEntryPK)
154         throws com.liferay.portal.SystemException;
155 
156     public void addTagsEntry(long pk,
157         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
158         throws com.liferay.portal.SystemException;
159 
160     public void addTagsEntries(long pk, long[] tagsEntryPKs)
161         throws com.liferay.portal.SystemException;
162 
163     public void addTagsEntries(long pk,
164         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
165         throws com.liferay.portal.SystemException;
166 
167     public void clearTagsEntries(long pk)
168         throws com.liferay.portal.SystemException;
169 
170     public void removeTagsEntry(long pk, long tagsEntryPK)
171         throws com.liferay.portal.SystemException;
172 
173     public void removeTagsEntry(long pk,
174         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
175         throws com.liferay.portal.SystemException;
176 
177     public void removeTagsEntries(long pk, long[] tagsEntryPKs)
178         throws com.liferay.portal.SystemException;
179 
180     public void removeTagsEntries(long pk,
181         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
182         throws com.liferay.portal.SystemException;
183 
184     public void setTagsEntries(long pk, long[] tagsEntryPKs)
185         throws com.liferay.portal.SystemException;
186 
187     public void setTagsEntries(long pk,
188         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
189         throws com.liferay.portal.SystemException;
190 }