1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class ClassNameUtil {
40 public static void cacheResult(com.liferay.portal.model.ClassName className) {
41 getPersistence().cacheResult(className);
42 }
43
44 public static void cacheResult(
45 java.util.List<com.liferay.portal.model.ClassName> classNames) {
46 getPersistence().cacheResult(classNames);
47 }
48
49 public static void clearCache() {
50 getPersistence().clearCache();
51 }
52
53 public static com.liferay.portal.model.ClassName create(long classNameId) {
54 return getPersistence().create(classNameId);
55 }
56
57 public static com.liferay.portal.model.ClassName remove(long classNameId)
58 throws com.liferay.portal.NoSuchClassNameException,
59 com.liferay.portal.SystemException {
60 return getPersistence().remove(classNameId);
61 }
62
63 public static com.liferay.portal.model.ClassName remove(
64 com.liferay.portal.model.ClassName className)
65 throws com.liferay.portal.SystemException {
66 return getPersistence().remove(className);
67 }
68
69
72 public static com.liferay.portal.model.ClassName update(
73 com.liferay.portal.model.ClassName className)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(className);
76 }
77
78
90 public static com.liferay.portal.model.ClassName update(
91 com.liferay.portal.model.ClassName className, boolean merge)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().update(className, merge);
94 }
95
96 public static com.liferay.portal.model.ClassName updateImpl(
97 com.liferay.portal.model.ClassName className, boolean merge)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().updateImpl(className, merge);
100 }
101
102 public static com.liferay.portal.model.ClassName findByPrimaryKey(
103 long classNameId)
104 throws com.liferay.portal.NoSuchClassNameException,
105 com.liferay.portal.SystemException {
106 return getPersistence().findByPrimaryKey(classNameId);
107 }
108
109 public static com.liferay.portal.model.ClassName fetchByPrimaryKey(
110 long classNameId) throws com.liferay.portal.SystemException {
111 return getPersistence().fetchByPrimaryKey(classNameId);
112 }
113
114 public static com.liferay.portal.model.ClassName findByValue(
115 java.lang.String value)
116 throws com.liferay.portal.NoSuchClassNameException,
117 com.liferay.portal.SystemException {
118 return getPersistence().findByValue(value);
119 }
120
121 public static com.liferay.portal.model.ClassName fetchByValue(
122 java.lang.String value) throws com.liferay.portal.SystemException {
123 return getPersistence().fetchByValue(value);
124 }
125
126 public static com.liferay.portal.model.ClassName fetchByValue(
127 java.lang.String value, boolean retrieveFromCache)
128 throws com.liferay.portal.SystemException {
129 return getPersistence().fetchByValue(value, retrieveFromCache);
130 }
131
132 public static java.util.List<Object> findWithDynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findWithDynamicQuery(dynamicQuery);
136 }
137
138 public static java.util.List<Object> findWithDynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end) throws com.liferay.portal.SystemException {
141 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
142 }
143
144 public static java.util.List<com.liferay.portal.model.ClassName> findAll()
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findAll();
147 }
148
149 public static java.util.List<com.liferay.portal.model.ClassName> findAll(
150 int start, int end) throws com.liferay.portal.SystemException {
151 return getPersistence().findAll(start, end);
152 }
153
154 public static java.util.List<com.liferay.portal.model.ClassName> findAll(
155 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findAll(start, end, obc);
158 }
159
160 public static void removeByValue(java.lang.String value)
161 throws com.liferay.portal.NoSuchClassNameException,
162 com.liferay.portal.SystemException {
163 getPersistence().removeByValue(value);
164 }
165
166 public static void removeAll() throws com.liferay.portal.SystemException {
167 getPersistence().removeAll();
168 }
169
170 public static int countByValue(java.lang.String value)
171 throws com.liferay.portal.SystemException {
172 return getPersistence().countByValue(value);
173 }
174
175 public static int countAll() throws com.liferay.portal.SystemException {
176 return getPersistence().countAll();
177 }
178
179 public static ClassNamePersistence getPersistence() {
180 return _persistence;
181 }
182
183 public void setPersistence(ClassNamePersistence persistence) {
184 _persistence = persistence;
185 }
186
187 private static ClassNamePersistence _persistence;
188 }