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="TagsPropertyPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface TagsPropertyPersistence {
32      public com.liferay.portlet.tags.model.TagsProperty create(long propertyId);
33  
34      public com.liferay.portlet.tags.model.TagsProperty remove(long propertyId)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portlet.tags.NoSuchPropertyException;
37  
38      public com.liferay.portlet.tags.model.TagsProperty remove(
39          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.tags.model.TagsProperty update(
43          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.tags.model.TagsProperty update(
47          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
48          throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
51          long propertyId)
52          throws com.liferay.portal.SystemException, 
53              com.liferay.portlet.tags.NoSuchPropertyException;
54  
55      public com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
56          long propertyId) throws com.liferay.portal.SystemException;
57  
58      public java.util.List findByCompanyId(long companyId)
59          throws com.liferay.portal.SystemException;
60  
61      public java.util.List findByCompanyId(long companyId, int begin, int end)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByCompanyId(long companyId, int begin, int end,
65          com.liferay.portal.kernel.util.OrderByComparator obc)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
69          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.tags.NoSuchPropertyException;
72  
73      public com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
74          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.SystemException, 
76              com.liferay.portlet.tags.NoSuchPropertyException;
77  
78      public com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
79          long propertyId, long companyId,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException, 
82              com.liferay.portlet.tags.NoSuchPropertyException;
83  
84      public java.util.List findByEntryId(long entryId)
85          throws com.liferay.portal.SystemException;
86  
87      public java.util.List findByEntryId(long entryId, int begin, int end)
88          throws com.liferay.portal.SystemException;
89  
90      public java.util.List findByEntryId(long entryId, int begin, int end,
91          com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
95          long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException, 
97              com.liferay.portlet.tags.NoSuchPropertyException;
98  
99      public com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
100         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portlet.tags.NoSuchPropertyException;
103 
104     public com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
105         long propertyId, long entryId,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.tags.NoSuchPropertyException;
109 
110     public java.util.List findByC_K(long companyId, java.lang.String key)
111         throws com.liferay.portal.SystemException;
112 
113     public java.util.List findByC_K(long companyId, java.lang.String key,
114         int begin, int end) throws com.liferay.portal.SystemException;
115 
116     public java.util.List findByC_K(long companyId, java.lang.String key,
117         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException;
119 
120     public com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
121         long companyId, java.lang.String key,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException, 
124             com.liferay.portlet.tags.NoSuchPropertyException;
125 
126     public com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
127         long companyId, java.lang.String key,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException, 
130             com.liferay.portlet.tags.NoSuchPropertyException;
131 
132     public com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
133         long propertyId, long companyId, java.lang.String key,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException, 
136             com.liferay.portlet.tags.NoSuchPropertyException;
137 
138     public com.liferay.portlet.tags.model.TagsProperty findByE_K(long entryId,
139         java.lang.String key)
140         throws com.liferay.portal.SystemException, 
141             com.liferay.portlet.tags.NoSuchPropertyException;
142 
143     public com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
144         long entryId, java.lang.String key)
145         throws com.liferay.portal.SystemException;
146 
147     public java.util.List findWithDynamicQuery(
148         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List findWithDynamicQuery(
152         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
153         int begin, int end) throws com.liferay.portal.SystemException;
154 
155     public java.util.List findAll() throws com.liferay.portal.SystemException;
156 
157     public java.util.List findAll(int begin, int end)
158         throws com.liferay.portal.SystemException;
159 
160     public java.util.List findAll(int begin, int end,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException;
163 
164     public void removeByCompanyId(long companyId)
165         throws com.liferay.portal.SystemException;
166 
167     public void removeByEntryId(long entryId)
168         throws com.liferay.portal.SystemException;
169 
170     public void removeByC_K(long companyId, java.lang.String key)
171         throws com.liferay.portal.SystemException;
172 
173     public void removeByE_K(long entryId, java.lang.String key)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portlet.tags.NoSuchPropertyException;
176 
177     public void removeAll() throws com.liferay.portal.SystemException;
178 
179     public int countByCompanyId(long companyId)
180         throws com.liferay.portal.SystemException;
181 
182     public int countByEntryId(long entryId)
183         throws com.liferay.portal.SystemException;
184 
185     public int countByC_K(long companyId, java.lang.String key)
186         throws com.liferay.portal.SystemException;
187 
188     public int countByE_K(long entryId, java.lang.String key)
189         throws com.liferay.portal.SystemException;
190 
191     public int countAll() throws com.liferay.portal.SystemException;
192 }