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.Region;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       RegionPersistenceImpl
022     * @see       RegionUtil
023     * @generated
024     */
025    public interface RegionPersistence extends BasePersistence<Region> {
026            public void cacheResult(com.liferay.portal.model.Region region);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Region> regions);
030    
031            public com.liferay.portal.model.Region create(long regionId);
032    
033            public com.liferay.portal.model.Region remove(long regionId)
034                    throws com.liferay.portal.NoSuchRegionException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Region updateImpl(
038                    com.liferay.portal.model.Region region, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Region findByPrimaryKey(long regionId)
042                    throws com.liferay.portal.NoSuchRegionException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Region fetchByPrimaryKey(long regionId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.Region> findByCountryId(
049                    long countryId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portal.model.Region> findByCountryId(
053                    long countryId, int start, int end)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portal.model.Region> findByCountryId(
057                    long countryId, 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.Region findByCountryId_First(
062                    long countryId,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.NoSuchRegionException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.Region findByCountryId_Last(
068                    long countryId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchRegionException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.Region[] findByCountryId_PrevAndNext(
074                    long regionId, long countryId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchRegionException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portal.model.Region> findByActive(
080                    boolean active)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            public java.util.List<com.liferay.portal.model.Region> findByActive(
084                    boolean active, int start, int end)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            public java.util.List<com.liferay.portal.model.Region> findByActive(
088                    boolean active, 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.Region findByActive_First(boolean active,
093                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
094                    throws com.liferay.portal.NoSuchRegionException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public com.liferay.portal.model.Region findByActive_Last(boolean active,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.NoSuchRegionException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            public com.liferay.portal.model.Region[] findByActive_PrevAndNext(
103                    long regionId, boolean active,
104                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105                    throws com.liferay.portal.NoSuchRegionException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            public java.util.List<com.liferay.portal.model.Region> findByC_A(
109                    long countryId, boolean active)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public java.util.List<com.liferay.portal.model.Region> findByC_A(
113                    long countryId, boolean active, int start, int end)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            public java.util.List<com.liferay.portal.model.Region> findByC_A(
117                    long countryId, boolean active, int start, int end,
118                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public com.liferay.portal.model.Region findByC_A_First(long countryId,
122                    boolean active,
123                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124                    throws com.liferay.portal.NoSuchRegionException,
125                            com.liferay.portal.kernel.exception.SystemException;
126    
127            public com.liferay.portal.model.Region findByC_A_Last(long countryId,
128                    boolean active,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.NoSuchRegionException,
131                            com.liferay.portal.kernel.exception.SystemException;
132    
133            public com.liferay.portal.model.Region[] findByC_A_PrevAndNext(
134                    long regionId, long countryId, boolean active,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.NoSuchRegionException,
137                            com.liferay.portal.kernel.exception.SystemException;
138    
139            public java.util.List<com.liferay.portal.model.Region> findAll()
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public java.util.List<com.liferay.portal.model.Region> findAll(int start,
143                    int end) throws com.liferay.portal.kernel.exception.SystemException;
144    
145            public java.util.List<com.liferay.portal.model.Region> findAll(int start,
146                    int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            public void removeByCountryId(long countryId)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            public void removeByActive(boolean active)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public void removeByC_A(long countryId, boolean active)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public void removeAll()
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public int countByCountryId(long countryId)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            public int countByActive(boolean active)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public int countByC_A(long countryId, boolean active)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            public int countAll()
172                    throws com.liferay.portal.kernel.exception.SystemException;
173    }