Interface PortletItemPersistence
- All Superinterfaces:
BasePersistence<PortletItem>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(PortletItem portletItem) Caches the portlet item in the entity cache if it is enabled.void
cacheResult
(List<PortletItem> portletItems) Caches the portlet items in the entity cache if it is enabled.int
countAll()
Returns the number of portlet items.int
countByG_C
(long groupId, long classNameId) Returns the number of portlet items where groupId = ? and classNameId = ?.int
countByG_N_P_C
(long groupId, String name, String portletId, long classNameId) Returns the number of portlet items where groupId = ? and name = ? and portletId = ? and classNameId = ?.int
countByG_P_C
(long groupId, String portletId, long classNameId) Returns the number of portlet items where groupId = ? and portletId = ? and classNameId = ?.create
(long portletItemId) Creates a new portlet item with the primary key.fetchByG_C_First
(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?.fetchByG_C_Last
(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?.fetchByG_N_P_C
(long groupId, String name, String portletId, long classNameId) Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returnsnull
if it could not be found.fetchByG_N_P_C
(long groupId, String name, String portletId, long classNameId, boolean useFinderCache) Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByG_P_C_First
(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.fetchByG_P_C_Last
(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.fetchByPrimaryKey
(long portletItemId) Returns the portlet item with the primary key or returnsnull
if it could not be found.findAll()
Returns all the portlet items.findAll
(int start, int end) Returns a range of all the portlet items.findAll
(int start, int end, OrderByComparator<PortletItem> orderByComparator) Returns an ordered range of all the portlet items.findAll
(int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portlet items.findByG_C
(long groupId, long classNameId) Returns all the portlet items where groupId = ? and classNameId = ?.findByG_C
(long groupId, long classNameId, int start, int end) Returns a range of all the portlet items where groupId = ? and classNameId = ?.findByG_C
(long groupId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator) Returns an ordered range of all the portlet items where groupId = ? and classNameId = ?.findByG_C
(long groupId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portlet items where groupId = ? and classNameId = ?.findByG_C_First
(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?.findByG_C_Last
(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?.findByG_C_PrevAndNext
(long portletItemId, long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and classNameId = ?.findByG_N_P_C
(long groupId, String name, String portletId, long classNameId) Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or throws aNoSuchPortletItemException
if it could not be found.findByG_P_C
(long groupId, String portletId, long classNameId) Returns all the portlet items where groupId = ? and portletId = ? and classNameId = ?.findByG_P_C
(long groupId, String portletId, long classNameId, int start, int end) Returns a range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.findByG_P_C
(long groupId, String portletId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator) Returns an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.findByG_P_C
(long groupId, String portletId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.findByG_P_C_First
(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.findByG_P_C_Last
(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.findByG_P_C_PrevAndNext
(long portletItemId, long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.findByPrimaryKey
(long portletItemId) Returns the portlet item with the primary key or throws aNoSuchPortletItemException
if it could not be found.remove
(long portletItemId) Removes the portlet item with the primary key from the database.void
Removes all the portlet items from the database.void
removeByG_C
(long groupId, long classNameId) Removes all the portlet items where groupId = ? and classNameId = ? from the database.removeByG_N_P_C
(long groupId, String name, String portletId, long classNameId) Removes the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? from the database.void
removeByG_P_C
(long groupId, String portletId, long classNameId) Removes all the portlet items where groupId = ? and portletId = ? and classNameId = ? from the database.updateImpl
(PortletItem portletItem) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByG_C
Returns all the portlet items where groupId = ? and classNameId = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name ID- Returns:
- the matching portlet items
-
findByG_C
Returns a range of all the portlet items where groupId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)- Returns:
- the range of matching portlet items
-
findByG_C
List<PortletItem> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator) Returns an ordered range of all the portlet items where groupId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching portlet items
-
findByG_C
List<PortletItem> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portlet items where groupId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portlet items
-
findByG_C_First
PortletItem findByG_C_First(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet item
- Throws:
NoSuchPortletItemException
- if a matching portlet item could not be found
-
fetchByG_C_First
PortletItem fetchByG_C_First(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet item, or
null
if a matching portlet item could not be found
-
findByG_C_Last
PortletItem findByG_C_Last(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet item
- Throws:
NoSuchPortletItemException
- if a matching portlet item could not be found
-
fetchByG_C_Last
PortletItem fetchByG_C_Last(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet item, or
null
if a matching portlet item could not be found
-
findByG_C_PrevAndNext
PortletItem[] findByG_C_PrevAndNext(long portletItemId, long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and classNameId = ?.- Parameters:
portletItemId
- the primary key of the current portlet itemgroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next portlet item
- Throws:
NoSuchPortletItemException
- if a portlet item with the primary key could not be found
-
removeByG_C
void removeByG_C(long groupId, long classNameId) Removes all the portlet items where groupId = ? and classNameId = ? from the database.- Parameters:
groupId
- the group IDclassNameId
- the class name ID
-
countByG_C
int countByG_C(long groupId, long classNameId) Returns the number of portlet items where groupId = ? and classNameId = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name ID- Returns:
- the number of matching portlet items
-
findByG_P_C
Returns all the portlet items where groupId = ? and portletId = ? and classNameId = ?.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name ID- Returns:
- the matching portlet items
-
findByG_P_C
Returns a range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)- Returns:
- the range of matching portlet items
-
findByG_P_C
List<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator) Returns an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching portlet items
-
findByG_P_C
List<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portlet items
-
findByG_P_C_First
PortletItem findByG_P_C_First(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet item
- Throws:
NoSuchPortletItemException
- if a matching portlet item could not be found
-
fetchByG_P_C_First
PortletItem fetchByG_P_C_First(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet item, or
null
if a matching portlet item could not be found
-
findByG_P_C_Last
PortletItem findByG_P_C_Last(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet item
- Throws:
NoSuchPortletItemException
- if a matching portlet item could not be found
-
fetchByG_P_C_Last
PortletItem fetchByG_P_C_Last(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet item, or
null
if a matching portlet item could not be found
-
findByG_P_C_PrevAndNext
PortletItem[] findByG_P_C_PrevAndNext(long portletItemId, long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.- Parameters:
portletItemId
- the primary key of the current portlet itemgroupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next portlet item
- Throws:
NoSuchPortletItemException
- if a portlet item with the primary key could not be found
-
removeByG_P_C
Removes all the portlet items where groupId = ? and portletId = ? and classNameId = ? from the database.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name ID
-
countByG_P_C
Returns the number of portlet items where groupId = ? and portletId = ? and classNameId = ?.- Parameters:
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name ID- Returns:
- the number of matching portlet items
-
findByG_N_P_C
PortletItem findByG_N_P_C(long groupId, String name, String portletId, long classNameId) throws NoSuchPortletItemException Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or throws aNoSuchPortletItemException
if it could not be found.- Parameters:
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name ID- Returns:
- the matching portlet item
- Throws:
NoSuchPortletItemException
- if a matching portlet item could not be found
-
fetchByG_N_P_C
Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name ID- Returns:
- the matching portlet item, or
null
if a matching portlet item could not be found
-
fetchByG_N_P_C
PortletItem fetchByG_N_P_C(long groupId, String name, String portletId, long classNameId, boolean useFinderCache) Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching portlet item, or
null
if a matching portlet item could not be found
-
removeByG_N_P_C
PortletItem removeByG_N_P_C(long groupId, String name, String portletId, long classNameId) throws NoSuchPortletItemException Removes the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? from the database.- Parameters:
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name ID- Returns:
- the portlet item that was removed
- Throws:
NoSuchPortletItemException
-
countByG_N_P_C
Returns the number of portlet items where groupId = ? and name = ? and portletId = ? and classNameId = ?.- Parameters:
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name ID- Returns:
- the number of matching portlet items
-
cacheResult
Caches the portlet item in the entity cache if it is enabled.- Parameters:
portletItem
- the portlet item
-
cacheResult
Caches the portlet items in the entity cache if it is enabled.- Parameters:
portletItems
- the portlet items
-
create
Creates a new portlet item with the primary key. Does not add the portlet item to the database.- Parameters:
portletItemId
- the primary key for the new portlet item- Returns:
- the new portlet item
-
remove
Removes the portlet item with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
portletItemId
- the primary key of the portlet item- Returns:
- the portlet item that was removed
- Throws:
NoSuchPortletItemException
- if a portlet item with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the portlet item with the primary key or throws aNoSuchPortletItemException
if it could not be found.- Parameters:
portletItemId
- the primary key of the portlet item- Returns:
- the portlet item
- Throws:
NoSuchPortletItemException
- if a portlet item with the primary key could not be found
-
fetchByPrimaryKey
Returns the portlet item with the primary key or returnsnull
if it could not be found.- Parameters:
portletItemId
- the primary key of the portlet item- Returns:
- the portlet item, or
null
if a portlet item with the primary key could not be found
-
findAll
List<PortletItem> findAll()Returns all the portlet items.- Returns:
- the portlet items
-
findAll
Returns a range of all the portlet items.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
start
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)- Returns:
- the range of portlet items
-
findAll
Returns an ordered range of all the portlet items.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
start
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of portlet items
-
findAll
List<PortletItem> findAll(int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portlet items.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortletItemModelImpl
.- Parameters:
start
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of portlet items
-
removeAll
void removeAll()Removes all the portlet items from the database. -
countAll
int countAll()Returns the number of portlet items.- Returns:
- the number of portlet items
-