001    /**
002     * Copyright (c) 2000-present 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.portlet.documentlibrary.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.documentlibrary.model.DLSyncEvent;
022    
023    /**
024     * The persistence interface for the d l sync event service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see com.liferay.portlet.documentlibrary.service.persistence.impl.DLSyncEventPersistenceImpl
032     * @see DLSyncEventUtil
033     * @generated
034     */
035    @ProviderType
036    public interface DLSyncEventPersistence extends BasePersistence<DLSyncEvent> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link DLSyncEventUtil} to access the d l sync event persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the d l sync events where modifiedTime &gt; &#63;.
045            *
046            * @param modifiedTime the modified time
047            * @return the matching d l sync events
048            */
049            public java.util.List<DLSyncEvent> findByModifiedTime(long modifiedTime);
050    
051            /**
052            * Returns a range of all the d l sync events where modifiedTime &gt; &#63;.
053            *
054            * <p>
055            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLSyncEventModelImpl}. 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.
056            * </p>
057            *
058            * @param modifiedTime the modified time
059            * @param start the lower bound of the range of d l sync events
060            * @param end the upper bound of the range of d l sync events (not inclusive)
061            * @return the range of matching d l sync events
062            */
063            public java.util.List<DLSyncEvent> findByModifiedTime(long modifiedTime,
064                    int start, int end);
065    
066            /**
067            * Returns an ordered range of all the d l sync events where modifiedTime &gt; &#63;.
068            *
069            * <p>
070            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLSyncEventModelImpl}. 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.
071            * </p>
072            *
073            * @param modifiedTime the modified time
074            * @param start the lower bound of the range of d l sync events
075            * @param end the upper bound of the range of d l sync events (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching d l sync events
078            */
079            public java.util.List<DLSyncEvent> findByModifiedTime(long modifiedTime,
080                    int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator);
082    
083            /**
084            * Returns an ordered range of all the d l sync events where modifiedTime &gt; &#63;.
085            *
086            * <p>
087            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLSyncEventModelImpl}. 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.
088            * </p>
089            *
090            * @param modifiedTime the modified time
091            * @param start the lower bound of the range of d l sync events
092            * @param end the upper bound of the range of d l sync events (not inclusive)
093            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
094            * @param retrieveFromCache whether to retrieve from the finder cache
095            * @return the ordered range of matching d l sync events
096            */
097            public java.util.List<DLSyncEvent> findByModifiedTime(long modifiedTime,
098                    int start, int end,
099                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator,
100                    boolean retrieveFromCache);
101    
102            /**
103            * Returns the first d l sync event in the ordered set where modifiedTime &gt; &#63;.
104            *
105            * @param modifiedTime the modified time
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching d l sync event
108            * @throws NoSuchSyncEventException if a matching d l sync event could not be found
109            */
110            public DLSyncEvent findByModifiedTime_First(long modifiedTime,
111                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
112                    throws com.liferay.portlet.documentlibrary.exception.NoSuchSyncEventException;
113    
114            /**
115            * Returns the first d l sync event in the ordered set where modifiedTime &gt; &#63;.
116            *
117            * @param modifiedTime the modified time
118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
119            * @return the first matching d l sync event, or <code>null</code> if a matching d l sync event could not be found
120            */
121            public DLSyncEvent fetchByModifiedTime_First(long modifiedTime,
122                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator);
123    
124            /**
125            * Returns the last d l sync event in the ordered set where modifiedTime &gt; &#63;.
126            *
127            * @param modifiedTime the modified time
128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
129            * @return the last matching d l sync event
130            * @throws NoSuchSyncEventException if a matching d l sync event could not be found
131            */
132            public DLSyncEvent findByModifiedTime_Last(long modifiedTime,
133                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
134                    throws com.liferay.portlet.documentlibrary.exception.NoSuchSyncEventException;
135    
136            /**
137            * Returns the last d l sync event in the ordered set where modifiedTime &gt; &#63;.
138            *
139            * @param modifiedTime the modified time
140            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
141            * @return the last matching d l sync event, or <code>null</code> if a matching d l sync event could not be found
142            */
143            public DLSyncEvent fetchByModifiedTime_Last(long modifiedTime,
144                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator);
145    
146            /**
147            * Returns the d l sync events before and after the current d l sync event in the ordered set where modifiedTime &gt; &#63;.
148            *
149            * @param syncEventId the primary key of the current d l sync event
150            * @param modifiedTime the modified time
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next d l sync event
153            * @throws NoSuchSyncEventException if a d l sync event with the primary key could not be found
154            */
155            public DLSyncEvent[] findByModifiedTime_PrevAndNext(long syncEventId,
156                    long modifiedTime,
157                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
158                    throws com.liferay.portlet.documentlibrary.exception.NoSuchSyncEventException;
159    
160            /**
161            * Removes all the d l sync events where modifiedTime &gt; &#63; from the database.
162            *
163            * @param modifiedTime the modified time
164            */
165            public void removeByModifiedTime(long modifiedTime);
166    
167            /**
168            * Returns the number of d l sync events where modifiedTime &gt; &#63;.
169            *
170            * @param modifiedTime the modified time
171            * @return the number of matching d l sync events
172            */
173            public int countByModifiedTime(long modifiedTime);
174    
175            /**
176            * Returns the d l sync event where typePK = &#63; or throws a {@link NoSuchSyncEventException} if it could not be found.
177            *
178            * @param typePK the type p k
179            * @return the matching d l sync event
180            * @throws NoSuchSyncEventException if a matching d l sync event could not be found
181            */
182            public DLSyncEvent findByTypePK(long typePK)
183                    throws com.liferay.portlet.documentlibrary.exception.NoSuchSyncEventException;
184    
185            /**
186            * Returns the d l sync event where typePK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
187            *
188            * @param typePK the type p k
189            * @return the matching d l sync event, or <code>null</code> if a matching d l sync event could not be found
190            */
191            public DLSyncEvent fetchByTypePK(long typePK);
192    
193            /**
194            * Returns the d l sync event where typePK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
195            *
196            * @param typePK the type p k
197            * @param retrieveFromCache whether to retrieve from the finder cache
198            * @return the matching d l sync event, or <code>null</code> if a matching d l sync event could not be found
199            */
200            public DLSyncEvent fetchByTypePK(long typePK, boolean retrieveFromCache);
201    
202            /**
203            * Removes the d l sync event where typePK = &#63; from the database.
204            *
205            * @param typePK the type p k
206            * @return the d l sync event that was removed
207            */
208            public DLSyncEvent removeByTypePK(long typePK)
209                    throws com.liferay.portlet.documentlibrary.exception.NoSuchSyncEventException;
210    
211            /**
212            * Returns the number of d l sync events where typePK = &#63;.
213            *
214            * @param typePK the type p k
215            * @return the number of matching d l sync events
216            */
217            public int countByTypePK(long typePK);
218    
219            /**
220            * Caches the d l sync event in the entity cache if it is enabled.
221            *
222            * @param dlSyncEvent the d l sync event
223            */
224            public void cacheResult(DLSyncEvent dlSyncEvent);
225    
226            /**
227            * Caches the d l sync events in the entity cache if it is enabled.
228            *
229            * @param dlSyncEvents the d l sync events
230            */
231            public void cacheResult(java.util.List<DLSyncEvent> dlSyncEvents);
232    
233            /**
234            * Creates a new d l sync event with the primary key. Does not add the d l sync event to the database.
235            *
236            * @param syncEventId the primary key for the new d l sync event
237            * @return the new d l sync event
238            */
239            public DLSyncEvent create(long syncEventId);
240    
241            /**
242            * Removes the d l sync event with the primary key from the database. Also notifies the appropriate model listeners.
243            *
244            * @param syncEventId the primary key of the d l sync event
245            * @return the d l sync event that was removed
246            * @throws NoSuchSyncEventException if a d l sync event with the primary key could not be found
247            */
248            public DLSyncEvent remove(long syncEventId)
249                    throws com.liferay.portlet.documentlibrary.exception.NoSuchSyncEventException;
250    
251            public DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent);
252    
253            /**
254            * Returns the d l sync event with the primary key or throws a {@link NoSuchSyncEventException} if it could not be found.
255            *
256            * @param syncEventId the primary key of the d l sync event
257            * @return the d l sync event
258            * @throws NoSuchSyncEventException if a d l sync event with the primary key could not be found
259            */
260            public DLSyncEvent findByPrimaryKey(long syncEventId)
261                    throws com.liferay.portlet.documentlibrary.exception.NoSuchSyncEventException;
262    
263            /**
264            * Returns the d l sync event with the primary key or returns <code>null</code> if it could not be found.
265            *
266            * @param syncEventId the primary key of the d l sync event
267            * @return the d l sync event, or <code>null</code> if a d l sync event with the primary key could not be found
268            */
269            public DLSyncEvent fetchByPrimaryKey(long syncEventId);
270    
271            @Override
272            public java.util.Map<java.io.Serializable, DLSyncEvent> fetchByPrimaryKeys(
273                    java.util.Set<java.io.Serializable> primaryKeys);
274    
275            /**
276            * Returns all the d l sync events.
277            *
278            * @return the d l sync events
279            */
280            public java.util.List<DLSyncEvent> findAll();
281    
282            /**
283            * Returns a range of all the d l sync events.
284            *
285            * <p>
286            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLSyncEventModelImpl}. 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.
287            * </p>
288            *
289            * @param start the lower bound of the range of d l sync events
290            * @param end the upper bound of the range of d l sync events (not inclusive)
291            * @return the range of d l sync events
292            */
293            public java.util.List<DLSyncEvent> findAll(int start, int end);
294    
295            /**
296            * Returns an ordered range of all the d l sync events.
297            *
298            * <p>
299            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLSyncEventModelImpl}. 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.
300            * </p>
301            *
302            * @param start the lower bound of the range of d l sync events
303            * @param end the upper bound of the range of d l sync events (not inclusive)
304            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
305            * @return the ordered range of d l sync events
306            */
307            public java.util.List<DLSyncEvent> findAll(int start, int end,
308                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator);
309    
310            /**
311            * Returns an ordered range of all the d l sync events.
312            *
313            * <p>
314            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLSyncEventModelImpl}. 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.
315            * </p>
316            *
317            * @param start the lower bound of the range of d l sync events
318            * @param end the upper bound of the range of d l sync events (not inclusive)
319            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
320            * @param retrieveFromCache whether to retrieve from the finder cache
321            * @return the ordered range of d l sync events
322            */
323            public java.util.List<DLSyncEvent> findAll(int start, int end,
324                    com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator,
325                    boolean retrieveFromCache);
326    
327            /**
328            * Removes all the d l sync events from the database.
329            */
330            public void removeAll();
331    
332            /**
333            * Returns the number of d l sync events.
334            *
335            * @return the number of d l sync events
336            */
337            public int countAll();
338    
339            @Override
340            public java.util.Set<java.lang.String> getBadColumnNames();
341    }