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.LayoutSetPrototype;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       LayoutSetPrototypePersistenceImpl
022     * @see       LayoutSetPrototypeUtil
023     * @generated
024     */
025    public interface LayoutSetPrototypePersistence extends BasePersistence<LayoutSetPrototype> {
026            public void cacheResult(
027                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype);
028    
029            public void cacheResult(
030                    java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes);
031    
032            public com.liferay.portal.model.LayoutSetPrototype create(
033                    long layoutSetPrototypeId);
034    
035            public com.liferay.portal.model.LayoutSetPrototype remove(
036                    long layoutSetPrototypeId)
037                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
038                            com.liferay.portal.kernel.exception.SystemException;
039    
040            public com.liferay.portal.model.LayoutSetPrototype updateImpl(
041                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey(
046                    long layoutSetPrototypeId)
047                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
048                            com.liferay.portal.kernel.exception.SystemException;
049    
050            public com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey(
051                    long layoutSetPrototypeId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
055                    long companyId)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
059                    long companyId, int start, int end)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
063                    long companyId, int start, int end,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First(
068                    long companyId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last(
074                    long companyId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext(
080                    long layoutSetPrototypeId, long companyId,
081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
082                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
086                    long companyId, boolean active)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
090                    long companyId, boolean active, int start, int end)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
094                    long companyId, boolean active, int start, int end,
095                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portal.model.LayoutSetPrototype findByC_A_First(
099                    long companyId, boolean active,
100                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
101                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portal.model.LayoutSetPrototype findByC_A_Last(
105                    long companyId, boolean active,
106                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            public com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext(
111                    long layoutSetPrototypeId, long companyId, boolean active,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll()
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
120                    int start, int end)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
124                    int start, int end,
125                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public void removeByCompanyId(long companyId)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public void removeByC_A(long companyId, boolean active)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            public void removeAll()
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            public int countByCompanyId(long companyId)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public int countByC_A(long companyId, boolean active)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public int countAll()
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    }