1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.ExpandoColumn;
20  
21  /**
22   * <a href="ExpandoColumnPersistence.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       ExpandoColumnPersistenceImpl
31   * @see       ExpandoColumnUtil
32   * @generated
33   */
34  public interface ExpandoColumnPersistence extends BasePersistence<ExpandoColumn> {
35      public void cacheResult(
36          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns);
40  
41      public com.liferay.portlet.expando.model.ExpandoColumn create(long columnId);
42  
43      public com.liferay.portlet.expando.model.ExpandoColumn remove(long columnId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.expando.NoSuchColumnException;
46  
47      public com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
48          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
53          long columnId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.expando.NoSuchColumnException;
56  
57      public com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
58          long columnId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
62          long tableId)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
66          long tableId, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
70          long tableId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
75          long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.kernel.exception.SystemException,
77              com.liferay.portlet.expando.NoSuchColumnException;
78  
79      public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
80          long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.kernel.exception.SystemException,
82              com.liferay.portlet.expando.NoSuchColumnException;
83  
84      public com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
85          long columnId, long tableId,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.kernel.exception.SystemException,
88              com.liferay.portlet.expando.NoSuchColumnException;
89  
90      public com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
91          long tableId, java.lang.String name)
92          throws com.liferay.portal.kernel.exception.SystemException,
93              com.liferay.portlet.expando.NoSuchColumnException;
94  
95      public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
96          long tableId, java.lang.String name)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
100         long tableId, java.lang.String name, boolean retrieveFromCache)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
107         int start, int end)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
111         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.kernel.exception.SystemException;
113 
114     public void removeByTableId(long tableId)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public void removeByT_N(long tableId, java.lang.String name)
118         throws com.liferay.portal.kernel.exception.SystemException,
119             com.liferay.portlet.expando.NoSuchColumnException;
120 
121     public void removeAll()
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public int countByTableId(long tableId)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public int countByT_N(long tableId, java.lang.String name)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public int countAll()
131         throws com.liferay.portal.kernel.exception.SystemException;
132 }