1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class ClassNameUtil {
29 public static void cacheResult(com.liferay.portal.model.ClassName className) {
30 getPersistence().cacheResult(className);
31 }
32
33 public static void cacheResult(
34 java.util.List<com.liferay.portal.model.ClassName> classNames) {
35 getPersistence().cacheResult(classNames);
36 }
37
38 public static void clearCache() {
39 getPersistence().clearCache();
40 }
41
42 public static com.liferay.portal.model.ClassName create(long classNameId) {
43 return getPersistence().create(classNameId);
44 }
45
46 public static com.liferay.portal.model.ClassName remove(long classNameId)
47 throws com.liferay.portal.NoSuchClassNameException,
48 com.liferay.portal.SystemException {
49 return getPersistence().remove(classNameId);
50 }
51
52 public static com.liferay.portal.model.ClassName remove(
53 com.liferay.portal.model.ClassName className)
54 throws com.liferay.portal.SystemException {
55 return getPersistence().remove(className);
56 }
57
58
61 public static com.liferay.portal.model.ClassName update(
62 com.liferay.portal.model.ClassName className)
63 throws com.liferay.portal.SystemException {
64 return getPersistence().update(className);
65 }
66
67
80 public static com.liferay.portal.model.ClassName update(
81 com.liferay.portal.model.ClassName className, boolean merge)
82 throws com.liferay.portal.SystemException {
83 return getPersistence().update(className, merge);
84 }
85
86 public static com.liferay.portal.model.ClassName updateImpl(
87 com.liferay.portal.model.ClassName className, boolean merge)
88 throws com.liferay.portal.SystemException {
89 return getPersistence().updateImpl(className, merge);
90 }
91
92 public static com.liferay.portal.model.ClassName findByPrimaryKey(
93 long classNameId)
94 throws com.liferay.portal.NoSuchClassNameException,
95 com.liferay.portal.SystemException {
96 return getPersistence().findByPrimaryKey(classNameId);
97 }
98
99 public static com.liferay.portal.model.ClassName fetchByPrimaryKey(
100 long classNameId) throws com.liferay.portal.SystemException {
101 return getPersistence().fetchByPrimaryKey(classNameId);
102 }
103
104 public static com.liferay.portal.model.ClassName findByValue(
105 java.lang.String value)
106 throws com.liferay.portal.NoSuchClassNameException,
107 com.liferay.portal.SystemException {
108 return getPersistence().findByValue(value);
109 }
110
111 public static com.liferay.portal.model.ClassName fetchByValue(
112 java.lang.String value) throws com.liferay.portal.SystemException {
113 return getPersistence().fetchByValue(value);
114 }
115
116 public static com.liferay.portal.model.ClassName fetchByValue(
117 java.lang.String value, boolean retrieveFromCache)
118 throws com.liferay.portal.SystemException {
119 return getPersistence().fetchByValue(value, retrieveFromCache);
120 }
121
122 public static java.util.List<Object> findWithDynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findWithDynamicQuery(dynamicQuery);
126 }
127
128 public static java.util.List<Object> findWithDynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.SystemException {
131 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
132 }
133
134 public static java.util.List<com.liferay.portal.model.ClassName> findAll()
135 throws com.liferay.portal.SystemException {
136 return getPersistence().findAll();
137 }
138
139 public static java.util.List<com.liferay.portal.model.ClassName> findAll(
140 int start, int end) throws com.liferay.portal.SystemException {
141 return getPersistence().findAll(start, end);
142 }
143
144 public static java.util.List<com.liferay.portal.model.ClassName> findAll(
145 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException {
147 return getPersistence().findAll(start, end, obc);
148 }
149
150 public static void removeByValue(java.lang.String value)
151 throws com.liferay.portal.NoSuchClassNameException,
152 com.liferay.portal.SystemException {
153 getPersistence().removeByValue(value);
154 }
155
156 public static void removeAll() throws com.liferay.portal.SystemException {
157 getPersistence().removeAll();
158 }
159
160 public static int countByValue(java.lang.String value)
161 throws com.liferay.portal.SystemException {
162 return getPersistence().countByValue(value);
163 }
164
165 public static int countAll() throws com.liferay.portal.SystemException {
166 return getPersistence().countAll();
167 }
168
169 public static ClassNamePersistence getPersistence() {
170 return _persistence;
171 }
172
173 public void setPersistence(ClassNamePersistence persistence) {
174 _persistence = persistence;
175 }
176
177 private static ClassNamePersistence _persistence;
178 }