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