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 orderByComparator)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public com.liferay.portal.model.LayoutSet findByGroupId_First(
70          long groupId,
71          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72          throws com.liferay.portal.NoSuchLayoutSetException,
73              com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portal.model.LayoutSet findByGroupId_Last(long groupId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.NoSuchLayoutSetException,
78              com.liferay.portal.kernel.exception.SystemException;
79  
80      public com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
81          long layoutSetId, long groupId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.NoSuchLayoutSetException,
84              com.liferay.portal.kernel.exception.SystemException;
85  
86      public com.liferay.portal.model.LayoutSet findByVirtualHost(
87          java.lang.String virtualHost)
88          throws com.liferay.portal.NoSuchLayoutSetException,
89              com.liferay.portal.kernel.exception.SystemException;
90  
91      public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
92          java.lang.String virtualHost)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
96          java.lang.String virtualHost, boolean retrieveFromCache)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portal.model.LayoutSet findByG_P(long groupId,
100         boolean privateLayout)
101         throws com.liferay.portal.NoSuchLayoutSetException,
102             com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
105         boolean privateLayout)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
109         boolean privateLayout, boolean retrieveFromCache)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portal.model.LayoutSet> findAll()
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
116         int start, int end)
117         throws com.liferay.portal.kernel.exception.SystemException;
118 
119     public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
120         int start, int end,
121         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public void removeByGroupId(long groupId)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public void removeByVirtualHost(java.lang.String virtualHost)
128         throws com.liferay.portal.NoSuchLayoutSetException,
129             com.liferay.portal.kernel.exception.SystemException;
130 
131     public void removeByG_P(long groupId, boolean privateLayout)
132         throws com.liferay.portal.NoSuchLayoutSetException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public void removeAll()
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public int countByGroupId(long groupId)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public int countByVirtualHost(java.lang.String virtualHost)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public int countByG_P(long groupId, boolean privateLayout)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public int countAll()
148         throws com.liferay.portal.kernel.exception.SystemException;
149 }