001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.model.ListType;
018
019
025 public interface ListTypePersistence extends BasePersistence<ListType> {
026 public void cacheResult(com.liferay.portal.model.ListType listType);
027
028 public void cacheResult(
029 java.util.List<com.liferay.portal.model.ListType> listTypes);
030
031 public com.liferay.portal.model.ListType create(int listTypeId);
032
033 public com.liferay.portal.model.ListType remove(int listTypeId)
034 throws com.liferay.portal.NoSuchListTypeException,
035 com.liferay.portal.kernel.exception.SystemException;
036
037 public com.liferay.portal.model.ListType updateImpl(
038 com.liferay.portal.model.ListType listType, boolean merge)
039 throws com.liferay.portal.kernel.exception.SystemException;
040
041 public com.liferay.portal.model.ListType findByPrimaryKey(int listTypeId)
042 throws com.liferay.portal.NoSuchListTypeException,
043 com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portal.model.ListType fetchByPrimaryKey(int listTypeId)
046 throws com.liferay.portal.kernel.exception.SystemException;
047
048 public java.util.List<com.liferay.portal.model.ListType> findByType(
049 java.lang.String type)
050 throws com.liferay.portal.kernel.exception.SystemException;
051
052 public java.util.List<com.liferay.portal.model.ListType> findByType(
053 java.lang.String type, int start, int end)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 public java.util.List<com.liferay.portal.model.ListType> findByType(
057 java.lang.String type, int start, int end,
058 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 public com.liferay.portal.model.ListType findByType_First(
062 java.lang.String type,
063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064 throws com.liferay.portal.NoSuchListTypeException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 public com.liferay.portal.model.ListType findByType_Last(
068 java.lang.String type,
069 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070 throws com.liferay.portal.NoSuchListTypeException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 public com.liferay.portal.model.ListType[] findByType_PrevAndNext(
074 int listTypeId, java.lang.String type,
075 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076 throws com.liferay.portal.NoSuchListTypeException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 public java.util.List<com.liferay.portal.model.ListType> findAll()
080 throws com.liferay.portal.kernel.exception.SystemException;
081
082 public java.util.List<com.liferay.portal.model.ListType> findAll(
083 int start, int end)
084 throws com.liferay.portal.kernel.exception.SystemException;
085
086 public java.util.List<com.liferay.portal.model.ListType> findAll(
087 int start, int end,
088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public void removeByType(java.lang.String type)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public void removeAll()
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097 public int countByType(java.lang.String type)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public int countAll()
101 throws com.liferay.portal.kernel.exception.SystemException;
102 }