1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.Resource;
18  
19  /**
20   * <a href="ResourcePersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       ResourcePersistenceImpl
29   * @see       ResourceUtil
30   * @generated
31   */
32  public interface ResourcePersistence extends BasePersistence<Resource> {
33      public void cacheResult(com.liferay.portal.model.Resource resource);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Resource> resources);
37  
38      public com.liferay.portal.model.Resource create(long resourceId);
39  
40      public com.liferay.portal.model.Resource remove(long resourceId)
41          throws com.liferay.portal.NoSuchResourceException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Resource updateImpl(
45          com.liferay.portal.model.Resource resource, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Resource findByPrimaryKey(long resourceId)
49          throws com.liferay.portal.NoSuchResourceException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Resource fetchByPrimaryKey(long resourceId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
56          long codeId) throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
59          long codeId, int start, int end)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
63          long codeId, int start, int end,
64          com.liferay.portal.kernel.util.OrderByComparator obc)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public com.liferay.portal.model.Resource findByCodeId_First(long codeId,
68          com.liferay.portal.kernel.util.OrderByComparator obc)
69          throws com.liferay.portal.NoSuchResourceException,
70              com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portal.model.Resource findByCodeId_Last(long codeId,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.NoSuchResourceException,
75              com.liferay.portal.kernel.exception.SystemException;
76  
77      public com.liferay.portal.model.Resource[] findByCodeId_PrevAndNext(
78          long resourceId, long codeId,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.NoSuchResourceException,
81              com.liferay.portal.kernel.exception.SystemException;
82  
83      public com.liferay.portal.model.Resource findByC_P(long codeId,
84          java.lang.String primKey)
85          throws com.liferay.portal.NoSuchResourceException,
86              com.liferay.portal.kernel.exception.SystemException;
87  
88      public com.liferay.portal.model.Resource fetchByC_P(long codeId,
89          java.lang.String primKey)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public com.liferay.portal.model.Resource fetchByC_P(long codeId,
93          java.lang.String primKey, boolean retrieveFromCache)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.Resource> findAll()
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.Resource> findAll(
100         int start, int end)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public java.util.List<com.liferay.portal.model.Resource> findAll(
104         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public void removeByCodeId(long codeId)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public void removeByC_P(long codeId, java.lang.String primKey)
111         throws com.liferay.portal.NoSuchResourceException,
112             com.liferay.portal.kernel.exception.SystemException;
113 
114     public void removeAll()
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public int countByCodeId(long codeId)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public int countByC_P(long codeId, java.lang.String primKey)
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public int countAll()
124         throws com.liferay.portal.kernel.exception.SystemException;
125 }