1   /**
2    * Copyright (c) 2000-2008 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 updateImpl(
51          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
55          long entryId)
56          throws com.liferay.portal.SystemException, 
57              com.liferay.portlet.tags.NoSuchEntryException;
58  
59      public com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
60          long entryId) throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.tags.model.TagsEntry findByC_N(long companyId,
63          java.lang.String name)
64          throws com.liferay.portal.SystemException, 
65              com.liferay.portlet.tags.NoSuchEntryException;
66  
67      public com.liferay.portlet.tags.model.TagsEntry fetchByC_N(long companyId,
68          java.lang.String name) throws com.liferay.portal.SystemException;
69  
70      public java.util.List findWithDynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List findWithDynamicQuery(
75          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
76          int begin, int end) throws com.liferay.portal.SystemException;
77  
78      public java.util.List findAll() throws com.liferay.portal.SystemException;
79  
80      public java.util.List findAll(int begin, int end)
81          throws com.liferay.portal.SystemException;
82  
83      public java.util.List findAll(int begin, int end,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException;
86  
87      public void removeByC_N(long companyId, java.lang.String name)
88          throws com.liferay.portal.SystemException, 
89              com.liferay.portlet.tags.NoSuchEntryException;
90  
91      public void removeAll() throws com.liferay.portal.SystemException;
92  
93      public int countByC_N(long companyId, java.lang.String name)
94          throws com.liferay.portal.SystemException;
95  
96      public int countAll() throws com.liferay.portal.SystemException;
97  
98      public java.util.List getTagsAssets(long pk)
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         throws com.liferay.portal.SystemException, 
104             com.liferay.portlet.tags.NoSuchEntryException;
105 
106     public java.util.List getTagsAssets(long pk, int begin, int end,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException, 
109             com.liferay.portlet.tags.NoSuchEntryException;
110 
111     public int getTagsAssetsSize(long pk)
112         throws com.liferay.portal.SystemException;
113 
114     public boolean containsTagsAsset(long pk, long tagsAssetPK)
115         throws com.liferay.portal.SystemException;
116 
117     public boolean containsTagsAssets(long pk)
118         throws com.liferay.portal.SystemException;
119 
120     public void addTagsAsset(long pk, long tagsAssetPK)
121         throws com.liferay.portal.SystemException, 
122             com.liferay.portlet.tags.NoSuchAssetException, 
123             com.liferay.portlet.tags.NoSuchEntryException;
124 
125     public void addTagsAsset(long pk,
126         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
127         throws com.liferay.portal.SystemException, 
128             com.liferay.portlet.tags.NoSuchAssetException, 
129             com.liferay.portlet.tags.NoSuchEntryException;
130 
131     public void addTagsAssets(long pk, long[] tagsAssetPKs)
132         throws com.liferay.portal.SystemException, 
133             com.liferay.portlet.tags.NoSuchAssetException, 
134             com.liferay.portlet.tags.NoSuchEntryException;
135 
136     public void addTagsAssets(long pk, java.util.List tagsAssets)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portlet.tags.NoSuchAssetException, 
139             com.liferay.portlet.tags.NoSuchEntryException;
140 
141     public void clearTagsAssets(long pk)
142         throws com.liferay.portal.SystemException, 
143             com.liferay.portlet.tags.NoSuchEntryException;
144 
145     public void removeTagsAsset(long pk, long tagsAssetPK)
146         throws com.liferay.portal.SystemException, 
147             com.liferay.portlet.tags.NoSuchAssetException, 
148             com.liferay.portlet.tags.NoSuchEntryException;
149 
150     public void removeTagsAsset(long pk,
151         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
152         throws com.liferay.portal.SystemException, 
153             com.liferay.portlet.tags.NoSuchAssetException, 
154             com.liferay.portlet.tags.NoSuchEntryException;
155 
156     public void removeTagsAssets(long pk, long[] tagsAssetPKs)
157         throws com.liferay.portal.SystemException, 
158             com.liferay.portlet.tags.NoSuchAssetException, 
159             com.liferay.portlet.tags.NoSuchEntryException;
160 
161     public void removeTagsAssets(long pk, java.util.List tagsAssets)
162         throws com.liferay.portal.SystemException, 
163             com.liferay.portlet.tags.NoSuchAssetException, 
164             com.liferay.portlet.tags.NoSuchEntryException;
165 
166     public void setTagsAssets(long pk, long[] tagsAssetPKs)
167         throws com.liferay.portal.SystemException, 
168             com.liferay.portlet.tags.NoSuchAssetException, 
169             com.liferay.portlet.tags.NoSuchEntryException;
170 
171     public void setTagsAssets(long pk, java.util.List tagsAssets)
172         throws com.liferay.portal.SystemException, 
173             com.liferay.portlet.tags.NoSuchAssetException, 
174             com.liferay.portlet.tags.NoSuchEntryException;
175 }