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.portlet.asset.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.asset.model.AssetTag;
20  
21  /**
22   * <a href="AssetTagPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       AssetTagPersistenceImpl
31   * @see       AssetTagUtil
32   * @generated
33   */
34  public interface AssetTagPersistence extends BasePersistence<AssetTag> {
35      public void cacheResult(com.liferay.portlet.asset.model.AssetTag assetTag);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags);
39  
40      public com.liferay.portlet.asset.model.AssetTag create(long tagId);
41  
42      public com.liferay.portlet.asset.model.AssetTag remove(long tagId)
43          throws com.liferay.portal.kernel.exception.SystemException,
44              com.liferay.portlet.asset.NoSuchTagException;
45  
46      public com.liferay.portlet.asset.model.AssetTag updateImpl(
47          com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
48          throws com.liferay.portal.kernel.exception.SystemException;
49  
50      public com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(long tagId)
51          throws com.liferay.portal.kernel.exception.SystemException,
52              com.liferay.portlet.asset.NoSuchTagException;
53  
54      public com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(
55          long tagId) throws com.liferay.portal.kernel.exception.SystemException;
56  
57      public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
58          long groupId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
62          long groupId, int start, int end)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
66          long groupId, int start, int end,
67          com.liferay.portal.kernel.util.OrderByComparator obc)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
71          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.kernel.exception.SystemException,
73              com.liferay.portlet.asset.NoSuchTagException;
74  
75      public com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
76          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.asset.NoSuchTagException;
79  
80      public com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
81          long tagId, long groupId,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.asset.NoSuchTagException;
85  
86      public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
87          throws com.liferay.portal.kernel.exception.SystemException;
88  
89      public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
90          int start, int end)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
94          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public void removeByGroupId(long groupId)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public void removeAll()
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public int countByGroupId(long groupId)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public int countAll()
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
110         long pk) throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
113         long pk, int start, int end)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
117         long pk, int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.kernel.exception.SystemException;
120 
121     public int getAssetEntriesSize(long pk)
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public boolean containsAssetEntry(long pk, long assetEntryPK)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public boolean containsAssetEntries(long pk)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public void addAssetEntry(long pk, long assetEntryPK)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public void addAssetEntry(long pk,
134         com.liferay.portlet.asset.model.AssetEntry assetEntry)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public void addAssetEntries(long pk, long[] assetEntryPKs)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public void addAssetEntries(long pk,
141         java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public void clearAssetEntries(long pk)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public void removeAssetEntry(long pk, long assetEntryPK)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public void removeAssetEntry(long pk,
151         com.liferay.portlet.asset.model.AssetEntry assetEntry)
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public void removeAssetEntries(long pk, long[] assetEntryPKs)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public void removeAssetEntries(long pk,
158         java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public void setAssetEntries(long pk, long[] assetEntryPKs)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public void setAssetEntries(long pk,
165         java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 }