1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.counter.service.persistence;
16  
17  import com.liferay.counter.model.Counter;
18  
19  import com.liferay.portal.service.persistence.BasePersistence;
20  
21  /**
22   * <a href="CounterPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       CounterPersistenceImpl
31   * @see       CounterUtil
32   * @generated
33   */
34  public interface CounterPersistence extends BasePersistence<Counter> {
35      public void cacheResult(com.liferay.counter.model.Counter counter);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.counter.model.Counter> counters);
39  
40      public com.liferay.counter.model.Counter create(java.lang.String name);
41  
42      public com.liferay.counter.model.Counter remove(java.lang.String name)
43          throws com.liferay.counter.NoSuchCounterException,
44              com.liferay.portal.kernel.exception.SystemException;
45  
46      public com.liferay.counter.model.Counter updateImpl(
47          com.liferay.counter.model.Counter counter, boolean merge)
48          throws com.liferay.portal.kernel.exception.SystemException;
49  
50      public com.liferay.counter.model.Counter findByPrimaryKey(
51          java.lang.String name)
52          throws com.liferay.counter.NoSuchCounterException,
53              com.liferay.portal.kernel.exception.SystemException;
54  
55      public com.liferay.counter.model.Counter fetchByPrimaryKey(
56          java.lang.String name)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.counter.model.Counter> findAll()
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.counter.model.Counter> findAll(
63          int start, int end)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.counter.model.Counter> findAll(
67          int start, int end,
68          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public void removeAll()
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public int countAll()
75          throws com.liferay.portal.kernel.exception.SystemException;
76  }