1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Country updateImpl(
45          com.liferay.portal.model.Country country, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Country findByPrimaryKey(long countryId)
49          throws com.liferay.portal.NoSuchCountryException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Country fetchByPrimaryKey(long countryId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public com.liferay.portal.model.Country findByName(java.lang.String name)
56          throws com.liferay.portal.NoSuchCountryException,
57              com.liferay.portal.kernel.exception.SystemException;
58  
59      public com.liferay.portal.model.Country fetchByName(java.lang.String name)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public com.liferay.portal.model.Country fetchByName(java.lang.String name,
63          boolean retrieveFromCache)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public com.liferay.portal.model.Country findByA2(java.lang.String a2)
67          throws com.liferay.portal.NoSuchCountryException,
68              com.liferay.portal.kernel.exception.SystemException;
69  
70      public com.liferay.portal.model.Country fetchByA2(java.lang.String a2)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.Country fetchByA2(java.lang.String a2,
74          boolean retrieveFromCache)
75          throws com.liferay.portal.kernel.exception.SystemException;
76  
77      public com.liferay.portal.model.Country findByA3(java.lang.String a3)
78          throws com.liferay.portal.NoSuchCountryException,
79              com.liferay.portal.kernel.exception.SystemException;
80  
81      public com.liferay.portal.model.Country fetchByA3(java.lang.String a3)
82          throws com.liferay.portal.kernel.exception.SystemException;
83  
84      public com.liferay.portal.model.Country fetchByA3(java.lang.String a3,
85          boolean retrieveFromCache)
86          throws com.liferay.portal.kernel.exception.SystemException;
87  
88      public java.util.List<com.liferay.portal.model.Country> findByActive(
89          boolean active)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.Country> findByActive(
93          boolean active, int start, int end)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.Country> findByActive(
97          boolean active, int start, int end,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portal.model.Country findByActive_First(boolean active,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.NoSuchCountryException,
104             com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portal.model.Country findByActive_Last(boolean active,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.NoSuchCountryException,
109             com.liferay.portal.kernel.exception.SystemException;
110 
111     public com.liferay.portal.model.Country[] findByActive_PrevAndNext(
112         long countryId, boolean active,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchCountryException,
115             com.liferay.portal.kernel.exception.SystemException;
116 
117     public java.util.List<com.liferay.portal.model.Country> findAll()
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.Country> findAll(int start,
121         int end) throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.Country> findAll(int start,
124         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public void removeByName(java.lang.String name)
128         throws com.liferay.portal.NoSuchCountryException,
129             com.liferay.portal.kernel.exception.SystemException;
130 
131     public void removeByA2(java.lang.String a2)
132         throws com.liferay.portal.NoSuchCountryException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public void removeByA3(java.lang.String a3)
136         throws com.liferay.portal.NoSuchCountryException,
137             com.liferay.portal.kernel.exception.SystemException;
138 
139     public void removeByActive(boolean active)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public void removeAll()
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public int countByName(java.lang.String name)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public int countByA2(java.lang.String a2)
149         throws com.liferay.portal.kernel.exception.SystemException;
150 
151     public int countByA3(java.lang.String a3)
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public int countByActive(boolean active)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public int countAll()
158         throws com.liferay.portal.kernel.exception.SystemException;
159 }