1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="TagsEntryPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface TagsEntryPersistence {
32      public com.liferay.portlet.tags.model.TagsEntry create(long entryId);
33  
34      public com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portlet.tags.NoSuchEntryException;
37  
38      public com.liferay.portlet.tags.model.TagsEntry remove(
39          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.tags.model.TagsEntry update(
43          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.tags.model.TagsEntry update(
47          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
48          throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
51          long entryId)
52          throws com.liferay.portal.SystemException, 
53              com.liferay.portlet.tags.NoSuchEntryException;
54  
55      public com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
56          long entryId) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.tags.model.TagsEntry findByC_N(long companyId,
59          java.lang.String name)
60          throws com.liferay.portal.SystemException, 
61              com.liferay.portlet.tags.NoSuchEntryException;
62  
63      public com.liferay.portlet.tags.model.TagsEntry fetchByC_N(long companyId,
64          java.lang.String name) throws com.liferay.portal.SystemException;
65  
66      public java.util.List findWithDynamicQuery(
67          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List findWithDynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72          int begin, int end) throws com.liferay.portal.SystemException;
73  
74      public java.util.List findAll() throws com.liferay.portal.SystemException;
75  
76      public java.util.List findAll(int begin, int end)
77          throws com.liferay.portal.SystemException;
78  
79      public java.util.List findAll(int begin, int end,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException;
82  
83      public void removeByC_N(long companyId, java.lang.String name)
84          throws com.liferay.portal.SystemException, 
85              com.liferay.portlet.tags.NoSuchEntryException;
86  
87      public void removeAll() throws com.liferay.portal.SystemException;
88  
89      public int countByC_N(long companyId, java.lang.String name)
90          throws com.liferay.portal.SystemException;
91  
92      public int countAll() throws com.liferay.portal.SystemException;
93  
94      public java.util.List getTagsAssets(long pk)
95          throws com.liferay.portal.SystemException, 
96              com.liferay.portlet.tags.NoSuchEntryException;
97  
98      public java.util.List getTagsAssets(long pk, int begin, int end)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portlet.tags.NoSuchEntryException;
101 
102     public java.util.List getTagsAssets(long pk, int begin, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException, 
105             com.liferay.portlet.tags.NoSuchEntryException;
106 
107     public int getTagsAssetsSize(long pk)
108         throws com.liferay.portal.SystemException;
109 
110     public boolean containsTagsAsset(long pk, long tagsAssetPK)
111         throws com.liferay.portal.SystemException;
112 
113     public boolean containsTagsAssets(long pk)
114         throws com.liferay.portal.SystemException;
115 
116     public void addTagsAsset(long pk, long tagsAssetPK)
117         throws com.liferay.portal.SystemException, 
118             com.liferay.portlet.tags.NoSuchAssetException, 
119             com.liferay.portlet.tags.NoSuchEntryException;
120 
121     public void addTagsAsset(long pk,
122         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
123         throws com.liferay.portal.SystemException, 
124             com.liferay.portlet.tags.NoSuchAssetException, 
125             com.liferay.portlet.tags.NoSuchEntryException;
126 
127     public void addTagsAssets(long pk, long[] tagsAssetPKs)
128         throws com.liferay.portal.SystemException, 
129             com.liferay.portlet.tags.NoSuchAssetException, 
130             com.liferay.portlet.tags.NoSuchEntryException;
131 
132     public void addTagsAssets(long pk, java.util.List tagsAssets)
133         throws com.liferay.portal.SystemException, 
134             com.liferay.portlet.tags.NoSuchAssetException, 
135             com.liferay.portlet.tags.NoSuchEntryException;
136 
137     public void clearTagsAssets(long pk)
138         throws com.liferay.portal.SystemException, 
139             com.liferay.portlet.tags.NoSuchEntryException;
140 
141     public void removeTagsAsset(long pk, long tagsAssetPK)
142         throws com.liferay.portal.SystemException, 
143             com.liferay.portlet.tags.NoSuchAssetException, 
144             com.liferay.portlet.tags.NoSuchEntryException;
145 
146     public void removeTagsAsset(long pk,
147         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
148         throws com.liferay.portal.SystemException, 
149             com.liferay.portlet.tags.NoSuchAssetException, 
150             com.liferay.portlet.tags.NoSuchEntryException;
151 
152     public void removeTagsAssets(long pk, long[] tagsAssetPKs)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portlet.tags.NoSuchAssetException, 
155             com.liferay.portlet.tags.NoSuchEntryException;
156 
157     public void removeTagsAssets(long pk, java.util.List tagsAssets)
158         throws com.liferay.portal.SystemException, 
159             com.liferay.portlet.tags.NoSuchAssetException, 
160             com.liferay.portlet.tags.NoSuchEntryException;
161 
162     public void setTagsAssets(long pk, long[] tagsAssetPKs)
163         throws com.liferay.portal.SystemException, 
164             com.liferay.portlet.tags.NoSuchAssetException, 
165             com.liferay.portlet.tags.NoSuchEntryException;
166 
167     public void setTagsAssets(long pk, java.util.List tagsAssets)
168         throws com.liferay.portal.SystemException, 
169             com.liferay.portlet.tags.NoSuchAssetException, 
170             com.liferay.portlet.tags.NoSuchEntryException;
171 }