|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.expando.service.persistence.ExpandoTableUtil
public class ExpandoTableUtil
The persistence utility for the expando table service. This utility wraps ExpandoTablePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
ExpandoTablePersistence
,
ExpandoTablePersistenceImpl
Constructor Summary | |
---|---|
ExpandoTableUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(ExpandoTable expandoTable)
Caches the expando table in the entity cache if it is enabled. |
static void |
cacheResult(List<ExpandoTable> expandoTables)
Caches the expando tables in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(ExpandoTable expandoTable)
|
static int |
countAll()
Counts all the expando tables. |
static int |
countByC_C_N(long companyId,
long classNameId,
String name)
Counts all the expando tables where companyId = ? and classNameId = ? and name = ?. |
static int |
countByC_C(long companyId,
long classNameId)
Counts all the expando tables where companyId = ? and classNameId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static ExpandoTable |
create(long tableId)
Creates a new expando table with the primary key. |
static ExpandoTable |
fetchByC_C_N(long companyId,
long classNameId,
String name)
Finds the expando table where companyId = ? and classNameId = ? and name = ? or returns null if it could not be found. |
static ExpandoTable |
fetchByC_C_N(long companyId,
long classNameId,
String name,
boolean retrieveFromCache)
Finds the expando table where companyId = ? and classNameId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
static ExpandoTable |
fetchByPrimaryKey(long tableId)
Finds the expando table with the primary key or returns null if it could not be found. |
static List<ExpandoTable> |
findAll()
Finds all the expando tables. |
static List<ExpandoTable> |
findAll(int start,
int end)
Finds a range of all the expando tables. |
static List<ExpandoTable> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the expando tables. |
static ExpandoTable |
findByC_C_First(long companyId,
long classNameId,
OrderByComparator orderByComparator)
Finds the first expando table in the ordered set where companyId = ? and classNameId = ?. |
static ExpandoTable |
findByC_C_Last(long companyId,
long classNameId,
OrderByComparator orderByComparator)
Finds the last expando table in the ordered set where companyId = ? and classNameId = ?. |
static ExpandoTable |
findByC_C_N(long companyId,
long classNameId,
String name)
Finds the expando table where companyId = ? and classNameId = ? and name = ? or throws a NoSuchTableException if it could not be found. |
static ExpandoTable[] |
findByC_C_PrevAndNext(long tableId,
long companyId,
long classNameId,
OrderByComparator orderByComparator)
Finds the expando tables before and after the current expando table in the ordered set where companyId = ? and classNameId = ?. |
static List<ExpandoTable> |
findByC_C(long companyId,
long classNameId)
Finds all the expando tables where companyId = ? and classNameId = ?. |
static List<ExpandoTable> |
findByC_C(long companyId,
long classNameId,
int start,
int end)
Finds a range of all the expando tables where companyId = ? and classNameId = ?. |
static List<ExpandoTable> |
findByC_C(long companyId,
long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the expando tables where companyId = ? and classNameId = ?. |
static ExpandoTable |
findByPrimaryKey(long tableId)
Finds the expando table with the primary key or throws a NoSuchTableException if it could not be found. |
static List<ExpandoTable> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<ExpandoTable> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<ExpandoTable> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static ExpandoTablePersistence |
getPersistence()
|
static ExpandoTable |
remove(ExpandoTable expandoTable)
|
static ExpandoTable |
remove(long tableId)
Removes the expando table with the primary key from the database. |
static void |
removeAll()
Removes all the expando tables from the database. |
static void |
removeByC_C_N(long companyId,
long classNameId,
String name)
Removes the expando table where companyId = ? and classNameId = ? and name = ? from the database. |
static void |
removeByC_C(long companyId,
long classNameId)
Removes all the expando tables where companyId = ? and classNameId = ? from the database. |
void |
setPersistence(ExpandoTablePersistence persistence)
|
static ExpandoTable |
update(ExpandoTable expandoTable,
boolean merge)
|
static ExpandoTable |
update(ExpandoTable expandoTable,
boolean merge,
ServiceContext serviceContext)
|
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 |
Constructor Detail |
---|
public ExpandoTableUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ExpandoTable expandoTable)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<ExpandoTable> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ExpandoTable> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ExpandoTable> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ExpandoTable remove(ExpandoTable expandoTable) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static ExpandoTable update(ExpandoTable expandoTable, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static ExpandoTable update(ExpandoTable expandoTable, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(ExpandoTable expandoTable)
expandoTable
- the expando table to cachepublic static void cacheResult(List<ExpandoTable> expandoTables)
expandoTables
- the expando tables to cachepublic static ExpandoTable create(long tableId)
tableId
- the primary key for the new expando table
public static ExpandoTable remove(long tableId) throws SystemException, NoSuchTableException
tableId
- the primary key of the expando table to remove
NoSuchTableException
- if a expando table with the primary key could not be found
SystemException
- if a system exception occurredpublic static ExpandoTable updateImpl(ExpandoTable expandoTable, boolean merge) throws SystemException
SystemException
public static ExpandoTable findByPrimaryKey(long tableId) throws SystemException, NoSuchTableException
NoSuchTableException
if it could not be found.
tableId
- the primary key of the expando table to find
NoSuchTableException
- if a expando table with the primary key could not be found
SystemException
- if a system exception occurredpublic static ExpandoTable fetchByPrimaryKey(long tableId) throws SystemException
null
if it could not be found.
tableId
- the primary key of the expando table to find
null
if a expando table with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ExpandoTable> findByC_C(long companyId, long classNameId) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static List<ExpandoTable> findByC_C(long companyId, long classNameId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
companyId
- the company id to search withclassNameId
- the class name id to search withstart
- the lower bound of the range of expando tables to returnend
- the upper bound of the range of expando tables to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<ExpandoTable> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
companyId
- the company id to search withclassNameId
- the class name id to search withstart
- the lower bound of the range of expando tables to returnend
- the upper bound of the range of expando tables to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static ExpandoTable findByC_C_First(long companyId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchTableException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
companyId
- the company id to search withclassNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchTableException
- if a matching expando table could not be found
SystemException
- if a system exception occurredpublic static ExpandoTable findByC_C_Last(long companyId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchTableException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
companyId
- the company id to search withclassNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchTableException
- if a matching expando table could not be found
SystemException
- if a system exception occurredpublic static ExpandoTable[] findByC_C_PrevAndNext(long tableId, long companyId, long classNameId, OrderByComparator orderByComparator) throws SystemException, NoSuchTableException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
tableId
- the primary key of the current expando tablecompanyId
- the company id to search withclassNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchTableException
- if a expando table with the primary key could not be found
SystemException
- if a system exception occurredpublic static ExpandoTable findByC_C_N(long companyId, long classNameId, String name) throws SystemException, NoSuchTableException
NoSuchTableException
if it could not be found.
companyId
- the company id to search withclassNameId
- the class name id to search withname
- the name to search with
NoSuchTableException
- if a matching expando table could not be found
SystemException
- if a system exception occurredpublic static ExpandoTable fetchByC_C_N(long companyId, long classNameId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company id to search withclassNameId
- the class name id to search withname
- the name to search with
null
if a matching expando table could not be found
SystemException
- if a system exception occurredpublic static ExpandoTable fetchByC_C_N(long companyId, long classNameId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
companyId
- the company id to search withclassNameId
- the class name id to search withname
- the name to search with
null
if a matching expando table could not be found
SystemException
- if a system exception occurredpublic static List<ExpandoTable> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<ExpandoTable> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of expando tables to returnend
- the upper bound of the range of expando tables to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<ExpandoTable> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of expando tables to returnend
- the upper bound of the range of expando tables to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByC_C(long companyId, long classNameId) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static void removeByC_C_N(long companyId, long classNameId, String name) throws SystemException, NoSuchTableException
companyId
- the company id to search withclassNameId
- the class name id to search withname
- the name to search with
SystemException
- if a system exception occurred
NoSuchTableException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByC_C(long companyId, long classNameId) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static int countByC_C_N(long companyId, long classNameId, String name) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withname
- the name to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static ExpandoTablePersistence getPersistence()
public void setPersistence(ExpandoTablePersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |