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