001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Account;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       AccountPersistenceImpl
022     * @see       AccountUtil
023     * @generated
024     */
025    public interface AccountPersistence extends BasePersistence<Account> {
026            public void cacheResult(com.liferay.portal.model.Account account);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Account> accounts);
030    
031            public com.liferay.portal.model.Account create(long accountId);
032    
033            public com.liferay.portal.model.Account remove(long accountId)
034                    throws com.liferay.portal.NoSuchAccountException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Account updateImpl(
038                    com.liferay.portal.model.Account account, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Account findByPrimaryKey(long accountId)
042                    throws com.liferay.portal.NoSuchAccountException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Account fetchByPrimaryKey(long accountId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.Account> findAll()
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portal.model.Account> findAll(int start,
052                    int end) throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portal.model.Account> findAll(int start,
055                    int end,
056                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public void removeAll()
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public int countAll()
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    }