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.portal.service.persistence;
16  
17  import com.liferay.portal.model.LayoutPrototype;
18  
19  /**
20   * <a href="LayoutPrototypePersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       LayoutPrototypePersistenceImpl
29   * @see       LayoutPrototypeUtil
30   * @generated
31   */
32  public interface LayoutPrototypePersistence extends BasePersistence<LayoutPrototype> {
33      public void cacheResult(
34          com.liferay.portal.model.LayoutPrototype layoutPrototype);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.LayoutPrototype> layoutPrototypes);
38  
39      public com.liferay.portal.model.LayoutPrototype create(
40          long layoutPrototypeId);
41  
42      public com.liferay.portal.model.LayoutPrototype remove(
43          long layoutPrototypeId)
44          throws com.liferay.portal.NoSuchLayoutPrototypeException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.LayoutPrototype updateImpl(
48          com.liferay.portal.model.LayoutPrototype layoutPrototype, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portal.model.LayoutPrototype findByPrimaryKey(
52          long layoutPrototypeId)
53          throws com.liferay.portal.NoSuchLayoutPrototypeException,
54              com.liferay.portal.kernel.exception.SystemException;
55  
56      public com.liferay.portal.model.LayoutPrototype fetchByPrimaryKey(
57          long layoutPrototypeId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
61          long companyId)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
65          long companyId, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
69          long companyId, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator obc)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.LayoutPrototype findByCompanyId_First(
74          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.NoSuchLayoutPrototypeException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.LayoutPrototype findByCompanyId_Last(
79          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.NoSuchLayoutPrototypeException,
81              com.liferay.portal.kernel.exception.SystemException;
82  
83      public com.liferay.portal.model.LayoutPrototype[] findByCompanyId_PrevAndNext(
84          long layoutPrototypeId, long companyId,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.NoSuchLayoutPrototypeException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
90          long companyId, boolean active)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
94          long companyId, boolean active, int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
98          long companyId, boolean active, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portal.model.LayoutPrototype findByC_A_First(
103         long companyId, boolean active,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.NoSuchLayoutPrototypeException,
106             com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portal.model.LayoutPrototype findByC_A_Last(
109         long companyId, boolean active,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchLayoutPrototypeException,
112             com.liferay.portal.kernel.exception.SystemException;
113 
114     public com.liferay.portal.model.LayoutPrototype[] findByC_A_PrevAndNext(
115         long layoutPrototypeId, long companyId, boolean active,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchLayoutPrototypeException,
118             com.liferay.portal.kernel.exception.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll()
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
124         int start, int end)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
128         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public void removeByCompanyId(long companyId)
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public void removeByC_A(long companyId, boolean active)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public void removeAll()
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public int countByCompanyId(long companyId)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public int countByC_A(long companyId, boolean active)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public int countAll()
147         throws com.liferay.portal.kernel.exception.SystemException;
148 }