|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LayoutPrototypePersistence
The persistence interface for the layout prototype service.
Never modify this interface directly. Modify service.xml and rerun ServiceBuilder to regnerate this interface.
LayoutPrototypePersistenceImpl,
LayoutPrototypeUtil| Method Summary | |
|---|---|
void |
cacheResult(LayoutPrototype layoutPrototype)
Caches the layout prototype in the entity cache if it is enabled. |
void |
cacheResult(List<LayoutPrototype> layoutPrototypes)
Caches the layout prototypes in the entity cache if it is enabled. |
int |
countAll()
Counts all the layout prototypes. |
int |
countByC_A(long companyId,
boolean active)
Counts all the layout prototypes where companyId = ? and active = ?. |
int |
countByCompanyId(long companyId)
Counts all the layout prototypes where companyId = ?. |
LayoutPrototype |
create(long layoutPrototypeId)
Creates a new layout prototype with the primary key. |
LayoutPrototype |
fetchByPrimaryKey(long layoutPrototypeId)
Finds the layout prototype with the primary key or returns null if it could not be found. |
List<LayoutPrototype> |
findAll()
Finds all the layout prototypes. |
List<LayoutPrototype> |
findAll(int start,
int end)
Finds a range of all the layout prototypes. |
List<LayoutPrototype> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the layout prototypes. |
LayoutPrototype |
findByC_A_First(long companyId,
boolean active,
OrderByComparator orderByComparator)
Finds the first layout prototype in the ordered set where companyId = ? and active = ?. |
LayoutPrototype |
findByC_A_Last(long companyId,
boolean active,
OrderByComparator orderByComparator)
Finds the last layout prototype in the ordered set where companyId = ? and active = ?. |
LayoutPrototype[] |
findByC_A_PrevAndNext(long layoutPrototypeId,
long companyId,
boolean active,
OrderByComparator orderByComparator)
Finds the layout prototypes before and after the current layout prototype in the ordered set where companyId = ? and active = ?. |
List<LayoutPrototype> |
findByC_A(long companyId,
boolean active)
Finds all the layout prototypes where companyId = ? and active = ?. |
List<LayoutPrototype> |
findByC_A(long companyId,
boolean active,
int start,
int end)
Finds a range of all the layout prototypes where companyId = ? and active = ?. |
List<LayoutPrototype> |
findByC_A(long companyId,
boolean active,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the layout prototypes where companyId = ? and active = ?. |
LayoutPrototype |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first layout prototype in the ordered set where companyId = ?. |
LayoutPrototype |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last layout prototype in the ordered set where companyId = ?. |
LayoutPrototype[] |
findByCompanyId_PrevAndNext(long layoutPrototypeId,
long companyId,
OrderByComparator orderByComparator)
Finds the layout prototypes before and after the current layout prototype in the ordered set where companyId = ?. |
List<LayoutPrototype> |
findByCompanyId(long companyId)
Finds all the layout prototypes where companyId = ?. |
List<LayoutPrototype> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the layout prototypes where companyId = ?. |
List<LayoutPrototype> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the layout prototypes where companyId = ?. |
LayoutPrototype |
findByPrimaryKey(long layoutPrototypeId)
Finds the layout prototype with the primary key or throws a NoSuchLayoutPrototypeException if it could not be found. |
LayoutPrototype |
remove(long layoutPrototypeId)
Removes the layout prototype with the primary key from the database. |
void |
removeAll()
Removes all the layout prototypes from the database. |
void |
removeByC_A(long companyId,
boolean active)
Removes all the layout prototypes where companyId = ? and active = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the layout prototypes where companyId = ? from the database. |
LayoutPrototype |
updateImpl(LayoutPrototype layoutPrototype,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(LayoutPrototype layoutPrototype)
layoutPrototype - the layout prototype to cachevoid cacheResult(List<LayoutPrototype> layoutPrototypes)
layoutPrototypes - the layout prototypes to cacheLayoutPrototype create(long layoutPrototypeId)
layoutPrototypeId - the primary key for the new layout prototype
LayoutPrototype remove(long layoutPrototypeId)
throws NoSuchLayoutPrototypeException,
SystemException
layoutPrototypeId - the primary key of the layout prototype to remove
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred
LayoutPrototype updateImpl(LayoutPrototype layoutPrototype,
boolean merge)
throws SystemException
SystemException
LayoutPrototype findByPrimaryKey(long layoutPrototypeId)
throws NoSuchLayoutPrototypeException,
SystemException
NoSuchLayoutPrototypeException if it could not be found.
layoutPrototypeId - the primary key of the layout prototype to find
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred
LayoutPrototype fetchByPrimaryKey(long layoutPrototypeId)
throws SystemException
null if it could not be found.
layoutPrototypeId - the primary key of the layout prototype to find
null if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred
List<LayoutPrototype> findByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
List<LayoutPrototype> findByCompanyId(long companyId,
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 withstart - the lower bound of the range of layout prototypes to returnend - the upper bound of the range of layout prototypes to return (not inclusive)
SystemException - if a system exception occurred
List<LayoutPrototype> findByCompanyId(long companyId,
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 withstart - the lower bound of the range of layout prototypes to returnend - the upper bound of the range of layout prototypes to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
LayoutPrototype findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws NoSuchLayoutPrototypeException,
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 withorderByComparator - the comparator to order the set by
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred
LayoutPrototype findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws NoSuchLayoutPrototypeException,
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 withorderByComparator - the comparator to order the set by
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred
LayoutPrototype[] findByCompanyId_PrevAndNext(long layoutPrototypeId,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchLayoutPrototypeException,
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.
layoutPrototypeId - the primary key of the current layout prototypecompanyId - the company id to search withorderByComparator - the comparator to order the set by
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred
List<LayoutPrototype> findByC_A(long companyId,
boolean active)
throws SystemException
companyId - the company id to search withactive - the active to search with
SystemException - if a system exception occurred
List<LayoutPrototype> findByC_A(long companyId,
boolean active,
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 withactive - the active to search withstart - the lower bound of the range of layout prototypes to returnend - the upper bound of the range of layout prototypes to return (not inclusive)
SystemException - if a system exception occurred
List<LayoutPrototype> findByC_A(long companyId,
boolean active,
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 withactive - the active to search withstart - the lower bound of the range of layout prototypes to returnend - the upper bound of the range of layout prototypes to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
LayoutPrototype findByC_A_First(long companyId,
boolean active,
OrderByComparator orderByComparator)
throws NoSuchLayoutPrototypeException,
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 withactive - the active to search withorderByComparator - the comparator to order the set by
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred
LayoutPrototype findByC_A_Last(long companyId,
boolean active,
OrderByComparator orderByComparator)
throws NoSuchLayoutPrototypeException,
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 withactive - the active to search withorderByComparator - the comparator to order the set by
NoSuchLayoutPrototypeException - if a matching layout prototype could not be found
SystemException - if a system exception occurred
LayoutPrototype[] findByC_A_PrevAndNext(long layoutPrototypeId,
long companyId,
boolean active,
OrderByComparator orderByComparator)
throws NoSuchLayoutPrototypeException,
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.
layoutPrototypeId - the primary key of the current layout prototypecompanyId - the company id to search withactive - the active to search withorderByComparator - the comparator to order the set by
NoSuchLayoutPrototypeException - if a layout prototype with the primary key could not be found
SystemException - if a system exception occurred
List<LayoutPrototype> findAll()
throws SystemException
SystemException - if a system exception occurred
List<LayoutPrototype> 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 layout prototypes to returnend - the upper bound of the range of layout prototypes to return (not inclusive)
SystemException - if a system exception occurred
List<LayoutPrototype> 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 layout prototypes to returnend - the upper bound of the range of layout prototypes to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
void removeByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
void removeByC_A(long companyId,
boolean active)
throws SystemException
companyId - the company id to search withactive - the active to search with
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
int countByC_A(long companyId,
boolean active)
throws SystemException
companyId - the company id to search withactive - the active to search with
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||