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.LayoutSet;
18  
19  /**
20   * <a href="LayoutSetPersistence.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       LayoutSetPersistenceImpl
29   * @see       LayoutSetUtil
30   * @generated
31   */
32  public interface LayoutSetPersistence extends BasePersistence<LayoutSet> {
33      public void cacheResult(com.liferay.portal.model.LayoutSet layoutSet);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.LayoutSet> layoutSets);
37  
38      public com.liferay.portal.model.LayoutSet create(long layoutSetId);
39  
40      public com.liferay.portal.model.LayoutSet remove(long layoutSetId)
41          throws com.liferay.portal.NoSuchLayoutSetException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.LayoutSet updateImpl(
45          com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.LayoutSet findByPrimaryKey(long layoutSetId)
49          throws com.liferay.portal.NoSuchLayoutSetException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
53          long layoutSetId)
54          throws com.liferay.portal.kernel.exception.SystemException;
55  
56      public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
57          long groupId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
61          long groupId, int start, int end)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
65          long groupId, int start, int end,
66          com.liferay.portal.kernel.util.OrderByComparator obc)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public com.liferay.portal.model.LayoutSet findByGroupId_First(
70          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
71          throws com.liferay.portal.NoSuchLayoutSetException,
72              com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.LayoutSet findByGroupId_Last(long groupId,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchLayoutSetException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
80          long layoutSetId, long groupId,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.NoSuchLayoutSetException,
83              com.liferay.portal.kernel.exception.SystemException;
84  
85      public com.liferay.portal.model.LayoutSet findByVirtualHost(
86          java.lang.String virtualHost)
87          throws com.liferay.portal.NoSuchLayoutSetException,
88              com.liferay.portal.kernel.exception.SystemException;
89  
90      public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
91          java.lang.String virtualHost)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
95          java.lang.String virtualHost, boolean retrieveFromCache)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portal.model.LayoutSet findByG_P(long groupId,
99          boolean privateLayout)
100         throws com.liferay.portal.NoSuchLayoutSetException,
101             com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
104         boolean privateLayout)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
108         boolean privateLayout, boolean retrieveFromCache)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portal.model.LayoutSet> findAll()
112         throws com.liferay.portal.kernel.exception.SystemException;
113 
114     public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
115         int start, int end)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
119         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.kernel.exception.SystemException;
121 
122     public void removeByGroupId(long groupId)
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public void removeByVirtualHost(java.lang.String virtualHost)
126         throws com.liferay.portal.NoSuchLayoutSetException,
127             com.liferay.portal.kernel.exception.SystemException;
128 
129     public void removeByG_P(long groupId, boolean privateLayout)
130         throws com.liferay.portal.NoSuchLayoutSetException,
131             com.liferay.portal.kernel.exception.SystemException;
132 
133     public void removeAll()
134         throws com.liferay.portal.kernel.exception.SystemException;
135 
136     public int countByGroupId(long groupId)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public int countByVirtualHost(java.lang.String virtualHost)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public int countByG_P(long groupId, boolean privateLayout)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public int countAll()
146         throws com.liferay.portal.kernel.exception.SystemException;
147 }