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 orderByComparator)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.LayoutPrototype findByCompanyId_First(
74          long companyId,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.NoSuchLayoutPrototypeException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.LayoutPrototype findByCompanyId_Last(
80          long companyId,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.NoSuchLayoutPrototypeException,
83              com.liferay.portal.kernel.exception.SystemException;
84  
85      public com.liferay.portal.model.LayoutPrototype[] findByCompanyId_PrevAndNext(
86          long layoutPrototypeId, long companyId,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.NoSuchLayoutPrototypeException,
89              com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
92          long companyId, boolean active)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
96          long companyId, boolean active, int start, int end)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
100         long companyId, boolean active, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portal.model.LayoutPrototype findByC_A_First(
105         long companyId, boolean active,
106         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107         throws com.liferay.portal.NoSuchLayoutPrototypeException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portal.model.LayoutPrototype findByC_A_Last(
111         long companyId, boolean active,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.NoSuchLayoutPrototypeException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portal.model.LayoutPrototype[] findByC_A_PrevAndNext(
117         long layoutPrototypeId, long companyId, boolean active,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.NoSuchLayoutPrototypeException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll()
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
126         int start, int end)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
130         int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public void removeByCompanyId(long companyId)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public void removeByC_A(long companyId, boolean active)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public void removeAll()
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public int countByCompanyId(long companyId)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public int countByC_A(long companyId, boolean active)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public int countAll()
150         throws com.liferay.portal.kernel.exception.SystemException;
151 }