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;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.counter.service.impl.CounterLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       CounterLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface CounterLocalService {
043            public com.liferay.counter.model.Counter addCounter(
044                    com.liferay.counter.model.Counter counter)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.counter.model.Counter createCounter(
048                    java.lang.String name);
049    
050            public void deleteCounter(java.lang.String name)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteCounter(com.liferay.counter.model.Counter counter)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            @SuppressWarnings("unchecked")
058            public java.util.List dynamicQuery(
059                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            @SuppressWarnings("unchecked")
063            public java.util.List dynamicQuery(
064                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
065                    int end) throws com.liferay.portal.kernel.exception.SystemException;
066    
067            @SuppressWarnings("unchecked")
068            public java.util.List dynamicQuery(
069                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
070                    int end,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            public long dynamicQueryCount(
075                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
076                    throws com.liferay.portal.kernel.exception.SystemException;
077    
078            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079            public com.liferay.counter.model.Counter getCounter(java.lang.String name)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public java.util.List<com.liferay.counter.model.Counter> getCounters(
085                    int start, int end)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089            public int getCountersCount()
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.counter.model.Counter updateCounter(
093                    com.liferay.counter.model.Counter counter)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.counter.model.Counter updateCounter(
097                    com.liferay.counter.model.Counter counter, boolean merge)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101            public java.util.List<java.lang.String> getNames()
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public long increment()
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public long increment(java.lang.String name)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            public long increment(java.lang.String name, int size)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public void rename(java.lang.String oldName, java.lang.String newName)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            public void reset(java.lang.String name)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            public void reset(java.lang.String name, long size)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    }