001    /**
002     * Copyright (c) 2000-2012 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.model.WebDAVProps;
018    
019    /**
020     * The persistence interface for the web d a v props service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see WebDAVPropsPersistenceImpl
028     * @see WebDAVPropsUtil
029     * @generated
030     */
031    public interface WebDAVPropsPersistence extends BasePersistence<WebDAVProps> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * 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.
036             */
037    
038            /**
039            * 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.
040            *
041            * @param classNameId the class name ID
042            * @param classPK the class p k
043            * @return the matching web d a v props
044            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a matching web d a v props could not be found
045            * @throws SystemException if a system exception occurred
046            */
047            public com.liferay.portal.model.WebDAVProps findByC_C(long classNameId,
048                    long classPK)
049                    throws com.liferay.portal.NoSuchWebDAVPropsException,
050                            com.liferay.portal.kernel.exception.SystemException;
051    
052            /**
053            * 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.
054            *
055            * @param classNameId the class name ID
056            * @param classPK the class p k
057            * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found
058            * @throws SystemException if a system exception occurred
059            */
060            public com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId,
061                    long classPK)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            /**
065            * 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.
066            *
067            * @param classNameId the class name ID
068            * @param classPK the class p k
069            * @param retrieveFromCache whether to use the finder cache
070            * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId,
074                    long classPK, boolean retrieveFromCache)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            /**
078            * Removes the web d a v props where classNameId = &#63; and classPK = &#63; from the database.
079            *
080            * @param classNameId the class name ID
081            * @param classPK the class p k
082            * @return the web d a v props that was removed
083            * @throws SystemException if a system exception occurred
084            */
085            public com.liferay.portal.model.WebDAVProps removeByC_C(long classNameId,
086                    long classPK)
087                    throws com.liferay.portal.NoSuchWebDAVPropsException,
088                            com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the number of web d a v propses where classNameId = &#63; and classPK = &#63;.
092            *
093            * @param classNameId the class name ID
094            * @param classPK the class p k
095            * @return the number of matching web d a v propses
096            * @throws SystemException if a system exception occurred
097            */
098            public int countByC_C(long classNameId, long classPK)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            /**
102            * Caches the web d a v props in the entity cache if it is enabled.
103            *
104            * @param webDAVProps the web d a v props
105            */
106            public void cacheResult(com.liferay.portal.model.WebDAVProps webDAVProps);
107    
108            /**
109            * Caches the web d a v propses in the entity cache if it is enabled.
110            *
111            * @param webDAVPropses the web d a v propses
112            */
113            public void cacheResult(
114                    java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses);
115    
116            /**
117            * Creates a new web d a v props with the primary key. Does not add the web d a v props to the database.
118            *
119            * @param webDavPropsId the primary key for the new web d a v props
120            * @return the new web d a v props
121            */
122            public com.liferay.portal.model.WebDAVProps create(long webDavPropsId);
123    
124            /**
125            * Removes the web d a v props with the primary key from the database. Also notifies the appropriate model listeners.
126            *
127            * @param webDavPropsId the primary key of the web d a v props
128            * @return the web d a v props that was removed
129            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found
130            * @throws SystemException if a system exception occurred
131            */
132            public com.liferay.portal.model.WebDAVProps remove(long webDavPropsId)
133                    throws com.liferay.portal.NoSuchWebDAVPropsException,
134                            com.liferay.portal.kernel.exception.SystemException;
135    
136            public com.liferay.portal.model.WebDAVProps updateImpl(
137                    com.liferay.portal.model.WebDAVProps webDAVProps)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            /**
141            * 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.
142            *
143            * @param webDavPropsId the primary key of the web d a v props
144            * @return the web d a v props
145            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found
146            * @throws SystemException if a system exception occurred
147            */
148            public com.liferay.portal.model.WebDAVProps findByPrimaryKey(
149                    long webDavPropsId)
150                    throws com.liferay.portal.NoSuchWebDAVPropsException,
151                            com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the web d a v props with the primary key or returns <code>null</code> if it could not be found.
155            *
156            * @param webDavPropsId the primary key of the web d a v props
157            * @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
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
161                    long webDavPropsId)
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            /**
165            * Returns all the web d a v propses.
166            *
167            * @return the web d a v propses
168            * @throws SystemException if a system exception occurred
169            */
170            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns a range of all the web d a v propses.
175            *
176            * <p>
177            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebDAVPropsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
178            * </p>
179            *
180            * @param start the lower bound of the range of web d a v propses
181            * @param end the upper bound of the range of web d a v propses (not inclusive)
182            * @return the range of web d a v propses
183            * @throws SystemException if a system exception occurred
184            */
185            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
186                    int start, int end)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns an ordered range of all the web d a v propses.
191            *
192            * <p>
193            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebDAVPropsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
194            * </p>
195            *
196            * @param start the lower bound of the range of web d a v propses
197            * @param end the upper bound of the range of web d a v propses (not inclusive)
198            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
199            * @return the ordered range of web d a v propses
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
203                    int start, int end,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Removes all the web d a v propses from the database.
209            *
210            * @throws SystemException if a system exception occurred
211            */
212            public void removeAll()
213                    throws com.liferay.portal.kernel.exception.SystemException;
214    
215            /**
216            * Returns the number of web d a v propses.
217            *
218            * @return the number of web d a v propses
219            * @throws SystemException if a system exception occurred
220            */
221            public int countAll()
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    }