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