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.social.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.social.model.SocialEquityUser;
20  
21  /**
22   * <a href="SocialEquityUserPersistence.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       SocialEquityUserPersistenceImpl
31   * @see       SocialEquityUserUtil
32   * @generated
33   */
34  public interface SocialEquityUserPersistence extends BasePersistence<SocialEquityUser> {
35      public void cacheResult(
36          com.liferay.portlet.social.model.SocialEquityUser socialEquityUser);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.social.model.SocialEquityUser> socialEquityUsers);
40  
41      public com.liferay.portlet.social.model.SocialEquityUser create(
42          long equityUserId);
43  
44      public com.liferay.portlet.social.model.SocialEquityUser remove(
45          long equityUserId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.social.NoSuchEquityUserException;
48  
49      public com.liferay.portlet.social.model.SocialEquityUser updateImpl(
50          com.liferay.portlet.social.model.SocialEquityUser socialEquityUser,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.social.model.SocialEquityUser findByPrimaryKey(
55          long equityUserId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.social.NoSuchEquityUserException;
58  
59      public com.liferay.portlet.social.model.SocialEquityUser fetchByPrimaryKey(
60          long equityUserId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
64          long userId) throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
67          long userId, int start, int end)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
71          long userId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
73          throws com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portlet.social.model.SocialEquityUser findByUserId_First(
76          long userId,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.kernel.exception.SystemException,
79              com.liferay.portlet.social.NoSuchEquityUserException;
80  
81      public com.liferay.portlet.social.model.SocialEquityUser findByUserId_Last(
82          long userId,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.kernel.exception.SystemException,
85              com.liferay.portlet.social.NoSuchEquityUserException;
86  
87      public com.liferay.portlet.social.model.SocialEquityUser[] findByUserId_PrevAndNext(
88          long equityUserId, long userId,
89          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
90          throws com.liferay.portal.kernel.exception.SystemException,
91              com.liferay.portlet.social.NoSuchEquityUserException;
92  
93      public com.liferay.portlet.social.model.SocialEquityUser findByG_U(
94          long groupId, long userId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.social.NoSuchEquityUserException;
97  
98      public com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
99          long groupId, long userId)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
103         long groupId, long userId, boolean retrieveFromCache)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll()
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
110         int start, int end)
111         throws com.liferay.portal.kernel.exception.SystemException;
112 
113     public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
114         int start, int end,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public void removeByUserId(long userId)
119         throws com.liferay.portal.kernel.exception.SystemException;
120 
121     public void removeByG_U(long groupId, long userId)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.social.NoSuchEquityUserException;
124 
125     public void removeAll()
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public int countByUserId(long userId)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public int countByG_U(long groupId, long userId)
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public int countAll()
135         throws com.liferay.portal.kernel.exception.SystemException;
136 }