001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 to cache
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 to cache
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 to remove
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            * Finds 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 to find
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            * Finds 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 to find
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            * Finds 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 to search with
106            * @param classPK the class p k to search with
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            * Finds 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 to search with
120            * @param classPK the class p k to search with
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            * Finds 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 to search with
132            * @param classPK the class p k to search with
133            * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId,
137                    long classPK, boolean retrieveFromCache)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            /**
141            * Finds all the web d a v propses.
142            *
143            * @return the web d a v propses
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            /**
150            * Finds a range of all the web d a v propses.
151            *
152            * <p>
153            * 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.
154            * </p>
155            *
156            * @param start the lower bound of the range of web d a v propses to return
157            * @param end the upper bound of the range of web d a v propses to return (not inclusive)
158            * @return the range of web d a v propses
159            * @throws SystemException if a system exception occurred
160            */
161            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
162                    int start, int end)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            /**
166            * Finds an ordered range of all the web d a v propses.
167            *
168            * <p>
169            * 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.
170            * </p>
171            *
172            * @param start the lower bound of the range of web d a v propses to return
173            * @param end the upper bound of the range of web d a v propses to return (not inclusive)
174            * @param orderByComparator the comparator to order the results by
175            * @return the ordered range of web d a v propses
176            * @throws SystemException if a system exception occurred
177            */
178            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
179                    int start, int end,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            /**
184            * Removes the web d a v props where classNameId = &#63; and classPK = &#63; from the database.
185            *
186            * @param classNameId the class name ID to search with
187            * @param classPK the class p k to search with
188            * @throws SystemException if a system exception occurred
189            */
190            public void removeByC_C(long classNameId, long classPK)
191                    throws com.liferay.portal.NoSuchWebDAVPropsException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Removes all the web d a v propses from the database.
196            *
197            * @throws SystemException if a system exception occurred
198            */
199            public void removeAll()
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Counts all the web d a v propses where classNameId = &#63; and classPK = &#63;.
204            *
205            * @param classNameId the class name ID to search with
206            * @param classPK the class p k to search with
207            * @return the number of matching web d a v propses
208            * @throws SystemException if a system exception occurred
209            */
210            public int countByC_C(long classNameId, long classPK)
211                    throws com.liferay.portal.kernel.exception.SystemException;
212    
213            /**
214            * Counts all the web d a v propses.
215            *
216            * @return the number of web d a v propses
217            * @throws SystemException if a system exception occurred
218            */
219            public int countAll()
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            public WebDAVProps remove(WebDAVProps webDAVProps)
223                    throws SystemException;
224    }