1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.tags.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.tags.model.TagsSource;
20  
21  /**
22   * <a href="TagsSourcePersistence.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       TagsSourcePersistenceImpl
31   * @see       TagsSourceUtil
32   * @generated
33   */
34  public interface TagsSourcePersistence extends BasePersistence<TagsSource> {
35      public void cacheResult(
36          com.liferay.portlet.tags.model.TagsSource tagsSource);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.tags.model.TagsSource> tagsSources);
40  
41      public com.liferay.portlet.tags.model.TagsSource create(long sourceId);
42  
43      public com.liferay.portlet.tags.model.TagsSource remove(long sourceId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.tags.NoSuchSourceException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.tags.model.TagsSource update(
51          com.liferay.portlet.tags.model.TagsSource tagsSource)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.tags.model.TagsSource updateImpl(
55          com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.tags.model.TagsSource findByPrimaryKey(
59          long sourceId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.tags.NoSuchSourceException;
62  
63      public com.liferay.portlet.tags.model.TagsSource fetchByPrimaryKey(
64          long sourceId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll()
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
70          int start, int end) throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
73          int start, int end,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.SystemException;
76  
77      public void removeAll() throws com.liferay.portal.SystemException;
78  
79      public int countAll() throws com.liferay.portal.SystemException;
80  }