1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface ContactPersistence {
32 public com.liferay.portal.model.Contact create(long contactId);
33
34 public com.liferay.portal.model.Contact remove(long contactId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portal.NoSuchContactException;
37
38 public com.liferay.portal.model.Contact remove(
39 com.liferay.portal.model.Contact contact)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.Contact update(
43 com.liferay.portal.model.Contact contact)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portal.model.Contact update(
47 com.liferay.portal.model.Contact contact, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portal.model.Contact findByPrimaryKey(long contactId)
51 throws com.liferay.portal.SystemException,
52 com.liferay.portal.NoSuchContactException;
53
54 public com.liferay.portal.model.Contact fetchByPrimaryKey(long contactId)
55 throws com.liferay.portal.SystemException;
56
57 public java.util.List findByCompanyId(long companyId)
58 throws com.liferay.portal.SystemException;
59
60 public java.util.List findByCompanyId(long companyId, int begin, int end)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List findByCompanyId(long companyId, int begin, int end,
64 com.liferay.portal.kernel.util.OrderByComparator obc)
65 throws com.liferay.portal.SystemException;
66
67 public com.liferay.portal.model.Contact findByCompanyId_First(
68 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
69 throws com.liferay.portal.SystemException,
70 com.liferay.portal.NoSuchContactException;
71
72 public com.liferay.portal.model.Contact findByCompanyId_Last(
73 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portal.NoSuchContactException;
76
77 public com.liferay.portal.model.Contact[] findByCompanyId_PrevAndNext(
78 long contactId, long companyId,
79 com.liferay.portal.kernel.util.OrderByComparator obc)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.NoSuchContactException;
82
83 public java.util.List findWithDynamicQuery(
84 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
85 throws com.liferay.portal.SystemException;
86
87 public java.util.List findWithDynamicQuery(
88 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89 int begin, int end) throws com.liferay.portal.SystemException;
90
91 public java.util.List findAll() throws com.liferay.portal.SystemException;
92
93 public java.util.List findAll(int begin, int end)
94 throws com.liferay.portal.SystemException;
95
96 public java.util.List findAll(int begin, int end,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException;
99
100 public void removeByCompanyId(long companyId)
101 throws com.liferay.portal.SystemException;
102
103 public void removeAll() throws com.liferay.portal.SystemException;
104
105 public int countByCompanyId(long companyId)
106 throws com.liferay.portal.SystemException;
107
108 public int countAll() throws com.liferay.portal.SystemException;
109 }