1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ServiceComponentLocalServiceUtil {
40 public static com.liferay.portal.model.ServiceComponent addServiceComponent(
41 com.liferay.portal.model.ServiceComponent serviceComponent)
42 throws com.liferay.portal.SystemException {
43 return getService().addServiceComponent(serviceComponent);
44 }
45
46 public static com.liferay.portal.model.ServiceComponent createServiceComponent(
47 long serviceComponentId) {
48 return getService().createServiceComponent(serviceComponentId);
49 }
50
51 public static void deleteServiceComponent(long serviceComponentId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteServiceComponent(serviceComponentId);
55 }
56
57 public static void deleteServiceComponent(
58 com.liferay.portal.model.ServiceComponent serviceComponent)
59 throws com.liferay.portal.SystemException {
60 getService().deleteServiceComponent(serviceComponent);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portal.model.ServiceComponent getServiceComponent(
76 long serviceComponentId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getServiceComponent(serviceComponentId);
80 }
81
82 public static java.util.List<com.liferay.portal.model.ServiceComponent> getServiceComponents(
83 int start, int end) throws com.liferay.portal.SystemException {
84 return getService().getServiceComponents(start, end);
85 }
86
87 public static int getServiceComponentsCount()
88 throws com.liferay.portal.SystemException {
89 return getService().getServiceComponentsCount();
90 }
91
92 public static com.liferay.portal.model.ServiceComponent updateServiceComponent(
93 com.liferay.portal.model.ServiceComponent serviceComponent)
94 throws com.liferay.portal.SystemException {
95 return getService().updateServiceComponent(serviceComponent);
96 }
97
98 public static com.liferay.portal.model.ServiceComponent updateServiceComponent(
99 com.liferay.portal.model.ServiceComponent serviceComponent,
100 boolean merge) throws com.liferay.portal.SystemException {
101 return getService().updateServiceComponent(serviceComponent, merge);
102 }
103
104 public static void destroyServiceComponent(
105 javax.servlet.ServletContext servletContext,
106 java.lang.ClassLoader classLoader)
107 throws com.liferay.portal.SystemException {
108 getService().destroyServiceComponent(servletContext, classLoader);
109 }
110
111 public static com.liferay.portal.model.ServiceComponent initServiceComponent(
112 javax.servlet.ServletContext servletContext,
113 java.lang.ClassLoader classLoader, java.lang.String buildNamespace,
114 long buildNumber, long buildDate, boolean buildAutoUpgrade)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 return getService()
118 .initServiceComponent(servletContext, classLoader,
119 buildNamespace, buildNumber, buildDate, buildAutoUpgrade);
120 }
121
122 public static void upgradeDB(java.lang.ClassLoader classLoader,
123 java.lang.String buildNamespace, long buildNumber,
124 boolean buildAutoUpgrade,
125 com.liferay.portal.model.ServiceComponent previousServiceComponent,
126 java.lang.String tablesSQL, java.lang.String sequencesSQL,
127 java.lang.String indexesSQL) throws java.lang.Exception {
128 getService()
129 .upgradeDB(classLoader, buildNamespace, buildNumber,
130 buildAutoUpgrade, previousServiceComponent, tablesSQL,
131 sequencesSQL, indexesSQL);
132 }
133
134 public static void verifyDB()
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException {
137 getService().verifyDB();
138 }
139
140 public static ServiceComponentLocalService getService() {
141 if (_service == null) {
142 _service = (ServiceComponentLocalService)PortalBeanLocatorUtil.locate(ServiceComponentLocalService.class.getName());
143 }
144
145 return _service;
146 }
147
148 public void setService(ServiceComponentLocalService service) {
149 _service = service;
150 }
151
152 private static ServiceComponentLocalService _service;
153 }