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.Contact;
18  
19  /**
20   * <a href="ContactPersistence.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       ContactPersistenceImpl
29   * @see       ContactUtil
30   * @generated
31   */
32  public interface ContactPersistence extends BasePersistence<Contact> {
33      public void cacheResult(com.liferay.portal.model.Contact contact);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Contact> contacts);
37  
38      public com.liferay.portal.model.Contact create(long contactId);
39  
40      public com.liferay.portal.model.Contact remove(long contactId)
41          throws com.liferay.portal.NoSuchContactException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Contact updateImpl(
45          com.liferay.portal.model.Contact contact, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Contact findByPrimaryKey(long contactId)
49          throws com.liferay.portal.NoSuchContactException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Contact fetchByPrimaryKey(long contactId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
56          long companyId)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
60          long companyId, int start, int end)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
64          long companyId, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator obc)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.Contact findByCompanyId_First(
69          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.NoSuchContactException,
71              com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.Contact findByCompanyId_Last(
74          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.NoSuchContactException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.Contact[] findByCompanyId_PrevAndNext(
79          long contactId, long companyId,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchContactException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public java.util.List<com.liferay.portal.model.Contact> findAll()
85          throws com.liferay.portal.kernel.exception.SystemException;
86  
87      public java.util.List<com.liferay.portal.model.Contact> findAll(int start,
88          int end) throws com.liferay.portal.kernel.exception.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.Contact> findAll(int start,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      public void removeByCompanyId(long companyId)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public void removeAll()
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public int countByCompanyId(long companyId)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public int countAll()
104         throws com.liferay.portal.kernel.exception.SystemException;
105 }