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