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.ExpandoRow;
20  
21  /**
22   * <a href="ExpandoRowPersistence.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       ExpandoRowPersistenceImpl
31   * @see       ExpandoRowUtil
32   * @generated
33   */
34  public interface ExpandoRowPersistence extends BasePersistence<ExpandoRow> {
35      public void cacheResult(
36          com.liferay.portlet.expando.model.ExpandoRow expandoRow);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.expando.model.ExpandoRow> expandoRows);
40  
41      public com.liferay.portlet.expando.model.ExpandoRow create(long rowId);
42  
43      public com.liferay.portlet.expando.model.ExpandoRow remove(long rowId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.expando.NoSuchRowException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.expando.model.ExpandoRow update(
51          com.liferay.portlet.expando.model.ExpandoRow expandoRow)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.expando.model.ExpandoRow updateImpl(
55          com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.expando.model.ExpandoRow findByPrimaryKey(
59          long rowId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.expando.NoSuchRowException;
62  
63      public com.liferay.portlet.expando.model.ExpandoRow fetchByPrimaryKey(
64          long rowId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
67          long tableId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
70          long tableId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
74          long tableId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
79          long tableId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.expando.NoSuchRowException;
83  
84      public com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
85          long tableId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.expando.NoSuchRowException;
89  
90      public com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
91          long rowId, long tableId,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.expando.NoSuchRowException;
95  
96      public com.liferay.portlet.expando.model.ExpandoRow findByT_C(
97          long tableId, long classPK)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.expando.NoSuchRowException;
100 
101     public com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
102         long tableId, long classPK) throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
105         long tableId, long classPK, boolean retrieveFromCache)
106         throws com.liferay.portal.SystemException;
107 
108     public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
109         throws com.liferay.portal.SystemException;
110 
111     public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
112         int start, int end) throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
115         int start, int end,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.SystemException;
118 
119     public void removeByTableId(long tableId)
120         throws com.liferay.portal.SystemException;
121 
122     public void removeByT_C(long tableId, long classPK)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.expando.NoSuchRowException;
125 
126     public void removeAll() throws com.liferay.portal.SystemException;
127 
128     public int countByTableId(long tableId)
129         throws com.liferay.portal.SystemException;
130 
131     public int countByT_C(long tableId, long classPK)
132         throws com.liferay.portal.SystemException;
133 
134     public int countAll() throws com.liferay.portal.SystemException;
135 }