001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.LayoutSet;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       LayoutSetPersistenceImpl
022     * @see       LayoutSetUtil
023     * @generated
024     */
025    public interface LayoutSetPersistence extends BasePersistence<LayoutSet> {
026            public void cacheResult(com.liferay.portal.model.LayoutSet layoutSet);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.LayoutSet> layoutSets);
030    
031            public com.liferay.portal.model.LayoutSet create(long layoutSetId);
032    
033            public com.liferay.portal.model.LayoutSet remove(long layoutSetId)
034                    throws com.liferay.portal.NoSuchLayoutSetException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.LayoutSet updateImpl(
038                    com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.LayoutSet findByPrimaryKey(long layoutSetId)
042                    throws com.liferay.portal.NoSuchLayoutSetException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
046                    long layoutSetId)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
050                    long groupId)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
054                    long groupId, int start, int end)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
058                    long groupId, int start, int end,
059                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public com.liferay.portal.model.LayoutSet findByGroupId_First(
063                    long groupId,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.NoSuchLayoutSetException,
066                            com.liferay.portal.kernel.exception.SystemException;
067    
068            public com.liferay.portal.model.LayoutSet findByGroupId_Last(long groupId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchLayoutSetException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
074                    long layoutSetId, long groupId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchLayoutSetException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public com.liferay.portal.model.LayoutSet findByVirtualHost(
080                    java.lang.String virtualHost)
081                    throws com.liferay.portal.NoSuchLayoutSetException,
082                            com.liferay.portal.kernel.exception.SystemException;
083    
084            public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
085                    java.lang.String virtualHost)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
089                    java.lang.String virtualHost, boolean retrieveFromCache)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.portal.model.LayoutSet findByG_P(long groupId,
093                    boolean privateLayout)
094                    throws com.liferay.portal.NoSuchLayoutSetException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
098                    boolean privateLayout)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
102                    boolean privateLayout, boolean retrieveFromCache)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            public java.util.List<com.liferay.portal.model.LayoutSet> findAll()
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
109                    int start, int end)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
113                    int start, int end,
114                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            public void removeByGroupId(long groupId)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            public void removeByVirtualHost(java.lang.String virtualHost)
121                    throws com.liferay.portal.NoSuchLayoutSetException,
122                            com.liferay.portal.kernel.exception.SystemException;
123    
124            public void removeByG_P(long groupId, boolean privateLayout)
125                    throws com.liferay.portal.NoSuchLayoutSetException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            public void removeAll()
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public int countByGroupId(long groupId)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            public int countByVirtualHost(java.lang.String virtualHost)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            public int countByG_P(long groupId, boolean privateLayout)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public int countAll()
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    }