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  /**
28   * <a href="ExpandoColumnPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       ExpandoColumnPersistenceImpl
37   * @see       ExpandoColumnUtil
38   * @generated
39   */
40  public interface ExpandoColumnPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.expando.model.ExpandoColumn create(long columnId);
50  
51      public com.liferay.portlet.expando.model.ExpandoColumn remove(long columnId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.expando.NoSuchColumnException;
54  
55      public com.liferay.portlet.expando.model.ExpandoColumn remove(
56          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
57          throws com.liferay.portal.SystemException;
58  
59      /**
60       * @deprecated Use {@link #update(ExpandoColumn, boolean merge)}.
61       */
62      public com.liferay.portlet.expando.model.ExpandoColumn update(
63          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
64          throws com.liferay.portal.SystemException;
65  
66      /**
67       * Add, update, or merge, the entity. This method also calls the model
68       * listeners to trigger the proper events associated with adding, deleting,
69       * or updating an entity.
70       *
71       * @param  expandoColumn the entity to add, update, or merge
72       * @param  merge boolean value for whether to merge the entity. The default
73       *         value is false. Setting merge to true is more expensive and
74       *         should only be true when expandoColumn is transient. See
75       *         LEP-5473 for a detailed discussion of this method.
76       * @return the entity that was added, updated, or merged
77       */
78      public com.liferay.portlet.expando.model.ExpandoColumn update(
79          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
80          boolean merge) throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
83          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
84          boolean merge) throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
87          long columnId)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.expando.NoSuchColumnException;
90  
91      public com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
92          long columnId) throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
95          long tableId) throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
98          long tableId, int start, int end)
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
102         long tableId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
107         long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.expando.NoSuchColumnException;
110 
111     public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
112         long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.expando.NoSuchColumnException;
115 
116     public com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
117         long columnId, long tableId,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.expando.NoSuchColumnException;
121 
122     public com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
123         long tableId, java.lang.String name)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.expando.NoSuchColumnException;
126 
127     public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
128         long tableId, java.lang.String name)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
132         long tableId, java.lang.String name, boolean retrieveFromCache)
133         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<Object> findWithDynamicQuery(
136         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
137         throws com.liferay.portal.SystemException;
138 
139     public java.util.List<Object> findWithDynamicQuery(
140         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141         int end) throws com.liferay.portal.SystemException;
142 
143     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
147         int start, int end) throws com.liferay.portal.SystemException;
148 
149     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
150         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException;
152 
153     public void removeByTableId(long tableId)
154         throws com.liferay.portal.SystemException;
155 
156     public void removeByT_N(long tableId, java.lang.String name)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.expando.NoSuchColumnException;
159 
160     public void removeAll() throws com.liferay.portal.SystemException;
161 
162     public int countByTableId(long tableId)
163         throws com.liferay.portal.SystemException;
164 
165     public int countByT_N(long tableId, java.lang.String name)
166         throws com.liferay.portal.SystemException;
167 
168     public int countAll() throws com.liferay.portal.SystemException;
169 }