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.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.model.WorkflowInstanceLink;
025    import com.liferay.portal.service.ServiceContext;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the workflow instance link service. This utility wraps {@link WorkflowInstanceLinkPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see WorkflowInstanceLinkPersistence
038     * @see WorkflowInstanceLinkPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class WorkflowInstanceLinkUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(WorkflowInstanceLink workflowInstanceLink) {
060                    getPersistence().clearCache(workflowInstanceLink);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
067                    throws SystemException {
068                    return getPersistence().countWithDynamicQuery(dynamicQuery);
069            }
070    
071            /**
072             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
073             */
074            public static List<WorkflowInstanceLink> findWithDynamicQuery(
075                    DynamicQuery dynamicQuery) throws SystemException {
076                    return getPersistence().findWithDynamicQuery(dynamicQuery);
077            }
078    
079            /**
080             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
081             */
082            public static List<WorkflowInstanceLink> findWithDynamicQuery(
083                    DynamicQuery dynamicQuery, int start, int end)
084                    throws SystemException {
085                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
086            }
087    
088            /**
089             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
090             */
091            public static List<WorkflowInstanceLink> findWithDynamicQuery(
092                    DynamicQuery dynamicQuery, int start, int end,
093                    OrderByComparator orderByComparator) throws SystemException {
094                    return getPersistence()
095                                       .findWithDynamicQuery(dynamicQuery, start, end,
096                            orderByComparator);
097            }
098    
099            /**
100             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
101             */
102            public static WorkflowInstanceLink update(
103                    WorkflowInstanceLink workflowInstanceLink) throws SystemException {
104                    return getPersistence().update(workflowInstanceLink);
105            }
106    
107            /**
108             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
109             */
110            public static WorkflowInstanceLink update(
111                    WorkflowInstanceLink workflowInstanceLink, ServiceContext serviceContext)
112                    throws SystemException {
113                    return getPersistence().update(workflowInstanceLink, serviceContext);
114            }
115    
116            /**
117            * Returns all the workflow instance links where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
118            *
119            * @param groupId the group ID
120            * @param companyId the company ID
121            * @param classNameId the class name ID
122            * @param classPK the class p k
123            * @return the matching workflow instance links
124            * @throws SystemException if a system exception occurred
125            */
126            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
127                    long groupId, long companyId, long classNameId, long classPK)
128                    throws com.liferay.portal.kernel.exception.SystemException {
129                    return getPersistence()
130                                       .findByG_C_C_C(groupId, companyId, classNameId, classPK);
131            }
132    
133            /**
134            * Returns a range of all the workflow instance links where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
135            *
136            * <p>
137            * 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.WorkflowInstanceLinkModelImpl}. 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.
138            * </p>
139            *
140            * @param groupId the group ID
141            * @param companyId the company ID
142            * @param classNameId the class name ID
143            * @param classPK the class p k
144            * @param start the lower bound of the range of workflow instance links
145            * @param end the upper bound of the range of workflow instance links (not inclusive)
146            * @return the range of matching workflow instance links
147            * @throws SystemException if a system exception occurred
148            */
149            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
150                    long groupId, long companyId, long classNameId, long classPK,
151                    int start, int end)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence()
154                                       .findByG_C_C_C(groupId, companyId, classNameId, classPK,
155                            start, end);
156            }
157    
158            /**
159            * Returns an ordered range of all the workflow instance links where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
160            *
161            * <p>
162            * 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.WorkflowInstanceLinkModelImpl}. 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.
163            * </p>
164            *
165            * @param groupId the group ID
166            * @param companyId the company ID
167            * @param classNameId the class name ID
168            * @param classPK the class p k
169            * @param start the lower bound of the range of workflow instance links
170            * @param end the upper bound of the range of workflow instance links (not inclusive)
171            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
172            * @return the ordered range of matching workflow instance links
173            * @throws SystemException if a system exception occurred
174            */
175            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
176                    long groupId, long companyId, long classNameId, long classPK,
177                    int start, int end,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return getPersistence()
181                                       .findByG_C_C_C(groupId, companyId, classNameId, classPK,
182                            start, end, orderByComparator);
183            }
184    
185            /**
186            * Returns the first workflow instance link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
187            *
188            * @param groupId the group ID
189            * @param companyId the company ID
190            * @param classNameId the class name ID
191            * @param classPK the class p k
192            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
193            * @return the first matching workflow instance link
194            * @throws com.liferay.portal.NoSuchWorkflowInstanceLinkException if a matching workflow instance link could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_First(
198                    long groupId, long companyId, long classNameId, long classPK,
199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return getPersistence()
203                                       .findByG_C_C_C_First(groupId, companyId, classNameId,
204                            classPK, orderByComparator);
205            }
206    
207            /**
208            * Returns the first workflow instance link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
209            *
210            * @param groupId the group ID
211            * @param companyId the company ID
212            * @param classNameId the class name ID
213            * @param classPK the class p k
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the first matching workflow instance link, or <code>null</code> if a matching workflow instance link could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public static com.liferay.portal.model.WorkflowInstanceLink fetchByG_C_C_C_First(
219                    long groupId, long companyId, long classNameId, long classPK,
220                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence()
223                                       .fetchByG_C_C_C_First(groupId, companyId, classNameId,
224                            classPK, orderByComparator);
225            }
226    
227            /**
228            * Returns the last workflow instance link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
229            *
230            * @param groupId the group ID
231            * @param companyId the company ID
232            * @param classNameId the class name ID
233            * @param classPK the class p k
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the last matching workflow instance link
236            * @throws com.liferay.portal.NoSuchWorkflowInstanceLinkException if a matching workflow instance link could not be found
237            * @throws SystemException if a system exception occurred
238            */
239            public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_Last(
240                    long groupId, long companyId, long classNameId, long classPK,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
243                            com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence()
245                                       .findByG_C_C_C_Last(groupId, companyId, classNameId,
246                            classPK, orderByComparator);
247            }
248    
249            /**
250            * Returns the last workflow instance link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
251            *
252            * @param groupId the group ID
253            * @param companyId the company ID
254            * @param classNameId the class name ID
255            * @param classPK the class p k
256            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
257            * @return the last matching workflow instance link, or <code>null</code> if a matching workflow instance link could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portal.model.WorkflowInstanceLink fetchByG_C_C_C_Last(
261                    long groupId, long companyId, long classNameId, long classPK,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return getPersistence()
265                                       .fetchByG_C_C_C_Last(groupId, companyId, classNameId,
266                            classPK, orderByComparator);
267            }
268    
269            /**
270            * Returns the workflow instance links before and after the current workflow instance link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
271            *
272            * @param workflowInstanceLinkId the primary key of the current workflow instance link
273            * @param groupId the group ID
274            * @param companyId the company ID
275            * @param classNameId the class name ID
276            * @param classPK the class p k
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the previous, current, and next workflow instance link
279            * @throws com.liferay.portal.NoSuchWorkflowInstanceLinkException if a workflow instance link with the primary key could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public static com.liferay.portal.model.WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(
283                    long workflowInstanceLinkId, long groupId, long companyId,
284                    long classNameId, long classPK,
285                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    return getPersistence()
289                                       .findByG_C_C_C_PrevAndNext(workflowInstanceLinkId, groupId,
290                            companyId, classNameId, classPK, orderByComparator);
291            }
292    
293            /**
294            * Removes all the workflow instance links where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
295            *
296            * @param groupId the group ID
297            * @param companyId the company ID
298            * @param classNameId the class name ID
299            * @param classPK the class p k
300            * @throws SystemException if a system exception occurred
301            */
302            public static void removeByG_C_C_C(long groupId, long companyId,
303                    long classNameId, long classPK)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    getPersistence()
306                            .removeByG_C_C_C(groupId, companyId, classNameId, classPK);
307            }
308    
309            /**
310            * Returns the number of workflow instance links where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63;.
311            *
312            * @param groupId the group ID
313            * @param companyId the company ID
314            * @param classNameId the class name ID
315            * @param classPK the class p k
316            * @return the number of matching workflow instance links
317            * @throws SystemException if a system exception occurred
318            */
319            public static int countByG_C_C_C(long groupId, long companyId,
320                    long classNameId, long classPK)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return getPersistence()
323                                       .countByG_C_C_C(groupId, companyId, classNameId, classPK);
324            }
325    
326            /**
327            * Caches the workflow instance link in the entity cache if it is enabled.
328            *
329            * @param workflowInstanceLink the workflow instance link
330            */
331            public static void cacheResult(
332                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
333                    getPersistence().cacheResult(workflowInstanceLink);
334            }
335    
336            /**
337            * Caches the workflow instance links in the entity cache if it is enabled.
338            *
339            * @param workflowInstanceLinks the workflow instance links
340            */
341            public static void cacheResult(
342                    java.util.List<com.liferay.portal.model.WorkflowInstanceLink> workflowInstanceLinks) {
343                    getPersistence().cacheResult(workflowInstanceLinks);
344            }
345    
346            /**
347            * Creates a new workflow instance link with the primary key. Does not add the workflow instance link to the database.
348            *
349            * @param workflowInstanceLinkId the primary key for the new workflow instance link
350            * @return the new workflow instance link
351            */
352            public static com.liferay.portal.model.WorkflowInstanceLink create(
353                    long workflowInstanceLinkId) {
354                    return getPersistence().create(workflowInstanceLinkId);
355            }
356    
357            /**
358            * Removes the workflow instance link with the primary key from the database. Also notifies the appropriate model listeners.
359            *
360            * @param workflowInstanceLinkId the primary key of the workflow instance link
361            * @return the workflow instance link that was removed
362            * @throws com.liferay.portal.NoSuchWorkflowInstanceLinkException if a workflow instance link with the primary key could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public static com.liferay.portal.model.WorkflowInstanceLink remove(
366                    long workflowInstanceLinkId)
367                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    return getPersistence().remove(workflowInstanceLinkId);
370            }
371    
372            public static com.liferay.portal.model.WorkflowInstanceLink updateImpl(
373                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return getPersistence().updateImpl(workflowInstanceLink);
376            }
377    
378            /**
379            * Returns the workflow instance link with the primary key or throws a {@link com.liferay.portal.NoSuchWorkflowInstanceLinkException} if it could not be found.
380            *
381            * @param workflowInstanceLinkId the primary key of the workflow instance link
382            * @return the workflow instance link
383            * @throws com.liferay.portal.NoSuchWorkflowInstanceLinkException if a workflow instance link with the primary key could not be found
384            * @throws SystemException if a system exception occurred
385            */
386            public static com.liferay.portal.model.WorkflowInstanceLink findByPrimaryKey(
387                    long workflowInstanceLinkId)
388                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return getPersistence().findByPrimaryKey(workflowInstanceLinkId);
391            }
392    
393            /**
394            * Returns the workflow instance link with the primary key or returns <code>null</code> if it could not be found.
395            *
396            * @param workflowInstanceLinkId the primary key of the workflow instance link
397            * @return the workflow instance link, or <code>null</code> if a workflow instance link with the primary key could not be found
398            * @throws SystemException if a system exception occurred
399            */
400            public static com.liferay.portal.model.WorkflowInstanceLink fetchByPrimaryKey(
401                    long workflowInstanceLinkId)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return getPersistence().fetchByPrimaryKey(workflowInstanceLinkId);
404            }
405    
406            /**
407            * Returns all the workflow instance links.
408            *
409            * @return the workflow instance links
410            * @throws SystemException if a system exception occurred
411            */
412            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll()
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return getPersistence().findAll();
415            }
416    
417            /**
418            * Returns a range of all the workflow instance links.
419            *
420            * <p>
421            * 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.WorkflowInstanceLinkModelImpl}. 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.
422            * </p>
423            *
424            * @param start the lower bound of the range of workflow instance links
425            * @param end the upper bound of the range of workflow instance links (not inclusive)
426            * @return the range of workflow instance links
427            * @throws SystemException if a system exception occurred
428            */
429            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
430                    int start, int end)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return getPersistence().findAll(start, end);
433            }
434    
435            /**
436            * Returns an ordered range of all the workflow instance links.
437            *
438            * <p>
439            * 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.WorkflowInstanceLinkModelImpl}. 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.
440            * </p>
441            *
442            * @param start the lower bound of the range of workflow instance links
443            * @param end the upper bound of the range of workflow instance links (not inclusive)
444            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
445            * @return the ordered range of workflow instance links
446            * @throws SystemException if a system exception occurred
447            */
448            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
449                    int start, int end,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException {
452                    return getPersistence().findAll(start, end, orderByComparator);
453            }
454    
455            /**
456            * Removes all the workflow instance links from the database.
457            *
458            * @throws SystemException if a system exception occurred
459            */
460            public static void removeAll()
461                    throws com.liferay.portal.kernel.exception.SystemException {
462                    getPersistence().removeAll();
463            }
464    
465            /**
466            * Returns the number of workflow instance links.
467            *
468            * @return the number of workflow instance links
469            * @throws SystemException if a system exception occurred
470            */
471            public static int countAll()
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return getPersistence().countAll();
474            }
475    
476            public static WorkflowInstanceLinkPersistence getPersistence() {
477                    if (_persistence == null) {
478                            _persistence = (WorkflowInstanceLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkPersistence.class.getName());
479    
480                            ReferenceRegistry.registerReference(WorkflowInstanceLinkUtil.class,
481                                    "_persistence");
482                    }
483    
484                    return _persistence;
485            }
486    
487            /**
488             * @deprecated As of 6.2.0
489             */
490            public void setPersistence(WorkflowInstanceLinkPersistence persistence) {
491            }
492    
493            private static WorkflowInstanceLinkPersistence _persistence;
494    }