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.LayoutSetPrototype;
18  
19  /**
20   * <a href="LayoutSetPrototypePersistence.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       LayoutSetPrototypePersistenceImpl
29   * @see       LayoutSetPrototypeUtil
30   * @generated
31   */
32  public interface LayoutSetPrototypePersistence extends BasePersistence<LayoutSetPrototype> {
33      public void cacheResult(
34          com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes);
38  
39      public com.liferay.portal.model.LayoutSetPrototype create(
40          long layoutSetPrototypeId);
41  
42      public com.liferay.portal.model.LayoutSetPrototype remove(
43          long layoutSetPrototypeId)
44          throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.LayoutSetPrototype updateImpl(
48          com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey(
53          long layoutSetPrototypeId)
54          throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
55              com.liferay.portal.kernel.exception.SystemException;
56  
57      public com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey(
58          long layoutSetPrototypeId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
62          long companyId)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
66          long companyId, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
70          long companyId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First(
75          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last(
80          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext(
85          long layoutSetPrototypeId, long companyId,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
88              com.liferay.portal.kernel.exception.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
91          long companyId, boolean active)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
95          long companyId, boolean active, int start, int end)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
99          long companyId, boolean active, int start, int end,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portal.model.LayoutSetPrototype findByC_A_First(
104         long companyId, boolean active,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
107             com.liferay.portal.kernel.exception.SystemException;
108 
109     public com.liferay.portal.model.LayoutSetPrototype findByC_A_Last(
110         long companyId, boolean active,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
113             com.liferay.portal.kernel.exception.SystemException;
114 
115     public com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext(
116         long layoutSetPrototypeId, long companyId, boolean active,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
119             com.liferay.portal.kernel.exception.SystemException;
120 
121     public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll()
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
125         int start, int end)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
129         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public void removeByCompanyId(long companyId)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public void removeByC_A(long companyId, boolean active)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public void removeAll()
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public int countByCompanyId(long companyId)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public int countByC_A(long companyId, boolean active)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public int countAll()
148         throws com.liferay.portal.kernel.exception.SystemException;
149 }