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="TagsEntryPersistence.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       TagsEntryPersistenceImpl
37   * @see       TagsEntryUtil
38   * @generated
39   */
40  public interface TagsEntryPersistence extends BasePersistence {
41      public void cacheResult(com.liferay.portlet.tags.model.TagsEntry tagsEntry);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries);
45  
46      public void clearCache();
47  
48      public com.liferay.portlet.tags.model.TagsEntry create(long entryId);
49  
50      public com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
51          throws com.liferay.portal.SystemException,
52              com.liferay.portlet.tags.NoSuchEntryException;
53  
54      public com.liferay.portlet.tags.model.TagsEntry remove(
55          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * @deprecated Use {@link #update(TagsEntry, boolean merge)}.
60       */
61      public com.liferay.portlet.tags.model.TagsEntry update(
62          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
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  tagsEntry 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 tagsEntry 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.TagsEntry update(
78          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.tags.model.TagsEntry updateImpl(
82          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
86          long entryId)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.tags.NoSuchEntryException;
89  
90      public com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
91          long entryId) throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.tags.model.TagsEntry findByC_N(long companyId,
94          java.lang.String name)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.tags.NoSuchEntryException;
97  
98      public com.liferay.portlet.tags.model.TagsEntry fetchByC_N(long companyId,
99          java.lang.String name) throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.tags.model.TagsEntry fetchByC_N(long companyId,
102         java.lang.String name, boolean retrieveFromCache)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List<Object> findWithDynamicQuery(
106         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<Object> findWithDynamicQuery(
110         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111         int end) throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll()
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
117         int start, int end) throws com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
120         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException;
122 
123     public void removeByC_N(long companyId, java.lang.String name)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.tags.NoSuchEntryException;
126 
127     public void removeAll() throws com.liferay.portal.SystemException;
128 
129     public int countByC_N(long companyId, java.lang.String name)
130         throws com.liferay.portal.SystemException;
131 
132     public int countAll() throws com.liferay.portal.SystemException;
133 
134     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
135         long pk) throws com.liferay.portal.SystemException;
136 
137     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
138         long pk, int start, int end) throws com.liferay.portal.SystemException;
139 
140     public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
141         long pk, int start, int end,
142         com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException;
144 
145     public int getTagsAssetsSize(long pk)
146         throws com.liferay.portal.SystemException;
147 
148     public boolean containsTagsAsset(long pk, long tagsAssetPK)
149         throws com.liferay.portal.SystemException;
150 
151     public boolean containsTagsAssets(long pk)
152         throws com.liferay.portal.SystemException;
153 
154     public void addTagsAsset(long pk, long tagsAssetPK)
155         throws com.liferay.portal.SystemException;
156 
157     public void addTagsAsset(long pk,
158         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
159         throws com.liferay.portal.SystemException;
160 
161     public void addTagsAssets(long pk, long[] tagsAssetPKs)
162         throws com.liferay.portal.SystemException;
163 
164     public void addTagsAssets(long pk,
165         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
166         throws com.liferay.portal.SystemException;
167 
168     public void clearTagsAssets(long pk)
169         throws com.liferay.portal.SystemException;
170 
171     public void removeTagsAsset(long pk, long tagsAssetPK)
172         throws com.liferay.portal.SystemException;
173 
174     public void removeTagsAsset(long pk,
175         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
176         throws com.liferay.portal.SystemException;
177 
178     public void removeTagsAssets(long pk, long[] tagsAssetPKs)
179         throws com.liferay.portal.SystemException;
180 
181     public void removeTagsAssets(long pk,
182         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
183         throws com.liferay.portal.SystemException;
184 
185     public void setTagsAssets(long pk, long[] tagsAssetPKs)
186         throws com.liferay.portal.SystemException;
187 
188     public void setTagsAssets(long pk,
189         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
190         throws com.liferay.portal.SystemException;
191 }