1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Country;
18
19
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
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 obc)
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 obc)
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 obc)
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 obc)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.SystemException;
129
130 public void removeByName(java.lang.String name)
131 throws com.liferay.portal.NoSuchCountryException,
132 com.liferay.portal.SystemException;
133
134 public void removeByA2(java.lang.String a2)
135 throws com.liferay.portal.NoSuchCountryException,
136 com.liferay.portal.SystemException;
137
138 public void removeByA3(java.lang.String a3)
139 throws com.liferay.portal.NoSuchCountryException,
140 com.liferay.portal.SystemException;
141
142 public void removeByActive(boolean active)
143 throws com.liferay.portal.SystemException;
144
145 public void removeAll() throws com.liferay.portal.SystemException;
146
147 public int countByName(java.lang.String name)
148 throws com.liferay.portal.SystemException;
149
150 public int countByA2(java.lang.String a2)
151 throws com.liferay.portal.SystemException;
152
153 public int countByA3(java.lang.String a3)
154 throws com.liferay.portal.SystemException;
155
156 public int countByActive(boolean active)
157 throws com.liferay.portal.SystemException;
158
159 public int countAll() throws com.liferay.portal.SystemException;
160 }