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 orderByComparator)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.tags.model.TagsAsset findByCompanyId_First(
78          long companyId,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.tags.NoSuchAssetException;
82  
83      public com.liferay.portlet.tags.model.TagsAsset findByCompanyId_Last(
84          long companyId,
85          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
86          throws com.liferay.portal.SystemException,
87              com.liferay.portlet.tags.NoSuchAssetException;
88  
89      public com.liferay.portlet.tags.model.TagsAsset[] findByCompanyId_PrevAndNext(
90          long assetId, long companyId,
91          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
92          throws com.liferay.portal.SystemException,
93              com.liferay.portlet.tags.NoSuchAssetException;
94  
95      public com.liferay.portlet.tags.model.TagsAsset findByC_C(
96          long classNameId, long classPK)
97          throws com.liferay.portal.SystemException,
98              com.liferay.portlet.tags.NoSuchAssetException;
99  
100     public com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
101         long classNameId, long classPK)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
105         long classNameId, long classPK, boolean retrieveFromCache)
106         throws com.liferay.portal.SystemException;
107 
108     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll()
109         throws com.liferay.portal.SystemException;
110 
111     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
112         int start, int end) throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
115         int start, int end,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.SystemException;
118 
119     public void removeByCompanyId(long companyId)
120         throws com.liferay.portal.SystemException;
121 
122     public void removeByC_C(long classNameId, long classPK)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tags.NoSuchAssetException;
125 
126     public void removeAll() throws com.liferay.portal.SystemException;
127 
128     public int countByCompanyId(long companyId)
129         throws com.liferay.portal.SystemException;
130 
131     public int countByC_C(long classNameId, long classPK)
132         throws com.liferay.portal.SystemException;
133 
134     public int countAll() throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
137         long pk) 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) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
143         long pk, int start, int end,
144         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145         throws com.liferay.portal.SystemException;
146 
147     public int getTagsEntriesSize(long pk)
148         throws com.liferay.portal.SystemException;
149 
150     public boolean containsTagsEntry(long pk, long tagsEntryPK)
151         throws com.liferay.portal.SystemException;
152 
153     public boolean containsTagsEntries(long pk)
154         throws com.liferay.portal.SystemException;
155 
156     public void addTagsEntry(long pk, long tagsEntryPK)
157         throws com.liferay.portal.SystemException;
158 
159     public void addTagsEntry(long pk,
160         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
161         throws com.liferay.portal.SystemException;
162 
163     public void addTagsEntries(long pk, long[] tagsEntryPKs)
164         throws com.liferay.portal.SystemException;
165 
166     public void addTagsEntries(long pk,
167         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
168         throws com.liferay.portal.SystemException;
169 
170     public void clearTagsEntries(long pk)
171         throws com.liferay.portal.SystemException;
172 
173     public void removeTagsEntry(long pk, long tagsEntryPK)
174         throws com.liferay.portal.SystemException;
175 
176     public void removeTagsEntry(long pk,
177         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
178         throws com.liferay.portal.SystemException;
179 
180     public void removeTagsEntries(long pk, long[] tagsEntryPKs)
181         throws com.liferay.portal.SystemException;
182 
183     public void removeTagsEntries(long pk,
184         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
185         throws com.liferay.portal.SystemException;
186 
187     public void setTagsEntries(long pk, long[] tagsEntryPKs)
188         throws com.liferay.portal.SystemException;
189 
190     public void setTagsEntries(long pk,
191         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
192         throws com.liferay.portal.SystemException;
193 }