com.liferay.portlet.expando.service.persistence
Interface ExpandoRowPersistence

All Superinterfaces:
BasePersistence

public interface ExpandoRowPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(ExpandoRow expandoRow)
           
 void cacheResult(java.util.List<ExpandoRow> expandoRows)
           
 void clearCache()
           
 int countAll()
           
 int countByT_C(long tableId, long classPK)
           
 int countByTableId(long tableId)
           
 ExpandoRow create(long rowId)
           
 ExpandoRow fetchByPrimaryKey(long rowId)
           
 ExpandoRow fetchByT_C(long tableId, long classPK)
           
 ExpandoRow fetchByT_C(long tableId, long classPK, boolean retrieveFromCache)
           
 java.util.List<ExpandoRow> findAll()
           
 java.util.List<ExpandoRow> findAll(int start, int end)
           
 java.util.List<ExpandoRow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ExpandoRow findByPrimaryKey(long rowId)
           
 ExpandoRow findByT_C(long tableId, long classPK)
           
 ExpandoRow findByTableId_First(long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ExpandoRow findByTableId_Last(long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ExpandoRow[] findByTableId_PrevAndNext(long rowId, long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ExpandoRow> findByTableId(long tableId)
           
 java.util.List<ExpandoRow> findByTableId(long tableId, int start, int end)
           
 java.util.List<ExpandoRow> findByTableId(long tableId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 ExpandoRow remove(ExpandoRow expandoRow)
           
 ExpandoRow remove(long rowId)
           
 void removeAll()
           
 void removeByT_C(long tableId, long classPK)
           
 void removeByTableId(long tableId)
           
 ExpandoRow update(ExpandoRow expandoRow)
          Deprecated. Use update(ExpandoRow expandoRow, boolean merge).
 ExpandoRow update(ExpandoRow expandoRow, boolean merge)
          Add, update, or merge, the entity.
 ExpandoRow updateImpl(ExpandoRow expandoRow, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(ExpandoRow expandoRow)

cacheResult

void cacheResult(java.util.List<ExpandoRow> expandoRows)

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

ExpandoRow create(long rowId)

remove

ExpandoRow remove(long rowId)
                  throws com.liferay.portal.SystemException,
                         NoSuchRowException
Throws:
com.liferay.portal.SystemException
NoSuchRowException

remove

ExpandoRow remove(ExpandoRow expandoRow)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

ExpandoRow update(ExpandoRow expandoRow)
                  throws com.liferay.portal.SystemException
Deprecated. Use update(ExpandoRow expandoRow, boolean merge).

Throws:
com.liferay.portal.SystemException

update

ExpandoRow update(ExpandoRow expandoRow,
                  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:
expandoRow - 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 expandoRow 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

ExpandoRow updateImpl(ExpandoRow expandoRow,
                      boolean merge)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

ExpandoRow findByPrimaryKey(long rowId)
                            throws com.liferay.portal.SystemException,
                                   NoSuchRowException
Throws:
com.liferay.portal.SystemException
NoSuchRowException

fetchByPrimaryKey

ExpandoRow fetchByPrimaryKey(long rowId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTableId

java.util.List<ExpandoRow> findByTableId(long tableId)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTableId

java.util.List<ExpandoRow> findByTableId(long tableId,
                                         int start,
                                         int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTableId

java.util.List<ExpandoRow> findByTableId(long tableId,
                                         int start,
                                         int end,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTableId_First

ExpandoRow findByTableId_First(long tableId,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchRowException
Throws:
com.liferay.portal.SystemException
NoSuchRowException

findByTableId_Last

ExpandoRow findByTableId_Last(long tableId,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchRowException
Throws:
com.liferay.portal.SystemException
NoSuchRowException

findByTableId_PrevAndNext

ExpandoRow[] findByTableId_PrevAndNext(long rowId,
                                       long tableId,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchRowException
Throws:
com.liferay.portal.SystemException
NoSuchRowException

findByT_C

ExpandoRow findByT_C(long tableId,
                     long classPK)
                     throws com.liferay.portal.SystemException,
                            NoSuchRowException
Throws:
com.liferay.portal.SystemException
NoSuchRowException

fetchByT_C

ExpandoRow fetchByT_C(long tableId,
                      long classPK)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByT_C

ExpandoRow fetchByT_C(long tableId,
                      long classPK,
                      boolean retrieveFromCache)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                      int start,
                                                      int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

findAll

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

removeByTableId

void removeByTableId(long tableId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByT_C

void removeByT_C(long tableId,
                 long classPK)
                 throws com.liferay.portal.SystemException,
                        NoSuchRowException
Throws:
com.liferay.portal.SystemException
NoSuchRowException

removeAll

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

countByTableId

int countByTableId(long tableId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByT_C

int countByT_C(long tableId,
               long classPK)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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