1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class ReleaseUtil {
40 public static void cacheResult(com.liferay.portal.model.Release release) {
41 getPersistence().cacheResult(release);
42 }
43
44 public static void cacheResult(
45 java.util.List<com.liferay.portal.model.Release> releases) {
46 getPersistence().cacheResult(releases);
47 }
48
49 public static void clearCache() {
50 getPersistence().clearCache();
51 }
52
53 public static com.liferay.portal.model.Release create(long releaseId) {
54 return getPersistence().create(releaseId);
55 }
56
57 public static com.liferay.portal.model.Release remove(long releaseId)
58 throws com.liferay.portal.NoSuchReleaseException,
59 com.liferay.portal.SystemException {
60 return getPersistence().remove(releaseId);
61 }
62
63 public static com.liferay.portal.model.Release remove(
64 com.liferay.portal.model.Release release)
65 throws com.liferay.portal.SystemException {
66 return getPersistence().remove(release);
67 }
68
69
72 public static com.liferay.portal.model.Release update(
73 com.liferay.portal.model.Release release)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(release);
76 }
77
78
90 public static com.liferay.portal.model.Release update(
91 com.liferay.portal.model.Release release, boolean merge)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().update(release, merge);
94 }
95
96 public static com.liferay.portal.model.Release updateImpl(
97 com.liferay.portal.model.Release release, boolean merge)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().updateImpl(release, merge);
100 }
101
102 public static com.liferay.portal.model.Release findByPrimaryKey(
103 long releaseId)
104 throws com.liferay.portal.NoSuchReleaseException,
105 com.liferay.portal.SystemException {
106 return getPersistence().findByPrimaryKey(releaseId);
107 }
108
109 public static com.liferay.portal.model.Release fetchByPrimaryKey(
110 long releaseId) throws com.liferay.portal.SystemException {
111 return getPersistence().fetchByPrimaryKey(releaseId);
112 }
113
114 public static java.util.List<Object> findWithDynamicQuery(
115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
116 throws com.liferay.portal.SystemException {
117 return getPersistence().findWithDynamicQuery(dynamicQuery);
118 }
119
120 public static java.util.List<Object> findWithDynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.SystemException {
123 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
124 }
125
126 public static java.util.List<com.liferay.portal.model.Release> findAll()
127 throws com.liferay.portal.SystemException {
128 return getPersistence().findAll();
129 }
130
131 public static java.util.List<com.liferay.portal.model.Release> findAll(
132 int start, int end) throws com.liferay.portal.SystemException {
133 return getPersistence().findAll(start, end);
134 }
135
136 public static java.util.List<com.liferay.portal.model.Release> findAll(
137 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.SystemException {
139 return getPersistence().findAll(start, end, obc);
140 }
141
142 public static void removeAll() throws com.liferay.portal.SystemException {
143 getPersistence().removeAll();
144 }
145
146 public static int countAll() throws com.liferay.portal.SystemException {
147 return getPersistence().countAll();
148 }
149
150 public static ReleasePersistence getPersistence() {
151 return _persistence;
152 }
153
154 public void setPersistence(ReleasePersistence persistence) {
155 _persistence = persistence;
156 }
157
158 private static ReleasePersistence _persistence;
159 }