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.counter.service.persistence;
016    
017    import com.liferay.counter.model.Counter;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       CounterPersistenceImpl
024     * @see       CounterUtil
025     * @generated
026     */
027    public interface CounterPersistence extends BasePersistence<Counter> {
028            public void cacheResult(com.liferay.counter.model.Counter counter);
029    
030            public void cacheResult(
031                    java.util.List<com.liferay.counter.model.Counter> counters);
032    
033            public com.liferay.counter.model.Counter create(java.lang.String name);
034    
035            public com.liferay.counter.model.Counter remove(java.lang.String name)
036                    throws com.liferay.counter.NoSuchCounterException,
037                            com.liferay.portal.kernel.exception.SystemException;
038    
039            public com.liferay.counter.model.Counter updateImpl(
040                    com.liferay.counter.model.Counter counter, boolean merge)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public com.liferay.counter.model.Counter findByPrimaryKey(
044                    java.lang.String name)
045                    throws com.liferay.counter.NoSuchCounterException,
046                            com.liferay.portal.kernel.exception.SystemException;
047    
048            public com.liferay.counter.model.Counter fetchByPrimaryKey(
049                    java.lang.String name)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.counter.model.Counter> findAll()
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.counter.model.Counter> findAll(
056                    int start, int end)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.counter.model.Counter> findAll(
060                    int start, int end,
061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public void removeAll()
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public int countAll()
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    }