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.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.kernel.exception.SystemException,
45              com.liferay.portlet.expando.NoSuchRowException;
46  
47      public com.liferay.portlet.expando.model.ExpandoRow updateImpl(
48          com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portlet.expando.model.ExpandoRow findByPrimaryKey(
52          long rowId)
53          throws com.liferay.portal.kernel.exception.SystemException,
54              com.liferay.portlet.expando.NoSuchRowException;
55  
56      public com.liferay.portlet.expando.model.ExpandoRow fetchByPrimaryKey(
57          long rowId) throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
60          long tableId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
64          long tableId, int start, int end)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
68          long tableId, int start, int end,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
73          long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.kernel.exception.SystemException,
75              com.liferay.portlet.expando.NoSuchRowException;
76  
77      public com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
78          long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.expando.NoSuchRowException;
81  
82      public com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
83          long rowId, long tableId,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.expando.NoSuchRowException;
87  
88      public com.liferay.portlet.expando.model.ExpandoRow findByT_C(
89          long tableId, long classPK)
90          throws com.liferay.portal.kernel.exception.SystemException,
91              com.liferay.portlet.expando.NoSuchRowException;
92  
93      public com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
94          long tableId, long classPK)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
98          long tableId, long classPK, boolean retrieveFromCache)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
105         int start, int end)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
109         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public void removeByTableId(long tableId)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public void removeByT_C(long tableId, long classPK)
116         throws com.liferay.portal.kernel.exception.SystemException,
117             com.liferay.portlet.expando.NoSuchRowException;
118 
119     public void removeAll()
120         throws com.liferay.portal.kernel.exception.SystemException;
121 
122     public int countByTableId(long tableId)
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public int countByT_C(long tableId, long classPK)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public int countAll()
129         throws com.liferay.portal.kernel.exception.SystemException;
130 }