1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  
26  /**
27   * <a href="WebDAVPropsPersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       WebDAVPropsPersistenceImpl
36   * @see       WebDAVPropsUtil
37   * @generated
38   */
39  public interface WebDAVPropsPersistence extends BasePersistence {
40      public void cacheResult(com.liferay.portal.model.WebDAVProps webDAVProps);
41  
42      public void cacheResult(
43          java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses);
44  
45      public void clearCache();
46  
47      public com.liferay.portal.model.WebDAVProps create(long webDavPropsId);
48  
49      public com.liferay.portal.model.WebDAVProps remove(long webDavPropsId)
50          throws com.liferay.portal.NoSuchWebDAVPropsException,
51              com.liferay.portal.SystemException;
52  
53      public com.liferay.portal.model.WebDAVProps remove(
54          com.liferay.portal.model.WebDAVProps webDAVProps)
55          throws com.liferay.portal.SystemException;
56  
57      /**
58       * @deprecated Use {@link #update(WebDAVProps, boolean merge)}.
59       */
60      public com.liferay.portal.model.WebDAVProps update(
61          com.liferay.portal.model.WebDAVProps webDAVProps)
62          throws com.liferay.portal.SystemException;
63  
64      /**
65       * Add, update, or merge, the entity. This method also calls the model
66       * listeners to trigger the proper events associated with adding, deleting,
67       * or updating an entity.
68       *
69       * @param  webDAVProps the entity to add, update, or merge
70       * @param  merge boolean value for whether to merge the entity. The default
71       *         value is false. Setting merge to true is more expensive and
72       *         should only be true when webDAVProps is transient. See
73       *         LEP-5473 for a detailed discussion of this method.
74       * @return the entity that was added, updated, or merged
75       */
76      public com.liferay.portal.model.WebDAVProps update(
77          com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.WebDAVProps updateImpl(
81          com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
82          throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.WebDAVProps findByPrimaryKey(
85          long webDavPropsId)
86          throws com.liferay.portal.NoSuchWebDAVPropsException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
90          long webDavPropsId) throws com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.WebDAVProps findByC_C(long classNameId,
93          long classPK)
94          throws com.liferay.portal.NoSuchWebDAVPropsException,
95              com.liferay.portal.SystemException;
96  
97      public com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId,
98          long classPK) throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId,
101         long classPK, boolean retrieveFromCache)
102         throws com.liferay.portal.SystemException;
103 
104     public java.util.List<Object> findWithDynamicQuery(
105         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106         throws com.liferay.portal.SystemException;
107 
108     public java.util.List<Object> findWithDynamicQuery(
109         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110         int end) throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
113         throws com.liferay.portal.SystemException;
114 
115     public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
116         int start, int end) throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
119         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException;
121 
122     public void removeByC_C(long classNameId, long classPK)
123         throws com.liferay.portal.NoSuchWebDAVPropsException,
124             com.liferay.portal.SystemException;
125 
126     public void removeAll() throws com.liferay.portal.SystemException;
127 
128     public int countByC_C(long classNameId, long classPK)
129         throws com.liferay.portal.SystemException;
130 
131     public int countAll() throws com.liferay.portal.SystemException;
132 }