1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.expando.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.expando.model.ExpandoTable;
20  
21  /**
22   * <a href="ExpandoTablePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       ExpandoTablePersistenceImpl
31   * @see       ExpandoTableUtil
32   * @generated
33   */
34  public interface ExpandoTablePersistence extends BasePersistence<ExpandoTable> {
35      public void cacheResult(
36          com.liferay.portlet.expando.model.ExpandoTable expandoTable);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables);
40  
41      public com.liferay.portlet.expando.model.ExpandoTable create(long tableId);
42  
43      public com.liferay.portlet.expando.model.ExpandoTable remove(long tableId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.expando.NoSuchTableException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.expando.model.ExpandoTable update(
51          com.liferay.portlet.expando.model.ExpandoTable expandoTable)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.expando.model.ExpandoTable updateImpl(
55          com.liferay.portlet.expando.model.ExpandoTable expandoTable,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
59          long tableId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.expando.NoSuchTableException;
62  
63      public com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
64          long tableId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
67          long companyId, long classNameId)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
71          long companyId, long classNameId, int start, int end)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
75          long companyId, long classNameId, int start, int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
80          long companyId, long classNameId,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.expando.NoSuchTableException;
84  
85      public com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
86          long companyId, long classNameId,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.expando.NoSuchTableException;
90  
91      public com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
92          long tableId, long companyId, long classNameId,
93          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
94          throws com.liferay.portal.SystemException,
95              com.liferay.portlet.expando.NoSuchTableException;
96  
97      public com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
98          long companyId, long classNameId, java.lang.String name)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portlet.expando.NoSuchTableException;
101 
102     public com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
103         long companyId, long classNameId, java.lang.String name)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
107         long companyId, long classNameId, java.lang.String name,
108         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
111         throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
114         int start, int end) throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
117         int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.SystemException;
120 
121     public void removeByC_C(long companyId, long classNameId)
122         throws com.liferay.portal.SystemException;
123 
124     public void removeByC_C_N(long companyId, long classNameId,
125         java.lang.String name)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.expando.NoSuchTableException;
128 
129     public void removeAll() throws com.liferay.portal.SystemException;
130 
131     public int countByC_C(long companyId, long classNameId)
132         throws com.liferay.portal.SystemException;
133 
134     public int countByC_C_N(long companyId, long classNameId,
135         java.lang.String name) throws com.liferay.portal.SystemException;
136 
137     public int countAll() throws com.liferay.portal.SystemException;
138 }