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.ExpandoColumn;
28  
29  /**
30   * <a href="ExpandoColumnPersistence.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       ExpandoColumnPersistenceImpl
39   * @see       ExpandoColumnUtil
40   * @generated
41   */
42  public interface ExpandoColumnPersistence extends BasePersistence<ExpandoColumn> {
43      public void cacheResult(
44          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns);
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      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portlet.expando.model.ExpandoColumn update(
59          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
63          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
64          boolean merge) throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
67          long columnId)
68          throws com.liferay.portal.SystemException,
69              com.liferay.portlet.expando.NoSuchColumnException;
70  
71      public com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
72          long columnId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
75          long tableId) throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
78          long tableId, int start, int end)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
82          long tableId, int start, int end,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
87          long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.expando.NoSuchColumnException;
90  
91      public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
92          long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.expando.NoSuchColumnException;
95  
96      public com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
97          long columnId, long tableId,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portlet.expando.NoSuchColumnException;
101 
102     public com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
103         long tableId, java.lang.String name)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portlet.expando.NoSuchColumnException;
106 
107     public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
108         long tableId, java.lang.String name)
109         throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
112         long tableId, java.lang.String name, boolean retrieveFromCache)
113         throws com.liferay.portal.SystemException;
114 
115     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
116         throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
119         int start, int end) throws com.liferay.portal.SystemException;
120 
121     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
122         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException;
124 
125     public void removeByTableId(long tableId)
126         throws com.liferay.portal.SystemException;
127 
128     public void removeByT_N(long tableId, java.lang.String name)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.expando.NoSuchColumnException;
131 
132     public void removeAll() throws com.liferay.portal.SystemException;
133 
134     public int countByTableId(long tableId)
135         throws com.liferay.portal.SystemException;
136 
137     public int countByT_N(long tableId, java.lang.String name)
138         throws com.liferay.portal.SystemException;
139 
140     public int countAll() throws com.liferay.portal.SystemException;
141 }