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> findByClassNameId(
67          long classNameId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
70          long classNameId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
74          long classNameId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.expando.model.ExpandoTable findByClassNameId_First(
79          long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.expando.NoSuchTableException;
82  
83      public com.liferay.portlet.expando.model.ExpandoTable findByClassNameId_Last(
84          long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException,
86              com.liferay.portlet.expando.NoSuchTableException;
87  
88      public com.liferay.portlet.expando.model.ExpandoTable[] findByClassNameId_PrevAndNext(
89          long tableId, long classNameId,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.expando.NoSuchTableException;
93  
94      public com.liferay.portlet.expando.model.ExpandoTable findByC_N(
95          long classNameId, java.lang.String name)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portlet.expando.NoSuchTableException;
98  
99      public com.liferay.portlet.expando.model.ExpandoTable fetchByC_N(
100         long classNameId, java.lang.String name)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portlet.expando.model.ExpandoTable fetchByC_N(
104         long classNameId, java.lang.String name, boolean retrieveFromCache)
105         throws com.liferay.portal.SystemException;
106 
107     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
108         throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
111         int start, int end) throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
114         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException;
116 
117     public void removeByClassNameId(long classNameId)
118         throws com.liferay.portal.SystemException;
119 
120     public void removeByC_N(long classNameId, java.lang.String name)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.expando.NoSuchTableException;
123 
124     public void removeAll() throws com.liferay.portal.SystemException;
125 
126     public int countByClassNameId(long classNameId)
127         throws com.liferay.portal.SystemException;
128 
129     public int countByC_N(long classNameId, java.lang.String name)
130         throws com.liferay.portal.SystemException;
131 
132     public int countAll() throws com.liferay.portal.SystemException;
133 }