1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.Country;
18  
19  /**
20   * <a href="CountryPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       CountryPersistenceImpl
29   * @see       CountryUtil
30   * @generated
31   */
32  public interface CountryPersistence extends BasePersistence<Country> {
33      public void cacheResult(com.liferay.portal.model.Country country);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Country> countries);
37  
38      public com.liferay.portal.model.Country create(long countryId);
39  
40      public com.liferay.portal.model.Country remove(long countryId)
41          throws com.liferay.portal.NoSuchCountryException,
42              com.liferay.portal.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.Country update(
48          com.liferay.portal.model.Country country)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.Country updateImpl(
52          com.liferay.portal.model.Country country, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.Country findByPrimaryKey(long countryId)
56          throws com.liferay.portal.NoSuchCountryException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Country fetchByPrimaryKey(long countryId)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.Country findByName(java.lang.String name)
63          throws com.liferay.portal.NoSuchCountryException,
64              com.liferay.portal.SystemException;
65  
66      public com.liferay.portal.model.Country fetchByName(java.lang.String name)
67          throws com.liferay.portal.SystemException;
68  
69      public com.liferay.portal.model.Country fetchByName(java.lang.String name,
70          boolean retrieveFromCache) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portal.model.Country findByA2(java.lang.String a2)
73          throws com.liferay.portal.NoSuchCountryException,
74              com.liferay.portal.SystemException;
75  
76      public com.liferay.portal.model.Country fetchByA2(java.lang.String a2)
77          throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portal.model.Country fetchByA2(java.lang.String a2,
80          boolean retrieveFromCache) throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portal.model.Country findByA3(java.lang.String a3)
83          throws com.liferay.portal.NoSuchCountryException,
84              com.liferay.portal.SystemException;
85  
86      public com.liferay.portal.model.Country fetchByA3(java.lang.String a3)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.Country fetchByA3(java.lang.String a3,
90          boolean retrieveFromCache) throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.Country> findByActive(
93          boolean active) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.Country> findByActive(
96          boolean active, int start, int end)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.Country> findByActive(
100         boolean active, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.Country findByActive_First(boolean active,
105         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106         throws com.liferay.portal.NoSuchCountryException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.Country findByActive_Last(boolean active,
110         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111         throws com.liferay.portal.NoSuchCountryException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.Country[] findByActive_PrevAndNext(
115         long countryId, boolean active,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.NoSuchCountryException,
118             com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.Country> findAll()
121         throws com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.Country> findAll(int start,
124         int end) throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.Country> findAll(int start,
127         int end,
128         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129         throws com.liferay.portal.SystemException;
130 
131     public void removeByName(java.lang.String name)
132         throws com.liferay.portal.NoSuchCountryException,
133             com.liferay.portal.SystemException;
134 
135     public void removeByA2(java.lang.String a2)
136         throws com.liferay.portal.NoSuchCountryException,
137             com.liferay.portal.SystemException;
138 
139     public void removeByA3(java.lang.String a3)
140         throws com.liferay.portal.NoSuchCountryException,
141             com.liferay.portal.SystemException;
142 
143     public void removeByActive(boolean active)
144         throws com.liferay.portal.SystemException;
145 
146     public void removeAll() throws com.liferay.portal.SystemException;
147 
148     public int countByName(java.lang.String name)
149         throws com.liferay.portal.SystemException;
150 
151     public int countByA2(java.lang.String a2)
152         throws com.liferay.portal.SystemException;
153 
154     public int countByA3(java.lang.String a3)
155         throws com.liferay.portal.SystemException;
156 
157     public int countByActive(boolean active)
158         throws com.liferay.portal.SystemException;
159 
160     public int countAll() throws com.liferay.portal.SystemException;
161 }