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.Contact;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ContactPersistenceImpl
022     * @see       ContactUtil
023     * @generated
024     */
025    public interface ContactPersistence extends BasePersistence<Contact> {
026            public void cacheResult(com.liferay.portal.model.Contact contact);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Contact> contacts);
030    
031            public com.liferay.portal.model.Contact create(long contactId);
032    
033            public com.liferay.portal.model.Contact remove(long contactId)
034                    throws com.liferay.portal.NoSuchContactException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Contact updateImpl(
038                    com.liferay.portal.model.Contact contact, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Contact findByPrimaryKey(long contactId)
042                    throws com.liferay.portal.NoSuchContactException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Contact fetchByPrimaryKey(long contactId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
049                    long companyId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
053                    long companyId, int start, int end)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
057                    long companyId, int start, int end,
058                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public com.liferay.portal.model.Contact findByCompanyId_First(
062                    long companyId,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.NoSuchContactException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.Contact findByCompanyId_Last(
068                    long companyId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchContactException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.Contact[] findByCompanyId_PrevAndNext(
074                    long contactId, long companyId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchContactException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portal.model.Contact> findAll()
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public java.util.List<com.liferay.portal.model.Contact> findAll(int start,
083                    int end) throws com.liferay.portal.kernel.exception.SystemException;
084    
085            public java.util.List<com.liferay.portal.model.Contact> findAll(int start,
086                    int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public void removeByCompanyId(long companyId)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public void removeAll()
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public int countByCompanyId(long companyId)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public int countAll()
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    }