com.liferay.portlet.expando.service.persistence
Class ExpandoTableUtil
java.lang.Object
com.liferay.portlet.expando.service.persistence.ExpandoTableUtil
public class ExpandoTableUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
cacheResult(ExpandoTable expandoTable)
|
static void |
cacheResult(java.util.List<ExpandoTable> expandoTables)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countByC_N(long classNameId,
java.lang.String name)
|
static int |
countByClassNameId(long classNameId)
|
static ExpandoTable |
create(long tableId)
|
static ExpandoTable |
fetchByC_N(long classNameId,
java.lang.String name)
|
static ExpandoTable |
fetchByC_N(long classNameId,
java.lang.String name,
boolean retrieveFromCache)
|
static ExpandoTable |
fetchByPrimaryKey(long tableId)
|
static java.util.List<ExpandoTable> |
findAll()
|
static java.util.List<ExpandoTable> |
findAll(int start,
int end)
|
static java.util.List<ExpandoTable> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ExpandoTable |
findByC_N(long classNameId,
java.lang.String name)
|
static ExpandoTable |
findByClassNameId_First(long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ExpandoTable |
findByClassNameId_Last(long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ExpandoTable[] |
findByClassNameId_PrevAndNext(long tableId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<ExpandoTable> |
findByClassNameId(long classNameId)
|
static java.util.List<ExpandoTable> |
findByClassNameId(long classNameId,
int start,
int end)
|
static java.util.List<ExpandoTable> |
findByClassNameId(long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ExpandoTable |
findByPrimaryKey(long tableId)
|
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 ExpandoTablePersistence |
getPersistence()
|
static ExpandoTable |
remove(ExpandoTable expandoTable)
|
static ExpandoTable |
remove(long tableId)
|
static void |
removeAll()
|
static void |
removeByC_N(long classNameId,
java.lang.String name)
|
static void |
removeByClassNameId(long classNameId)
|
void |
setPersistence(ExpandoTablePersistence persistence)
|
static ExpandoTable |
update(ExpandoTable expandoTable)
Deprecated. Use update(ExpandoTable expandoTable, boolean merge) . |
static ExpandoTable |
update(ExpandoTable expandoTable,
boolean merge)
Add, update, or merge, the entity. |
static ExpandoTable |
updateImpl(ExpandoTable expandoTable,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpandoTableUtil
public ExpandoTableUtil()
cacheResult
public static void cacheResult(ExpandoTable expandoTable)
cacheResult
public static void cacheResult(java.util.List<ExpandoTable> expandoTables)
clearCache
public static void clearCache()
create
public static ExpandoTable create(long tableId)
remove
public static ExpandoTable remove(long tableId)
throws com.liferay.portal.SystemException,
NoSuchTableException
- Throws:
com.liferay.portal.SystemException
NoSuchTableException
remove
public static ExpandoTable remove(ExpandoTable expandoTable)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static ExpandoTable update(ExpandoTable expandoTable)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(ExpandoTable expandoTable, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static ExpandoTable update(ExpandoTable expandoTable,
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:
expandoTable
- the entity to add, update, or mergemerge
- 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 expandoTable 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 ExpandoTable updateImpl(ExpandoTable expandoTable,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static ExpandoTable findByPrimaryKey(long tableId)
throws com.liferay.portal.SystemException,
NoSuchTableException
- Throws:
com.liferay.portal.SystemException
NoSuchTableException
fetchByPrimaryKey
public static ExpandoTable fetchByPrimaryKey(long tableId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByClassNameId
public static java.util.List<ExpandoTable> findByClassNameId(long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByClassNameId
public static java.util.List<ExpandoTable> findByClassNameId(long classNameId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByClassNameId
public static java.util.List<ExpandoTable> findByClassNameId(long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByClassNameId_First
public static ExpandoTable findByClassNameId_First(long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchTableException
- Throws:
com.liferay.portal.SystemException
NoSuchTableException
findByClassNameId_Last
public static ExpandoTable findByClassNameId_Last(long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchTableException
- Throws:
com.liferay.portal.SystemException
NoSuchTableException
findByClassNameId_PrevAndNext
public static ExpandoTable[] findByClassNameId_PrevAndNext(long tableId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchTableException
- Throws:
com.liferay.portal.SystemException
NoSuchTableException
findByC_N
public static ExpandoTable findByC_N(long classNameId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchTableException
- Throws:
com.liferay.portal.SystemException
NoSuchTableException
fetchByC_N
public static ExpandoTable fetchByC_N(long classNameId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByC_N
public static ExpandoTable fetchByC_N(long classNameId,
java.lang.String name,
boolean retrieveFromCache)
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<ExpandoTable> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<ExpandoTable> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<ExpandoTable> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByClassNameId
public static void removeByClassNameId(long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_N
public static void removeByC_N(long classNameId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchTableException
- Throws:
com.liferay.portal.SystemException
NoSuchTableException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByClassNameId
public static int countByClassNameId(long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_N
public static int countByC_N(long classNameId,
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 ExpandoTablePersistence getPersistence()
setPersistence
public void setPersistence(ExpandoTablePersistence persistence)