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 ClassNameLocalServiceUtil {
42 public static com.liferay.portal.model.ClassName addClassName(
43 com.liferay.portal.model.ClassName className)
44 throws com.liferay.portal.SystemException {
45 return getService().addClassName(className);
46 }
47
48 public static com.liferay.portal.model.ClassName createClassName(
49 long classNameId) {
50 return getService().createClassName(classNameId);
51 }
52
53 public static void deleteClassName(long classNameId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteClassName(classNameId);
57 }
58
59 public static void deleteClassName(
60 com.liferay.portal.model.ClassName className)
61 throws com.liferay.portal.SystemException {
62 getService().deleteClassName(className);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portal.model.ClassName getClassName(
96 long classNameId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getClassName(classNameId);
100 }
101
102 public static java.util.List<com.liferay.portal.model.ClassName> getClassNames(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getClassNames(start, end);
105 }
106
107 public static int getClassNamesCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getClassNamesCount();
110 }
111
112 public static com.liferay.portal.model.ClassName updateClassName(
113 com.liferay.portal.model.ClassName className)
114 throws com.liferay.portal.SystemException {
115 return getService().updateClassName(className);
116 }
117
118 public static com.liferay.portal.model.ClassName updateClassName(
119 com.liferay.portal.model.ClassName className, boolean merge)
120 throws com.liferay.portal.SystemException {
121 return getService().updateClassName(className, merge);
122 }
123
124 public static com.liferay.portal.model.ClassName addClassName(
125 java.lang.String value) throws com.liferay.portal.SystemException {
126 return getService().addClassName(value);
127 }
128
129 public static void checkClassNames()
130 throws com.liferay.portal.SystemException {
131 getService().checkClassNames();
132 }
133
134 public static com.liferay.portal.model.ClassName getClassName(
135 java.lang.String value) throws com.liferay.portal.SystemException {
136 return getService().getClassName(value);
137 }
138
139 public static long getClassNameId(java.lang.Class<?> classObj) {
140 return getService().getClassNameId(classObj);
141 }
142
143 public static long getClassNameId(java.lang.String value) {
144 return getService().getClassNameId(value);
145 }
146
147 public static ClassNameLocalService getService() {
148 if (_service == null) {
149 _service = (ClassNameLocalService)PortalBeanLocatorUtil.locate(ClassNameLocalService.class.getName());
150
151 ReferenceRegistry.registerReference(ClassNameLocalServiceUtil.class,
152 "_service");
153 MethodCache.remove(ClassNameLocalService.class);
154 }
155
156 return _service;
157 }
158
159 public void setService(ClassNameLocalService service) {
160 MethodCache.remove(ClassNameLocalService.class);
161
162 _service = service;
163
164 ReferenceRegistry.registerReference(ClassNameLocalServiceUtil.class,
165 "_service");
166 MethodCache.remove(ClassNameLocalService.class);
167 }
168
169 private static ClassNameLocalService _service;
170 }