1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface CountryPersistence {
32 public com.liferay.portal.model.Country create(long countryId);
33
34 public com.liferay.portal.model.Country remove(long countryId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portal.NoSuchCountryException;
37
38 public com.liferay.portal.model.Country remove(
39 com.liferay.portal.model.Country country)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.Country update(
43 com.liferay.portal.model.Country country)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portal.model.Country update(
47 com.liferay.portal.model.Country country, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portal.model.Country findByPrimaryKey(long countryId)
51 throws com.liferay.portal.SystemException,
52 com.liferay.portal.NoSuchCountryException;
53
54 public com.liferay.portal.model.Country fetchByPrimaryKey(long countryId)
55 throws com.liferay.portal.SystemException;
56
57 public java.util.List findByActive(boolean active)
58 throws com.liferay.portal.SystemException;
59
60 public java.util.List findByActive(boolean active, int begin, int end)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List findByActive(boolean active, int begin, int end,
64 com.liferay.portal.kernel.util.OrderByComparator obc)
65 throws com.liferay.portal.SystemException;
66
67 public com.liferay.portal.model.Country findByActive_First(boolean active,
68 com.liferay.portal.kernel.util.OrderByComparator obc)
69 throws com.liferay.portal.SystemException,
70 com.liferay.portal.NoSuchCountryException;
71
72 public com.liferay.portal.model.Country findByActive_Last(boolean active,
73 com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portal.NoSuchCountryException;
76
77 public com.liferay.portal.model.Country[] findByActive_PrevAndNext(
78 long countryId, boolean active,
79 com.liferay.portal.kernel.util.OrderByComparator obc)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.NoSuchCountryException;
82
83 public java.util.List findWithDynamicQuery(
84 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
85 throws com.liferay.portal.SystemException;
86
87 public java.util.List findWithDynamicQuery(
88 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89 int begin, int end) throws com.liferay.portal.SystemException;
90
91 public java.util.List findAll() throws com.liferay.portal.SystemException;
92
93 public java.util.List findAll(int begin, int end)
94 throws com.liferay.portal.SystemException;
95
96 public java.util.List findAll(int begin, int end,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException;
99
100 public void removeByActive(boolean active)
101 throws com.liferay.portal.SystemException;
102
103 public void removeAll() throws com.liferay.portal.SystemException;
104
105 public int countByActive(boolean active)
106 throws com.liferay.portal.SystemException;
107
108 public int countAll() throws com.liferay.portal.SystemException;
109 }