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.ClassName;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ClassNamePersistenceImpl
022     * @see       ClassNameUtil
023     * @generated
024     */
025    public interface ClassNamePersistence extends BasePersistence<ClassName> {
026            public void cacheResult(com.liferay.portal.model.ClassName className);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.ClassName> classNames);
030    
031            public com.liferay.portal.model.ClassName create(long classNameId);
032    
033            public com.liferay.portal.model.ClassName remove(long classNameId)
034                    throws com.liferay.portal.NoSuchClassNameException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.ClassName updateImpl(
038                    com.liferay.portal.model.ClassName className, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.ClassName findByPrimaryKey(long classNameId)
042                    throws com.liferay.portal.NoSuchClassNameException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.ClassName fetchByPrimaryKey(
046                    long classNameId)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public com.liferay.portal.model.ClassName findByValue(
050                    java.lang.String value)
051                    throws com.liferay.portal.NoSuchClassNameException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public com.liferay.portal.model.ClassName fetchByValue(
055                    java.lang.String value)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public com.liferay.portal.model.ClassName fetchByValue(
059                    java.lang.String value, boolean retrieveFromCache)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portal.model.ClassName> findAll()
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    
065            public java.util.List<com.liferay.portal.model.ClassName> findAll(
066                    int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public java.util.List<com.liferay.portal.model.ClassName> findAll(
070                    int start, int end,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            public void removeByValue(java.lang.String value)
075                    throws com.liferay.portal.NoSuchClassNameException,
076                            com.liferay.portal.kernel.exception.SystemException;
077    
078            public void removeAll()
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            public int countByValue(java.lang.String value)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            public int countAll()
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    }