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.ListType;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ListTypePersistenceImpl
022     * @see       ListTypeUtil
023     * @generated
024     */
025    public interface ListTypePersistence extends BasePersistence<ListType> {
026            public void cacheResult(com.liferay.portal.model.ListType listType);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.ListType> listTypes);
030    
031            public com.liferay.portal.model.ListType create(int listTypeId);
032    
033            public com.liferay.portal.model.ListType remove(int listTypeId)
034                    throws com.liferay.portal.NoSuchListTypeException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.ListType updateImpl(
038                    com.liferay.portal.model.ListType listType, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.ListType findByPrimaryKey(int listTypeId)
042                    throws com.liferay.portal.NoSuchListTypeException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.ListType fetchByPrimaryKey(int listTypeId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.ListType> findByType(
049                    java.lang.String type)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portal.model.ListType> findByType(
053                    java.lang.String type, int start, int end)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portal.model.ListType> findByType(
057                    java.lang.String type, 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.ListType findByType_First(
062                    java.lang.String type,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.NoSuchListTypeException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.ListType findByType_Last(
068                    java.lang.String type,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchListTypeException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.ListType[] findByType_PrevAndNext(
074                    int listTypeId, java.lang.String type,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchListTypeException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portal.model.ListType> findAll()
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public java.util.List<com.liferay.portal.model.ListType> findAll(
083                    int start, int end)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public java.util.List<com.liferay.portal.model.ListType> findAll(
087                    int start, int end,
088                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public void removeByType(java.lang.String type)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public void removeAll()
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public int countByType(java.lang.String type)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public int countAll()
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    }