|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LayoutSetPersistence
The persistence interface for the layout set service.
Caching information and settings can be found in portal.properties
LayoutSetPersistenceImpl,
LayoutSetUtil| Method Summary | |
|---|---|
void |
cacheResult(LayoutSet layoutSet)
Caches the layout set in the entity cache if it is enabled. |
void |
cacheResult(List<LayoutSet> layoutSets)
Caches the layout sets in the entity cache if it is enabled. |
int |
countAll()
Returns the number of layout sets. |
int |
countByG_P(long groupId,
boolean privateLayout)
Returns the number of layout sets where groupId = ? and privateLayout = ?. |
int |
countByGroupId(long groupId)
Returns the number of layout sets where groupId = ?. |
int |
countByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
Returns the number of layout sets where layoutSetPrototypeUuid = ?. |
LayoutSet |
create(long layoutSetId)
Creates a new layout set with the primary key. |
LayoutSet |
fetchByG_P(long groupId,
boolean privateLayout)
Returns the layout set where groupId = ? and privateLayout = ? or returns null if it could not be found. |
LayoutSet |
fetchByG_P(long groupId,
boolean privateLayout,
boolean retrieveFromCache)
Returns the layout set where groupId = ? and privateLayout = ? or returns null if it could not be found, optionally using the finder cache. |
LayoutSet |
fetchByPrimaryKey(long layoutSetId)
Returns the layout set with the primary key or returns null if it could not be found. |
List<LayoutSet> |
findAll()
Returns all the layout sets. |
List<LayoutSet> |
findAll(int start,
int end)
Returns a range of all the layout sets. |
List<LayoutSet> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the layout sets. |
LayoutSet |
findByG_P(long groupId,
boolean privateLayout)
Returns the layout set where groupId = ? and privateLayout = ? or throws a NoSuchLayoutSetException if it could not be found. |
LayoutSet |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first layout set in the ordered set where groupId = ?. |
LayoutSet |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last layout set in the ordered set where groupId = ?. |
LayoutSet[] |
findByGroupId_PrevAndNext(long layoutSetId,
long groupId,
OrderByComparator orderByComparator)
Returns the layout sets before and after the current layout set in the ordered set where groupId = ?. |
List<LayoutSet> |
findByGroupId(long groupId)
Returns all the layout sets where groupId = ?. |
List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the layout sets where groupId = ?. |
List<LayoutSet> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the layout sets where groupId = ?. |
LayoutSet |
findByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?. |
LayoutSet |
findByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?. |
LayoutSet[] |
findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId,
String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?. |
List<LayoutSet> |
findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
Returns all the layout sets where layoutSetPrototypeUuid = ?. |
List<LayoutSet> |
findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
int start,
int end)
Returns a range of all the layout sets where layoutSetPrototypeUuid = ?. |
List<LayoutSet> |
findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?. |
LayoutSet |
findByPrimaryKey(long layoutSetId)
Returns the layout set with the primary key or throws a NoSuchLayoutSetException if it could not be found. |
LayoutSet |
remove(LayoutSet layoutSet)
Removes the model instance from the database. |
LayoutSet |
remove(long layoutSetId)
Removes the layout set with the primary key from the database. |
void |
removeAll()
Removes all the layout sets from the database. |
void |
removeByG_P(long groupId,
boolean privateLayout)
Removes the layout set where groupId = ? and privateLayout = ? from the database. |
void |
removeByGroupId(long groupId)
Removes all the layout sets where groupId = ? from the database. |
void |
removeByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
Removes all the layout sets where layoutSetPrototypeUuid = ? from the database. |
LayoutSet |
updateImpl(LayoutSet layoutSet,
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(LayoutSet layoutSet)
layoutSet - the layout setvoid cacheResult(List<LayoutSet> layoutSets)
layoutSets - the layout setsLayoutSet create(long layoutSetId)
layoutSetId - the primary key for the new layout set
LayoutSet remove(long layoutSetId)
throws NoSuchLayoutSetException,
SystemException
layoutSetId - the primary key of the layout set
NoSuchLayoutSetException - if a layout set with the primary key could not be found
SystemException - if a system exception occurred
LayoutSet updateImpl(LayoutSet layoutSet,
boolean merge)
throws SystemException
SystemException
LayoutSet findByPrimaryKey(long layoutSetId)
throws NoSuchLayoutSetException,
SystemException
NoSuchLayoutSetException if it could not be found.
layoutSetId - the primary key of the layout set
NoSuchLayoutSetException - if a layout set with the primary key could not be found
SystemException - if a system exception occurred
LayoutSet fetchByPrimaryKey(long layoutSetId)
throws SystemException
null if it could not be found.
layoutSetId - the primary key of the layout set
null if a layout set with the primary key could not be found
SystemException - if a system exception occurred
List<LayoutSet> findByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
List<LayoutSet> findByGroupId(long groupId,
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.
groupId - the group IDstart - the lower bound of the range of layout setsend - the upper bound of the range of layout sets (not inclusive)
SystemException - if a system exception occurred
List<LayoutSet> findByGroupId(long groupId,
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.
groupId - the group IDstart - the lower bound of the range of layout setsend - the upper bound of the range of layout sets (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
LayoutSet findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws NoSuchLayoutSetException,
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.
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred
LayoutSet findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws NoSuchLayoutSetException,
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.
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred
LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchLayoutSetException,
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.
layoutSetId - the primary key of the current layout setgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchLayoutSetException - if a layout set with the primary key could not be found
SystemException - if a system exception occurred
List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
throws SystemException
layoutSetPrototypeUuid - the layout set prototype uuid
SystemException - if a system exception occurred
List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
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.
layoutSetPrototypeUuid - the layout set prototype uuidstart - the lower bound of the range of layout setsend - the upper bound of the range of layout sets (not inclusive)
SystemException - if a system exception occurred
List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
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.
layoutSetPrototypeUuid - the layout set prototype uuidstart - the lower bound of the range of layout setsend - the upper bound of the range of layout sets (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
LayoutSet findByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
throws NoSuchLayoutSetException,
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.
layoutSetPrototypeUuid - the layout set prototype uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred
LayoutSet findByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
throws NoSuchLayoutSetException,
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.
layoutSetPrototypeUuid - the layout set prototype uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred
LayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId,
String layoutSetPrototypeUuid,
OrderByComparator orderByComparator)
throws NoSuchLayoutSetException,
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.
layoutSetId - the primary key of the current layout setlayoutSetPrototypeUuid - the layout set prototype uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchLayoutSetException - if a layout set with the primary key could not be found
SystemException - if a system exception occurred
LayoutSet findByG_P(long groupId,
boolean privateLayout)
throws NoSuchLayoutSetException,
SystemException
NoSuchLayoutSetException if it could not be found.
groupId - the group IDprivateLayout - the private layout
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred
LayoutSet fetchByG_P(long groupId,
boolean privateLayout)
throws SystemException
null if it could not be found. Uses the finder cache.
groupId - the group IDprivateLayout - the private layout
null if a matching layout set could not be found
SystemException - if a system exception occurred
LayoutSet fetchByG_P(long groupId,
boolean privateLayout,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
groupId - the group IDprivateLayout - the private layoutretrieveFromCache - whether to use the finder cache
null if a matching layout set could not be found
SystemException - if a system exception occurred
List<LayoutSet> findAll()
throws SystemException
SystemException - if a system exception occurred
List<LayoutSet> 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 setsend - the upper bound of the range of layout sets (not inclusive)
SystemException - if a system exception occurred
List<LayoutSet> 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 setsend - the upper bound of the range of layout sets (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
void removeByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
throws SystemException
layoutSetPrototypeUuid - the layout set prototype uuid
SystemException - if a system exception occurred
void removeByG_P(long groupId,
boolean privateLayout)
throws NoSuchLayoutSetException,
SystemException
groupId - the group IDprivateLayout - the private layout
SystemException - if a system exception occurred
NoSuchLayoutSetException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
int countByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
throws SystemException
layoutSetPrototypeUuid - the layout set prototype uuid
SystemException - if a system exception occurred
int countByG_P(long groupId,
boolean privateLayout)
throws SystemException
groupId - the group IDprivateLayout - the private layout
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
LayoutSet remove(LayoutSet layoutSet)
throws SystemException
BasePersistence
remove in interface BasePersistence<LayoutSet>layoutSet - the model instance to remove
SystemException - if a system exception occurred
|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||