com.liferay.portlet.expando.service.persistence
Class ExpandoRowUtil

java.lang.Object
  extended by com.liferay.portlet.expando.service.persistence.ExpandoRowUtil

public class ExpandoRowUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ExpandoRowUtil()
           
 
Method Summary
static int countAll()
           
static int countByT_C(long tableId, long classPK)
           
static int countByTableId(long tableId)
           
static ExpandoRow create(long rowId)
           
static ExpandoRow fetchByPrimaryKey(long rowId)
           
static ExpandoRow fetchByT_C(long tableId, long classPK)
           
static java.util.List<ExpandoRow> findAll()
           
static java.util.List<ExpandoRow> findAll(int start, int end)
           
static java.util.List<ExpandoRow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ExpandoRow findByPrimaryKey(long rowId)
           
static ExpandoRow findByT_C(long tableId, long classPK)
           
static ExpandoRow findByTableId_First(long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ExpandoRow findByTableId_Last(long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ExpandoRow[] findByTableId_PrevAndNext(long rowId, long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<ExpandoRow> findByTableId(long tableId)
           
static java.util.List<ExpandoRow> findByTableId(long tableId, int start, int end)
           
static java.util.List<ExpandoRow> findByTableId(long tableId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static ExpandoRowPersistence getPersistence()
           
static ExpandoRow remove(ExpandoRow expandoRow)
           
static ExpandoRow remove(long rowId)
           
static void removeAll()
           
static void removeByT_C(long tableId, long classPK)
           
static void removeByTableId(long tableId)
           
 void setPersistence(ExpandoRowPersistence persistence)
           
static ExpandoRow update(ExpandoRow expandoRow)
          Deprecated. Use update(ExpandoRow expandoRow, boolean merge).
static ExpandoRow update(ExpandoRow expandoRow, boolean merge)
          Add, update, or merge, the entity.
static ExpandoRow updateImpl(ExpandoRow expandoRow, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandoRowUtil

public ExpandoRowUtil()
Method Detail

create

public static ExpandoRow create(long rowId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

public static 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

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByTableId

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

findByTableId

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

findByTableId

public static 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

public static 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

public static 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

public static 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

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

fetchByT_C

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

findWithDynamicQuery

public static 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

public static 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

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

findAll

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

findAll

public static 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

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

removeByT_C

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

removeAll

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

countByTableId

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

countByT_C

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

countAll

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

getPersistence

public static ExpandoRowPersistence getPersistence()

setPersistence

public void setPersistence(ExpandoRowPersistence persistence)