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.portal.service.persistence;
16  
17  import com.liferay.portal.model.ClassName;
18  
19  /**
20   * <a href="ClassNamePersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       ClassNamePersistenceImpl
29   * @see       ClassNameUtil
30   * @generated
31   */
32  public interface ClassNamePersistence extends BasePersistence<ClassName> {
33      public void cacheResult(com.liferay.portal.model.ClassName className);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.ClassName> classNames);
37  
38      public com.liferay.portal.model.ClassName create(long classNameId);
39  
40      public com.liferay.portal.model.ClassName remove(long classNameId)
41          throws com.liferay.portal.NoSuchClassNameException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.ClassName updateImpl(
45          com.liferay.portal.model.ClassName className, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.ClassName findByPrimaryKey(long classNameId)
49          throws com.liferay.portal.NoSuchClassNameException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.ClassName fetchByPrimaryKey(
53          long classNameId)
54          throws com.liferay.portal.kernel.exception.SystemException;
55  
56      public com.liferay.portal.model.ClassName findByValue(
57          java.lang.String value)
58          throws com.liferay.portal.NoSuchClassNameException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public com.liferay.portal.model.ClassName fetchByValue(
62          java.lang.String value)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public com.liferay.portal.model.ClassName fetchByValue(
66          java.lang.String value, boolean retrieveFromCache)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.ClassName> findAll()
70          throws com.liferay.portal.kernel.exception.SystemException;
71  
72      public java.util.List<com.liferay.portal.model.ClassName> findAll(
73          int start, int end)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public java.util.List<com.liferay.portal.model.ClassName> findAll(
77          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.kernel.exception.SystemException;
79  
80      public void removeByValue(java.lang.String value)
81          throws com.liferay.portal.NoSuchClassNameException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public void removeAll()
85          throws com.liferay.portal.kernel.exception.SystemException;
86  
87      public int countByValue(java.lang.String value)
88          throws com.liferay.portal.kernel.exception.SystemException;
89  
90      public int countAll()
91          throws com.liferay.portal.kernel.exception.SystemException;
92  }