com.liferay.portal.service.persistence
Interface ListTypePersistence


public interface ListTypePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByType(java.lang.String type)
           
 ListType create(int listTypeId)
           
 ListType fetchByPrimaryKey(int listTypeId)
           
 java.util.List<ListType> findAll()
           
 java.util.List<ListType> findAll(int begin, int end)
           
 java.util.List<ListType> findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ListType findByPrimaryKey(int listTypeId)
           
 ListType findByType_First(java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ListType findByType_Last(java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ListType[] findByType_PrevAndNext(int listTypeId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ListType> findByType(java.lang.String type)
           
 java.util.List<ListType> findByType(java.lang.String type, int begin, int end)
           
 java.util.List<ListType> findByType(java.lang.String type, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ListType> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<ListType> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 ListType remove(int listTypeId)
           
 ListType remove(ListType listType)
           
 void removeAll()
           
 void removeByType(java.lang.String type)
           
 ListType update(ListType listType)
          Deprecated. Use update(ListType listType, boolean merge).
 ListType update(ListType listType, boolean merge)
          Add, update, or merge, the entity.
 ListType updateImpl(ListType listType, boolean merge)
           
 

Method Detail

create

ListType create(int listTypeId)

remove

ListType remove(int listTypeId)
                throws com.liferay.portal.SystemException,
                       NoSuchListTypeException
Throws:
com.liferay.portal.SystemException
NoSuchListTypeException

remove

ListType remove(ListType listType)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

ListType update(ListType listType)
                throws com.liferay.portal.SystemException
Deprecated. Use update(ListType listType, boolean merge).

Throws:
com.liferay.portal.SystemException

update

ListType update(ListType listType,
                boolean merge)
                throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
listType - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when listType is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

ListType updateImpl(ListType listType,
                    boolean merge)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

ListType findByPrimaryKey(int listTypeId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchListTypeException
Throws:
com.liferay.portal.SystemException
NoSuchListTypeException

fetchByPrimaryKey

ListType fetchByPrimaryKey(int listTypeId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByType

java.util.List<ListType> findByType(java.lang.String type)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByType

java.util.List<ListType> findByType(java.lang.String type,
                                    int begin,
                                    int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByType

java.util.List<ListType> findByType(java.lang.String type,
                                    int begin,
                                    int end,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByType_First

ListType findByType_First(java.lang.String type,
                          com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException,
                                 NoSuchListTypeException
Throws:
com.liferay.portal.SystemException
NoSuchListTypeException

findByType_Last

ListType findByType_Last(java.lang.String type,
                         com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException,
                                NoSuchListTypeException
Throws:
com.liferay.portal.SystemException
NoSuchListTypeException

findByType_PrevAndNext

ListType[] findByType_PrevAndNext(int listTypeId,
                                  java.lang.String type,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchListTypeException
Throws:
com.liferay.portal.SystemException
NoSuchListTypeException

findWithDynamicQuery

java.util.List<ListType> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<ListType> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                              int begin,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<ListType> findAll()
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<ListType> findAll(int begin,
                                 int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<ListType> findAll(int begin,
                                 int end,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByType

void removeByType(java.lang.String type)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByType

int countByType(java.lang.String type)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException