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 orderByComparator)
70          throws com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
73          long tableId,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.kernel.exception.SystemException,
76              com.liferay.portlet.expando.NoSuchRowException;
77  
78      public com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
79          long tableId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.kernel.exception.SystemException,
82              com.liferay.portlet.expando.NoSuchRowException;
83  
84      public com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
85          long rowId, long tableId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.kernel.exception.SystemException,
88              com.liferay.portlet.expando.NoSuchRowException;
89  
90      public com.liferay.portlet.expando.model.ExpandoRow findByT_C(
91          long tableId, long classPK)
92          throws com.liferay.portal.kernel.exception.SystemException,
93              com.liferay.portlet.expando.NoSuchRowException;
94  
95      public com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
96          long tableId, long classPK)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
100         long tableId, long classPK, boolean retrieveFromCache)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> 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.ExpandoRow> findAll(
111         int start, int end,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public void removeByTableId(long tableId)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public void removeByT_C(long tableId, long classPK)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.expando.NoSuchRowException;
121 
122     public void removeAll()
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public int countByTableId(long tableId)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public int countByT_C(long tableId, long classPK)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public int countAll()
132         throws com.liferay.portal.kernel.exception.SystemException;
133 }