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

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

public class ExpandoColumnUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ExpandoColumnUtil()
           
 
Method Summary
static int countAll()
           
static int countByT_N(long tableId, java.lang.String name)
           
static int countByTableId(long tableId)
           
static ExpandoColumn create(long columnId)
           
static ExpandoColumn fetchByPrimaryKey(long columnId)
           
static ExpandoColumn fetchByT_N(long tableId, java.lang.String name)
           
static java.util.List<ExpandoColumn> findAll()
           
static java.util.List<ExpandoColumn> findAll(int start, int end)
           
static java.util.List<ExpandoColumn> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ExpandoColumn findByPrimaryKey(long columnId)
           
static ExpandoColumn findByT_N(long tableId, java.lang.String name)
           
static ExpandoColumn findByTableId_First(long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ExpandoColumn findByTableId_Last(long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ExpandoColumn[] findByTableId_PrevAndNext(long columnId, long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<ExpandoColumn> findByTableId(long tableId)
           
static java.util.List<ExpandoColumn> findByTableId(long tableId, int start, int end)
           
static java.util.List<ExpandoColumn> 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 ExpandoColumnPersistence getPersistence()
           
static ExpandoColumn remove(ExpandoColumn expandoColumn)
           
static ExpandoColumn remove(long columnId)
           
static void removeAll()
           
static void removeByT_N(long tableId, java.lang.String name)
           
static void removeByTableId(long tableId)
           
 void setPersistence(ExpandoColumnPersistence persistence)
           
static ExpandoColumn update(ExpandoColumn expandoColumn)
          Deprecated. Use update(ExpandoColumn expandoColumn, boolean merge).
static ExpandoColumn update(ExpandoColumn expandoColumn, boolean merge)
          Add, update, or merge, the entity.
static ExpandoColumn updateImpl(ExpandoColumn expandoColumn, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandoColumnUtil

public ExpandoColumnUtil()
Method Detail

create

public static ExpandoColumn create(long columnId)

remove

public static ExpandoColumn remove(long columnId)
                            throws com.liferay.portal.SystemException,
                                   NoSuchColumnException
Throws:
com.liferay.portal.SystemException
NoSuchColumnException

remove

public static ExpandoColumn remove(ExpandoColumn expandoColumn)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

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

Throws:
com.liferay.portal.SystemException

update

public static ExpandoColumn update(ExpandoColumn expandoColumn,
                                   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:
expandoColumn - 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 expandoColumn 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 ExpandoColumn updateImpl(ExpandoColumn expandoColumn,
                                       boolean merge)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static ExpandoColumn findByPrimaryKey(long columnId)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchColumnException
Throws:
com.liferay.portal.SystemException
NoSuchColumnException

fetchByPrimaryKey

public static ExpandoColumn fetchByPrimaryKey(long columnId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByTableId

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

findByTableId

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

findByTableId

public static java.util.List<ExpandoColumn> 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 ExpandoColumn findByTableId_First(long tableId,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchColumnException
Throws:
com.liferay.portal.SystemException
NoSuchColumnException

findByTableId_Last

public static ExpandoColumn findByTableId_Last(long tableId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchColumnException
Throws:
com.liferay.portal.SystemException
NoSuchColumnException

findByTableId_PrevAndNext

public static ExpandoColumn[] findByTableId_PrevAndNext(long columnId,
                                                        long tableId,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException,
                                                        NoSuchColumnException
Throws:
com.liferay.portal.SystemException
NoSuchColumnException

findByT_N

public static ExpandoColumn findByT_N(long tableId,
                                      java.lang.String name)
                               throws com.liferay.portal.SystemException,
                                      NoSuchColumnException
Throws:
com.liferay.portal.SystemException
NoSuchColumnException

fetchByT_N

public static ExpandoColumn fetchByT_N(long tableId,
                                       java.lang.String name)
                                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<ExpandoColumn> findAll()
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static java.util.List<ExpandoColumn> 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_N

public static void removeByT_N(long tableId,
                               java.lang.String name)
                        throws com.liferay.portal.SystemException,
                               NoSuchColumnException
Throws:
com.liferay.portal.SystemException
NoSuchColumnException

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_N

public static int countByT_N(long tableId,
                             java.lang.String name)
                      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 ExpandoColumnPersistence getPersistence()

setPersistence

public void setPersistence(ExpandoColumnPersistence persistence)