com.liferay.portal.service.persistence
Interface AccountPersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface AccountPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
Account |
create(long accountId)
|
Account |
fetchByPrimaryKey(long accountId)
|
java.util.List<Account> |
findAll()
|
java.util.List<Account> |
findAll(int start,
int end)
|
java.util.List<Account> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Account |
findByPrimaryKey(long accountId)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
Account |
remove(Account account)
|
Account |
remove(long accountId)
|
void |
removeAll()
|
Account |
update(Account account)
Deprecated. Use update(Account account, boolean merge) . |
Account |
update(Account account,
boolean merge)
Add, update, or merge, the entity. |
Account |
updateImpl(Account account,
boolean merge)
|
create
Account create(long accountId)
remove
Account remove(long accountId)
throws NoSuchAccountException,
com.liferay.portal.SystemException
- Throws:
NoSuchAccountException
com.liferay.portal.SystemException
remove
Account remove(Account account)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
Account update(Account account)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Account account, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
Account update(Account account,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
account
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when account is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
Account updateImpl(Account account,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
Account findByPrimaryKey(long accountId)
throws NoSuchAccountException,
com.liferay.portal.SystemException
- Throws:
NoSuchAccountException
com.liferay.portal.SystemException
fetchByPrimaryKey
Account fetchByPrimaryKey(long accountId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Account> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Account> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Account> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException