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.ResourceCode;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ResourceCodePersistenceImpl
022     * @see       ResourceCodeUtil
023     * @generated
024     */
025    public interface ResourceCodePersistence extends BasePersistence<ResourceCode> {
026            public void cacheResult(com.liferay.portal.model.ResourceCode resourceCode);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.ResourceCode> resourceCodes);
030    
031            public com.liferay.portal.model.ResourceCode create(long codeId);
032    
033            public com.liferay.portal.model.ResourceCode remove(long codeId)
034                    throws com.liferay.portal.NoSuchResourceCodeException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.ResourceCode updateImpl(
038                    com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.ResourceCode findByPrimaryKey(long codeId)
042                    throws com.liferay.portal.NoSuchResourceCodeException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.ResourceCode fetchByPrimaryKey(long codeId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
049                    long companyId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
053                    long companyId, int start, int end)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
057                    long companyId, int start, int end,
058                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public com.liferay.portal.model.ResourceCode findByCompanyId_First(
062                    long companyId,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.NoSuchResourceCodeException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.ResourceCode findByCompanyId_Last(
068                    long companyId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchResourceCodeException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.ResourceCode[] findByCompanyId_PrevAndNext(
074                    long codeId, long companyId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchResourceCodeException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
080                    java.lang.String name)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
084                    java.lang.String name, int start, int end)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
088                    java.lang.String name, int start, int end,
089                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.portal.model.ResourceCode findByName_First(
093                    java.lang.String name,
094                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
095                    throws com.liferay.portal.NoSuchResourceCodeException,
096                            com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portal.model.ResourceCode findByName_Last(
099                    java.lang.String name,
100                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
101                    throws com.liferay.portal.NoSuchResourceCodeException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portal.model.ResourceCode[] findByName_PrevAndNext(
105                    long codeId, java.lang.String name,
106                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107                    throws com.liferay.portal.NoSuchResourceCodeException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            public com.liferay.portal.model.ResourceCode findByC_N_S(long companyId,
111                    java.lang.String name, int scope)
112                    throws com.liferay.portal.NoSuchResourceCodeException,
113                            com.liferay.portal.kernel.exception.SystemException;
114    
115            public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
116                    java.lang.String name, int scope)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
120                    java.lang.String name, int scope, boolean retrieveFromCache)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            public java.util.List<com.liferay.portal.model.ResourceCode> findAll()
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
127                    int start, int end)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
131                    int start, int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public void removeByCompanyId(long companyId)
136                    throws com.liferay.portal.kernel.exception.SystemException;
137    
138            public void removeByName(java.lang.String name)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            public void removeByC_N_S(long companyId, java.lang.String name, int scope)
142                    throws com.liferay.portal.NoSuchResourceCodeException,
143                            com.liferay.portal.kernel.exception.SystemException;
144    
145            public void removeAll()
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            public int countByCompanyId(long companyId)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public int countByName(java.lang.String name)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            public int countByC_N_S(long companyId, java.lang.String name, int scope)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public int countAll()
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    }