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.expando.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.expando.model.ExpandoTable;
28  
29  /**
30   * <a href="ExpandoTablePersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       ExpandoTablePersistenceImpl
39   * @see       ExpandoTableUtil
40   * @generated
41   */
42  public interface ExpandoTablePersistence extends BasePersistence<ExpandoTable> {
43      public void cacheResult(
44          com.liferay.portlet.expando.model.ExpandoTable expandoTable);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables);
48  
49      public com.liferay.portlet.expando.model.ExpandoTable create(long tableId);
50  
51      public com.liferay.portlet.expando.model.ExpandoTable remove(long tableId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.expando.NoSuchTableException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portlet.expando.model.ExpandoTable update(
59          com.liferay.portlet.expando.model.ExpandoTable expandoTable)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.expando.model.ExpandoTable updateImpl(
63          com.liferay.portlet.expando.model.ExpandoTable expandoTable,
64          boolean merge) throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
67          long tableId)
68          throws com.liferay.portal.SystemException,
69              com.liferay.portlet.expando.NoSuchTableException;
70  
71      public com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
72          long tableId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
75          long companyId, long classNameId)
76          throws com.liferay.portal.SystemException;
77  
78      public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
79          long companyId, long classNameId, int start, int end)
80          throws com.liferay.portal.SystemException;
81  
82      public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
83          long companyId, long classNameId, int start, int end,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
88          long companyId, long classNameId,
89          com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.expando.NoSuchTableException;
92  
93      public com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
94          long companyId, long classNameId,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portlet.expando.NoSuchTableException;
98  
99      public com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
100         long tableId, long companyId, long classNameId,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException,
103             com.liferay.portlet.expando.NoSuchTableException;
104 
105     public com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
106         long companyId, long classNameId, java.lang.String name)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.expando.NoSuchTableException;
109 
110     public com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
111         long companyId, long classNameId, java.lang.String name)
112         throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
115         long companyId, long classNameId, java.lang.String name,
116         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
119         throws com.liferay.portal.SystemException;
120 
121     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
122         int start, int end) throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
125         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.SystemException;
127 
128     public void removeByC_C(long companyId, long classNameId)
129         throws com.liferay.portal.SystemException;
130 
131     public void removeByC_C_N(long companyId, long classNameId,
132         java.lang.String name)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.expando.NoSuchTableException;
135 
136     public void removeAll() throws com.liferay.portal.SystemException;
137 
138     public int countByC_C(long companyId, long classNameId)
139         throws com.liferay.portal.SystemException;
140 
141     public int countByC_C_N(long companyId, long classNameId,
142         java.lang.String name) throws com.liferay.portal.SystemException;
143 
144     public int countAll() throws com.liferay.portal.SystemException;
145 }