001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.model.WebDAVProps;
019    
020    /**
021     * The persistence interface for the web d a v props service.
022     *
023     * <p>
024     * Caching information and settings can be found in <code>portal.properties</code>
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see WebDAVPropsPersistenceImpl
029     * @see WebDAVPropsUtil
030     * @generated
031     */
032    public interface WebDAVPropsPersistence extends BasePersistence<WebDAVProps> {
033            /*
034             * NOTE FOR DEVELOPERS:
035             *
036             * Never modify or reference this interface directly. Always use {@link WebDAVPropsUtil} to access the web d a v props persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
037             */
038    
039            /**
040            * Caches the web d a v props in the entity cache if it is enabled.
041            *
042            * @param webDAVProps the web d a v props
043            */
044            public void cacheResult(com.liferay.portal.model.WebDAVProps webDAVProps);
045    
046            /**
047            * Caches the web d a v propses in the entity cache if it is enabled.
048            *
049            * @param webDAVPropses the web d a v propses
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses);
053    
054            /**
055            * Creates a new web d a v props with the primary key. Does not add the web d a v props to the database.
056            *
057            * @param webDavPropsId the primary key for the new web d a v props
058            * @return the new web d a v props
059            */
060            public com.liferay.portal.model.WebDAVProps create(long webDavPropsId);
061    
062            /**
063            * Removes the web d a v props with the primary key from the database. Also notifies the appropriate model listeners.
064            *
065            * @param webDavPropsId the primary key of the web d a v props
066            * @return the web d a v props that was removed
067            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found
068            * @throws SystemException if a system exception occurred
069            */
070            public com.liferay.portal.model.WebDAVProps remove(long webDavPropsId)
071                    throws com.liferay.portal.NoSuchWebDAVPropsException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portal.model.WebDAVProps updateImpl(
075                    com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
076                    throws com.liferay.portal.kernel.exception.SystemException;
077    
078            /**
079            * Returns the web d a v props with the primary key or throws a {@link com.liferay.portal.NoSuchWebDAVPropsException} if it could not be found.
080            *
081            * @param webDavPropsId the primary key of the web d a v props
082            * @return the web d a v props
083            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found
084            * @throws SystemException if a system exception occurred
085            */
086            public com.liferay.portal.model.WebDAVProps findByPrimaryKey(
087                    long webDavPropsId)
088                    throws com.liferay.portal.NoSuchWebDAVPropsException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            /**
092            * Returns the web d a v props with the primary key or returns <code>null</code> if it could not be found.
093            *
094            * @param webDavPropsId the primary key of the web d a v props
095            * @return the web d a v props, or <code>null</code> if a web d a v props with the primary key could not be found
096            * @throws SystemException if a system exception occurred
097            */
098            public com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
099                    long webDavPropsId)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            /**
103            * Returns the web d a v props where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portal.NoSuchWebDAVPropsException} if it could not be found.
104            *
105            * @param classNameId the class name ID
106            * @param classPK the class p k
107            * @return the matching web d a v props
108            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a matching web d a v props could not be found
109            * @throws SystemException if a system exception occurred
110            */
111            public com.liferay.portal.model.WebDAVProps findByC_C(long classNameId,
112                    long classPK)
113                    throws com.liferay.portal.NoSuchWebDAVPropsException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns the web d a v props where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
118            *
119            * @param classNameId the class name ID
120            * @param classPK the class p k
121            * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId,
125                    long classPK)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the web d a v props where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
130            *
131            * @param classNameId the class name ID
132            * @param classPK the class p k
133            * @param retrieveFromCache whether to use the finder cache
134            * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found
135            * @throws SystemException if a system exception occurred
136            */
137            public com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId,
138                    long classPK, boolean retrieveFromCache)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns all the web d a v propses.
143            *
144            * @return the web d a v propses
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Returns a range of all the web d a v propses.
152            *
153            * <p>
154            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
155            * </p>
156            *
157            * @param start the lower bound of the range of web d a v propses
158            * @param end the upper bound of the range of web d a v propses (not inclusive)
159            * @return the range of web d a v propses
160            * @throws SystemException if a system exception occurred
161            */
162            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
163                    int start, int end)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns an ordered range of all the web d a v propses.
168            *
169            * <p>
170            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
171            * </p>
172            *
173            * @param start the lower bound of the range of web d a v propses
174            * @param end the upper bound of the range of web d a v propses (not inclusive)
175            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
176            * @return the ordered range of web d a v propses
177            * @throws SystemException if a system exception occurred
178            */
179            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
180                    int start, int end,
181                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182                    throws com.liferay.portal.kernel.exception.SystemException;
183    
184            /**
185            * Removes the web d a v props where classNameId = &#63; and classPK = &#63; from the database.
186            *
187            * @param classNameId the class name ID
188            * @param classPK the class p k
189            * @throws SystemException if a system exception occurred
190            */
191            public void removeByC_C(long classNameId, long classPK)
192                    throws com.liferay.portal.NoSuchWebDAVPropsException,
193                            com.liferay.portal.kernel.exception.SystemException;
194    
195            /**
196            * Removes all the web d a v propses from the database.
197            *
198            * @throws SystemException if a system exception occurred
199            */
200            public void removeAll()
201                    throws com.liferay.portal.kernel.exception.SystemException;
202    
203            /**
204            * Returns the number of web d a v propses where classNameId = &#63; and classPK = &#63;.
205            *
206            * @param classNameId the class name ID
207            * @param classPK the class p k
208            * @return the number of matching web d a v propses
209            * @throws SystemException if a system exception occurred
210            */
211            public int countByC_C(long classNameId, long classPK)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            /**
215            * Returns the number of web d a v propses.
216            *
217            * @return the number of web d a v propses
218            * @throws SystemException if a system exception occurred
219            */
220            public int countAll()
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            public WebDAVProps remove(WebDAVProps webDAVProps)
224                    throws SystemException;
225    }