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


public interface ExpandoRowPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByTableId(long tableId)
           
 ExpandoRow create(long rowId)
           
 ExpandoRow fetchByPrimaryKey(long rowId)
           
 java.util.List<ExpandoRow> findAll()
           
 java.util.List<ExpandoRow> findAll(int begin, int end)
           
 java.util.List<ExpandoRow> findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ExpandoRow findByPrimaryKey(long rowId)
           
 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 begin, int end)
           
 java.util.List<ExpandoRow> findByTableId(long tableId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ExpandoRow> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<ExpandoRow> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 ExpandoRow remove(ExpandoRow expandoRow)
           
 ExpandoRow remove(long rowId)
           
 void removeAll()
           
 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)
           
 

Method Detail

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 begin,
                                         int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTableId

java.util.List<ExpandoRow> findByTableId(long tableId,
                                         int begin,
                                         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

findWithDynamicQuery

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

findWithDynamicQuery

java.util.List<ExpandoRow> 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<ExpandoRow> findAll()
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

java.util.List<ExpandoRow> findAll(int begin,
                                   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

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

countAll

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