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