1
22
23 package com.liferay.portal.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface AccountPersistence extends BasePersistence {
39 public com.liferay.portal.model.Account create(long accountId);
40
41 public com.liferay.portal.model.Account remove(long accountId)
42 throws com.liferay.portal.NoSuchAccountException,
43 com.liferay.portal.SystemException;
44
45 public com.liferay.portal.model.Account remove(
46 com.liferay.portal.model.Account account)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portal.model.Account update(
53 com.liferay.portal.model.Account account)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portal.model.Account update(
70 com.liferay.portal.model.Account account, boolean merge)
71 throws com.liferay.portal.SystemException;
72
73 public com.liferay.portal.model.Account updateImpl(
74 com.liferay.portal.model.Account account, boolean merge)
75 throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portal.model.Account findByPrimaryKey(long accountId)
79 throws com.liferay.portal.NoSuchAccountException,
80 com.liferay.portal.SystemException;
81
82 public com.liferay.portal.model.Account fetchByPrimaryKey(long accountId)
83 throws com.liferay.portal.SystemException;
84
85 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86 public java.util.List<Object> findWithDynamicQuery(
87 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
88 throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public java.util.List<Object> findWithDynamicQuery(
92 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
93 int end) throws com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portal.model.Account> findAll()
97 throws com.liferay.portal.SystemException;
98
99 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.util.List<com.liferay.portal.model.Account> findAll(int start,
101 int end) throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public java.util.List<com.liferay.portal.model.Account> findAll(int start,
105 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException;
107
108 public void removeAll() throws com.liferay.portal.SystemException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public int countAll() throws com.liferay.portal.SystemException;
112 }