1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class ClassNameUtil {
29 public static com.liferay.portal.model.ClassName create(long classNameId) {
30 return getPersistence().create(classNameId);
31 }
32
33 public static com.liferay.portal.model.ClassName remove(long classNameId)
34 throws com.liferay.portal.NoSuchClassNameException,
35 com.liferay.portal.SystemException {
36 return getPersistence().remove(classNameId);
37 }
38
39 public static com.liferay.portal.model.ClassName remove(
40 com.liferay.portal.model.ClassName className)
41 throws com.liferay.portal.SystemException {
42 return getPersistence().remove(className);
43 }
44
45
48 public static com.liferay.portal.model.ClassName update(
49 com.liferay.portal.model.ClassName className)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(className);
52 }
53
54
67 public static com.liferay.portal.model.ClassName update(
68 com.liferay.portal.model.ClassName className, boolean merge)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(className, merge);
71 }
72
73 public static com.liferay.portal.model.ClassName updateImpl(
74 com.liferay.portal.model.ClassName className, boolean merge)
75 throws com.liferay.portal.SystemException {
76 return getPersistence().updateImpl(className, merge);
77 }
78
79 public static com.liferay.portal.model.ClassName findByPrimaryKey(
80 long classNameId)
81 throws com.liferay.portal.NoSuchClassNameException,
82 com.liferay.portal.SystemException {
83 return getPersistence().findByPrimaryKey(classNameId);
84 }
85
86 public static com.liferay.portal.model.ClassName fetchByPrimaryKey(
87 long classNameId) throws com.liferay.portal.SystemException {
88 return getPersistence().fetchByPrimaryKey(classNameId);
89 }
90
91 public static com.liferay.portal.model.ClassName findByValue(
92 java.lang.String value)
93 throws com.liferay.portal.NoSuchClassNameException,
94 com.liferay.portal.SystemException {
95 return getPersistence().findByValue(value);
96 }
97
98 public static com.liferay.portal.model.ClassName fetchByValue(
99 java.lang.String value) throws com.liferay.portal.SystemException {
100 return getPersistence().fetchByValue(value);
101 }
102
103 public static java.util.List<Object> findWithDynamicQuery(
104 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().findWithDynamicQuery(dynamicQuery);
107 }
108
109 public static java.util.List<Object> findWithDynamicQuery(
110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111 int end) throws com.liferay.portal.SystemException {
112 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
113 }
114
115 public static java.util.List<com.liferay.portal.model.ClassName> findAll()
116 throws com.liferay.portal.SystemException {
117 return getPersistence().findAll();
118 }
119
120 public static java.util.List<com.liferay.portal.model.ClassName> findAll(
121 int start, int end) throws com.liferay.portal.SystemException {
122 return getPersistence().findAll(start, end);
123 }
124
125 public static java.util.List<com.liferay.portal.model.ClassName> findAll(
126 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException {
128 return getPersistence().findAll(start, end, obc);
129 }
130
131 public static void removeByValue(java.lang.String value)
132 throws com.liferay.portal.NoSuchClassNameException,
133 com.liferay.portal.SystemException {
134 getPersistence().removeByValue(value);
135 }
136
137 public static void removeAll() throws com.liferay.portal.SystemException {
138 getPersistence().removeAll();
139 }
140
141 public static int countByValue(java.lang.String value)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().countByValue(value);
144 }
145
146 public static int countAll() throws com.liferay.portal.SystemException {
147 return getPersistence().countAll();
148 }
149
150 public static ClassNamePersistence getPersistence() {
151 return _persistence;
152 }
153
154 public void setPersistence(ClassNamePersistence persistence) {
155 _persistence = persistence;
156 }
157
158 private static ClassNamePersistence _persistence;
159 }