1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class ReleaseLocalServiceUtil {
42 public static com.liferay.portal.model.Release addRelease(
43 com.liferay.portal.model.Release release)
44 throws com.liferay.portal.SystemException {
45 return getService().addRelease(release);
46 }
47
48 public static com.liferay.portal.model.Release createRelease(long releaseId) {
49 return getService().createRelease(releaseId);
50 }
51
52 public static void deleteRelease(long releaseId)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException {
55 getService().deleteRelease(releaseId);
56 }
57
58 public static void deleteRelease(com.liferay.portal.model.Release release)
59 throws com.liferay.portal.SystemException {
60 getService().deleteRelease(release);
61 }
62
63 @SuppressWarnings("rawtypes")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("rawtypes")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("rawtypes")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static int dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portal.model.Release getRelease(long releaseId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException {
96 return getService().getRelease(releaseId);
97 }
98
99 public static java.util.List<com.liferay.portal.model.Release> getReleases(
100 int start, int end) throws com.liferay.portal.SystemException {
101 return getService().getReleases(start, end);
102 }
103
104 public static int getReleasesCount()
105 throws com.liferay.portal.SystemException {
106 return getService().getReleasesCount();
107 }
108
109 public static com.liferay.portal.model.Release updateRelease(
110 com.liferay.portal.model.Release release)
111 throws com.liferay.portal.SystemException {
112 return getService().updateRelease(release);
113 }
114
115 public static com.liferay.portal.model.Release updateRelease(
116 com.liferay.portal.model.Release release, boolean merge)
117 throws com.liferay.portal.SystemException {
118 return getService().updateRelease(release, merge);
119 }
120
121 public static com.liferay.portal.model.Release addRelease(
122 java.lang.String servletContextName, int buildNumber)
123 throws com.liferay.portal.SystemException {
124 return getService().addRelease(servletContextName, buildNumber);
125 }
126
127 public static void createTablesAndPopulate()
128 throws com.liferay.portal.SystemException {
129 getService().createTablesAndPopulate();
130 }
131
132 public static int getBuildNumberOrCreate()
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 return getService().getBuildNumberOrCreate();
136 }
137
138 public static com.liferay.portal.model.Release getRelease(
139 java.lang.String servletContextName, int buildNumber)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException {
142 return getService().getRelease(servletContextName, buildNumber);
143 }
144
145 public static com.liferay.portal.model.Release updateRelease(
146 long releaseId, int buildNumber, java.util.Date buildDate,
147 boolean verified)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException {
150 return getService()
151 .updateRelease(releaseId, buildNumber, buildDate, verified);
152 }
153
154 public static ReleaseLocalService getService() {
155 if (_service == null) {
156 _service = (ReleaseLocalService)PortalBeanLocatorUtil.locate(ReleaseLocalService.class.getName());
157
158 ReferenceRegistry.registerReference(ReleaseLocalServiceUtil.class,
159 "_service");
160 MethodCache.remove(ReleaseLocalService.class);
161 }
162
163 return _service;
164 }
165
166 public void setService(ReleaseLocalService service) {
167 MethodCache.remove(ReleaseLocalService.class);
168
169 _service = service;
170
171 ReferenceRegistry.registerReference(ReleaseLocalServiceUtil.class,
172 "_service");
173 MethodCache.remove(ReleaseLocalService.class);
174 }
175
176 private static ReleaseLocalService _service;
177 }