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.Country;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       CountryPersistenceImpl
022     * @see       CountryUtil
023     * @generated
024     */
025    public interface CountryPersistence extends BasePersistence<Country> {
026            public void cacheResult(com.liferay.portal.model.Country country);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Country> countries);
030    
031            public com.liferay.portal.model.Country create(long countryId);
032    
033            public com.liferay.portal.model.Country remove(long countryId)
034                    throws com.liferay.portal.NoSuchCountryException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Country updateImpl(
038                    com.liferay.portal.model.Country country, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Country findByPrimaryKey(long countryId)
042                    throws com.liferay.portal.NoSuchCountryException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Country fetchByPrimaryKey(long countryId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public com.liferay.portal.model.Country findByName(java.lang.String name)
049                    throws com.liferay.portal.NoSuchCountryException,
050                            com.liferay.portal.kernel.exception.SystemException;
051    
052            public com.liferay.portal.model.Country fetchByName(java.lang.String name)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public com.liferay.portal.model.Country fetchByName(java.lang.String name,
056                    boolean retrieveFromCache)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public com.liferay.portal.model.Country findByA2(java.lang.String a2)
060                    throws com.liferay.portal.NoSuchCountryException,
061                            com.liferay.portal.kernel.exception.SystemException;
062    
063            public com.liferay.portal.model.Country fetchByA2(java.lang.String a2)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portal.model.Country fetchByA2(java.lang.String a2,
067                    boolean retrieveFromCache)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            public com.liferay.portal.model.Country findByA3(java.lang.String a3)
071                    throws com.liferay.portal.NoSuchCountryException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portal.model.Country fetchByA3(java.lang.String a3)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portal.model.Country fetchByA3(java.lang.String a3,
078                    boolean retrieveFromCache)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            public java.util.List<com.liferay.portal.model.Country> findByActive(
082                    boolean active)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            public java.util.List<com.liferay.portal.model.Country> findByActive(
086                    boolean active, int start, int end)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portal.model.Country> findByActive(
090                    boolean active, int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portal.model.Country findByActive_First(boolean active,
095                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
096                    throws com.liferay.portal.NoSuchCountryException,
097                            com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portal.model.Country findByActive_Last(boolean active,
100                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
101                    throws com.liferay.portal.NoSuchCountryException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portal.model.Country[] findByActive_PrevAndNext(
105                    long countryId, boolean active,
106                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107                    throws com.liferay.portal.NoSuchCountryException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            public java.util.List<com.liferay.portal.model.Country> findAll()
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public java.util.List<com.liferay.portal.model.Country> findAll(int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException;
115    
116            public java.util.List<com.liferay.portal.model.Country> findAll(int start,
117                    int end,
118                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public void removeByName(java.lang.String name)
122                    throws com.liferay.portal.NoSuchCountryException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            public void removeByA2(java.lang.String a2)
126                    throws com.liferay.portal.NoSuchCountryException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    
129            public void removeByA3(java.lang.String a3)
130                    throws com.liferay.portal.NoSuchCountryException,
131                            com.liferay.portal.kernel.exception.SystemException;
132    
133            public void removeByActive(boolean active)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            public void removeAll()
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public int countByName(java.lang.String name)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public int countByA2(java.lang.String a2)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            public int countByA3(java.lang.String a3)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            public int countByActive(boolean active)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public int countAll()
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    }