|
Liferay 6.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExpandoTablePersistence
The persistence interface for the expando table service.
Caching information and settings can be found in portal.properties
ExpandoTablePersistenceImpl,
ExpandoTableUtil| Method Summary | |
|---|---|
void |
cacheResult(ExpandoTable expandoTable)
Caches the expando table in the entity cache if it is enabled. |
void |
cacheResult(List<ExpandoTable> expandoTables)
Caches the expando tables in the entity cache if it is enabled. |
int |
countAll()
Returns the number of expando tables. |
int |
countByC_C_N(long companyId,
long classNameId,
String name)
Returns the number of expando tables where companyId = ? and classNameId = ? and name = ?. |
int |
countByC_C(long companyId,
long classNameId)
Returns the number of expando tables where companyId = ? and classNameId = ?. |
ExpandoTable |
create(long tableId)
Creates a new expando table with the primary key. |
ExpandoTable |
fetchByC_C_N(long companyId,
long classNameId,
String name)
Returns the expando table where companyId = ? and classNameId = ? and name = ? or returns null if it could not be found. |
ExpandoTable |
fetchByC_C_N(long companyId,
long classNameId,
String name,
boolean retrieveFromCache)
Returns the expando table where companyId = ? and classNameId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
ExpandoTable |
fetchByPrimaryKey(long tableId)
Returns the expando table with the primary key or returns null if it could not be found. |
List<ExpandoTable> |
findAll()
Returns all the expando tables. |
List<ExpandoTable> |
findAll(int start,
int end)
Returns a range of all the expando tables. |
List<ExpandoTable> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the expando tables. |
ExpandoTable |
findByC_C_First(long companyId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first expando table in the ordered set where companyId = ? and classNameId = ?. |
ExpandoTable |
findByC_C_Last(long companyId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last expando table in the ordered set where companyId = ? and classNameId = ?. |
ExpandoTable |
findByC_C_N(long companyId,
long classNameId,
String name)
Returns the expando table where companyId = ? and classNameId = ? and name = ? or throws a NoSuchTableException if it could not be found. |
ExpandoTable[] |
findByC_C_PrevAndNext(long tableId,
long companyId,
long classNameId,
OrderByComparator orderByComparator)
Returns the expando tables before and after the current expando table in the ordered set where companyId = ? and classNameId = ?. |
List<ExpandoTable> |
findByC_C(long companyId,
long classNameId)
Returns all the expando tables where companyId = ? and classNameId = ?. |
List<ExpandoTable> |
findByC_C(long companyId,
long classNameId,
int start,
int end)
Returns a range of all the expando tables where companyId = ? and classNameId = ?. |
List<ExpandoTable> |
findByC_C(long companyId,
long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the expando tables where companyId = ? and classNameId = ?. |
ExpandoTable |
findByPrimaryKey(long tableId)
Returns the expando table with the primary key or throws a NoSuchTableException if it could not be found. |
ExpandoTable |
remove(ExpandoTable expandoTable)
Removes the model instance from the database. |
ExpandoTable |
remove(long tableId)
Removes the expando table with the primary key from the database. |
void |
removeAll()
Removes all the expando tables from the database. |
void |
removeByC_C_N(long companyId,
long classNameId,
String name)
Removes the expando table where companyId = ? and classNameId = ? and name = ? from the database. |
void |
removeByC_C(long companyId,
long classNameId)
Removes all the expando tables where companyId = ? and classNameId = ? from the database. |
ExpandoTable |
updateImpl(ExpandoTable expandoTable,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(ExpandoTable expandoTable)
expandoTable - the expando tablevoid cacheResult(List<ExpandoTable> expandoTables)
expandoTables - the expando tablesExpandoTable create(long tableId)
tableId - the primary key for the new expando table
ExpandoTable remove(long tableId)
throws SystemException,
NoSuchTableException
tableId - the primary key of the expando table
NoSuchTableException - if a expando table with the primary key could not be found
SystemException - if a system exception occurred
ExpandoTable updateImpl(ExpandoTable expandoTable,
boolean merge)
throws SystemException
SystemException
ExpandoTable findByPrimaryKey(long tableId)
throws SystemException,
NoSuchTableException
NoSuchTableException if it could not be found.
tableId - the primary key of the expando table
NoSuchTableException - if a expando table with the primary key could not be found
SystemException - if a system exception occurred
ExpandoTable fetchByPrimaryKey(long tableId)
throws SystemException
null if it could not be found.
tableId - the primary key of the expando table
null if a expando table with the primary key could not be found
SystemException - if a system exception occurred
List<ExpandoTable> findByC_C(long companyId,
long classNameId)
throws SystemException
companyId - the company IDclassNameId - the class name ID
SystemException - if a system exception occurred
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 IDclassNameId - the class name IDstart - the lower bound of the range of expando tablesend - the upper bound of the range of expando tables (not inclusive)
SystemException - if a system exception occurred
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 IDclassNameId - the class name IDstart - the lower bound of the range of expando tablesend - the upper bound of the range of expando tables (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
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 IDclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTableException - if a matching expando table could not be found
SystemException - if a system exception occurred
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 IDclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTableException - if a matching expando table could not be found
SystemException - if a system exception occurred
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 IDclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTableException - if a expando table with the primary key could not be found
SystemException - if a system exception occurred
ExpandoTable findByC_C_N(long companyId,
long classNameId,
String name)
throws SystemException,
NoSuchTableException
NoSuchTableException if it could not be found.
companyId - the company IDclassNameId - the class name IDname - the name
NoSuchTableException - if a matching expando table could not be found
SystemException - if a system exception occurred
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 IDclassNameId - the class name IDname - the name
null if a matching expando table could not be found
SystemException - if a system exception occurred
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 IDclassNameId - the class name IDname - the nameretrieveFromCache - whether to use the finder cache
null if a matching expando table could not be found
SystemException - if a system exception occurred
List<ExpandoTable> findAll()
throws SystemException
SystemException - if a system exception occurred
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 tablesend - the upper bound of the range of expando tables (not inclusive)
SystemException - if a system exception occurred
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 tablesend - the upper bound of the range of expando tables (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeByC_C(long companyId,
long classNameId)
throws SystemException
companyId - the company IDclassNameId - the class name ID
SystemException - if a system exception occurred
void removeByC_C_N(long companyId,
long classNameId,
String name)
throws SystemException,
NoSuchTableException
companyId - the company IDclassNameId - the class name IDname - the name
SystemException - if a system exception occurred
NoSuchTableException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByC_C(long companyId,
long classNameId)
throws SystemException
companyId - the company IDclassNameId - the class name ID
SystemException - if a system exception occurred
int countByC_C_N(long companyId,
long classNameId,
String name)
throws SystemException
companyId - the company IDclassNameId - the class name IDname - the name
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
ExpandoTable remove(ExpandoTable expandoTable)
throws SystemException
BasePersistence
remove in interface BasePersistence<ExpandoTable>expandoTable - the model instance to remove
SystemException - if a system exception occurred
|
Liferay 6.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||