001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="WebDAVPropsUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class WebDAVPropsUtil {
030: public static com.liferay.portal.model.WebDAVProps create(
031: long webDavPropsId) {
032: return getPersistence().create(webDavPropsId);
033: }
034:
035: public static com.liferay.portal.model.WebDAVProps remove(
036: long webDavPropsId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchWebDAVPropsException {
039: return getPersistence().remove(webDavPropsId);
040: }
041:
042: public static com.liferay.portal.model.WebDAVProps remove(
043: com.liferay.portal.model.WebDAVProps webDAVProps)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(webDAVProps);
046: }
047:
048: public static com.liferay.portal.model.WebDAVProps update(
049: com.liferay.portal.model.WebDAVProps webDAVProps)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(webDAVProps);
052: }
053:
054: public static com.liferay.portal.model.WebDAVProps update(
055: com.liferay.portal.model.WebDAVProps webDAVProps,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(webDAVProps, merge);
058: }
059:
060: public static com.liferay.portal.model.WebDAVProps updateImpl(
061: com.liferay.portal.model.WebDAVProps webDAVProps,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(webDAVProps, merge);
064: }
065:
066: public static com.liferay.portal.model.WebDAVProps findByPrimaryKey(
067: long webDavPropsId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchWebDAVPropsException {
070: return getPersistence().findByPrimaryKey(webDavPropsId);
071: }
072:
073: public static com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
074: long webDavPropsId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(webDavPropsId);
077: }
078:
079: public static com.liferay.portal.model.WebDAVProps findByC_C(
080: long classNameId, long classPK)
081: throws com.liferay.portal.SystemException,
082: com.liferay.portal.NoSuchWebDAVPropsException {
083: return getPersistence().findByC_C(classNameId, classPK);
084: }
085:
086: public static com.liferay.portal.model.WebDAVProps fetchByC_C(
087: long classNameId, long classPK)
088: throws com.liferay.portal.SystemException {
089: return getPersistence().fetchByC_C(classNameId, classPK);
090: }
091:
092: public static java.util.List findWithDynamicQuery(
093: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
094: throws com.liferay.portal.SystemException {
095: return getPersistence().findWithDynamicQuery(queryInitializer);
096: }
097:
098: public static java.util.List findWithDynamicQuery(
099: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
100: int begin, int end)
101: throws com.liferay.portal.SystemException {
102: return getPersistence().findWithDynamicQuery(queryInitializer,
103: begin, end);
104: }
105:
106: public static java.util.List findAll()
107: throws com.liferay.portal.SystemException {
108: return getPersistence().findAll();
109: }
110:
111: public static java.util.List findAll(int begin, int end)
112: throws com.liferay.portal.SystemException {
113: return getPersistence().findAll(begin, end);
114: }
115:
116: public static java.util.List findAll(int begin, int end,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException {
119: return getPersistence().findAll(begin, end, obc);
120: }
121:
122: public static void removeByC_C(long classNameId, long classPK)
123: throws com.liferay.portal.SystemException,
124: com.liferay.portal.NoSuchWebDAVPropsException {
125: getPersistence().removeByC_C(classNameId, classPK);
126: }
127:
128: public static void removeAll()
129: throws com.liferay.portal.SystemException {
130: getPersistence().removeAll();
131: }
132:
133: public static int countByC_C(long classNameId, long classPK)
134: throws com.liferay.portal.SystemException {
135: return getPersistence().countByC_C(classNameId, classPK);
136: }
137:
138: public static int countAll()
139: throws com.liferay.portal.SystemException {
140: return getPersistence().countAll();
141: }
142:
143: public static WebDAVPropsPersistence getPersistence() {
144: return _getUtil()._persistence;
145: }
146:
147: public void setPersistence(WebDAVPropsPersistence persistence) {
148: _persistence = persistence;
149: }
150:
151: private static WebDAVPropsUtil _getUtil() {
152: if (_util == null) {
153: _util = (WebDAVPropsUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
154: .locate(_UTIL);
155: }
156:
157: return _util;
158: }
159:
160: private static final String _UTIL = WebDAVPropsUtil.class.getName();
161: private static WebDAVPropsUtil _util;
162: private WebDAVPropsPersistence _persistence;
163: }
|