@ProviderType public interface PortletItemPersistence extends BasePersistence<PortletItem>
Caching information and settings can be found in portal.properties
PortletItemPersistenceImpl
,
PortletItemUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(List<PortletItem> portletItems)
Caches the portlet items in the entity cache if it is enabled.
|
void |
cacheResult(PortletItem portletItem)
Caches the portlet item 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 = ?.
|
PortletItem |
create(long portletItemId)
Creates a new portlet item with the primary key.
|
PortletItem |
fetchByG_C_First(long groupId,
long classNameId,
OrderByComparator<PortletItem> orderByComparator)
Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?.
|
PortletItem |
fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator<PortletItem> orderByComparator)
Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?.
|
PortletItem |
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 returns
null if it could not be found. |
PortletItem |
fetchByG_N_P_C(long groupId,
String name,
String portletId,
long classNameId,
boolean retrieveFromCache)
Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
PortletItem |
fetchByPrimaryKey(long portletItemId)
Returns the portlet item with the primary key or returns
null if it could not be found. |
Map<Serializable,PortletItem> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
List<PortletItem> |
findAll()
Returns all the portlet items.
|
List<PortletItem> |
findAll(int start,
int end)
Returns a range of all the portlet items.
|
List<PortletItem> |
findAll(int start,
int end,
OrderByComparator<PortletItem> orderByComparator)
Returns an ordered range of all the portlet items.
|
List<PortletItem> |
findAll(int start,
int end,
OrderByComparator<PortletItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the portlet items.
|
PortletItem |
findByG_C_First(long groupId,
long classNameId,
OrderByComparator<PortletItem> orderByComparator)
Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?.
|
PortletItem |
findByG_C_Last(long groupId,
long classNameId,
OrderByComparator<PortletItem> orderByComparator)
Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?.
|
PortletItem[] |
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 = ?.
|
List<PortletItem> |
findByG_C(long groupId,
long classNameId)
Returns all the portlet items where groupId = ? and classNameId = ?.
|
List<PortletItem> |
findByG_C(long groupId,
long classNameId,
int start,
int end)
Returns a range of all the portlet items where groupId = ? and classNameId = ?.
|
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 = ?.
|
List<PortletItem> |
findByG_C(long groupId,
long classNameId,
int start,
int end,
OrderByComparator<PortletItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the portlet items where groupId = ? and classNameId = ?.
|
PortletItem |
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 a
NoSuchPortletItemException if it could not be found. |
PortletItem |
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 = ?.
|
PortletItem |
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 = ?.
|
PortletItem[] |
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 = ?.
|
List<PortletItem> |
findByG_P_C(long groupId,
String portletId,
long classNameId)
Returns all the portlet items where groupId = ? and portletId = ? and classNameId = ?.
|
List<PortletItem> |
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 = ?.
|
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 = ?.
|
List<PortletItem> |
findByG_P_C(long groupId,
String portletId,
long classNameId,
int start,
int end,
OrderByComparator<PortletItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.
|
PortletItem |
findByPrimaryKey(long portletItemId)
Returns the portlet item with the primary key or throws a
NoSuchPortletItemException if it could not be found. |
PortletItem |
remove(long portletItemId)
Removes the portlet item with the primary key from the database.
|
void |
removeAll()
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.
|
PortletItem |
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.
|
PortletItem |
updateImpl(PortletItem portletItem) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<PortletItem> findByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDList<PortletItem> findByG_C(long groupId, long classNameId, int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)List<PortletItem> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)List<PortletItem> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean retrieveFromCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachePortletItem findByG_C_First(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletItemException
- if a matching portlet item could not be foundPortletItem fetchByG_C_First(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet item could not be foundPortletItem findByG_C_Last(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletItemException
- if a matching portlet item could not be foundPortletItem fetchByG_C_Last(long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet item could not be foundPortletItem[] findByG_C_PrevAndNext(long portletItemId, long groupId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException
portletItemId
- the primary key of the current portlet itemgroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletItemException
- if a portlet item with the primary key could not be foundvoid removeByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDint countByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDList<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId)
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDList<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)List<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)List<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean retrieveFromCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachePortletItem findByG_P_C_First(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletItemException
- if a matching portlet item could not be foundPortletItem fetchByG_P_C_First(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator)
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet item could not be foundPortletItem findByG_P_C_Last(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletItemException
- if a matching portlet item could not be foundPortletItem fetchByG_P_C_Last(long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator)
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet item could not be foundPortletItem[] findByG_P_C_PrevAndNext(long portletItemId, long groupId, String portletId, long classNameId, OrderByComparator<PortletItem> orderByComparator) throws NoSuchPortletItemException
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 (optionally null
)NoSuchPortletItemException
- if a portlet item with the primary key could not be foundvoid removeByG_P_C(long groupId, String portletId, long classNameId)
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDint countByG_P_C(long groupId, String portletId, long classNameId)
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDPortletItem findByG_N_P_C(long groupId, String name, String portletId, long classNameId) throws NoSuchPortletItemException
NoSuchPortletItemException
if it could not be found.groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name IDNoSuchPortletItemException
- if a matching portlet item could not be foundPortletItem fetchByG_N_P_C(long groupId, String name, String portletId, long classNameId)
null
if it could not be found. Uses the finder cache.groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name IDnull
if a matching portlet item could not be foundPortletItem fetchByG_N_P_C(long groupId, String name, String portletId, long classNameId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching portlet item could not be foundPortletItem removeByG_N_P_C(long groupId, String name, String portletId, long classNameId) throws NoSuchPortletItemException
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name IDNoSuchPortletItemException
int countByG_N_P_C(long groupId, String name, String portletId, long classNameId)
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name IDvoid cacheResult(PortletItem portletItem)
portletItem
- the portlet itemvoid cacheResult(List<PortletItem> portletItems)
portletItems
- the portlet itemsPortletItem create(long portletItemId)
portletItemId
- the primary key for the new portlet itemPortletItem remove(long portletItemId) throws NoSuchPortletItemException
portletItemId
- the primary key of the portlet itemNoSuchPortletItemException
- if a portlet item with the primary key could not be foundPortletItem updateImpl(PortletItem portletItem)
PortletItem findByPrimaryKey(long portletItemId) throws NoSuchPortletItemException
NoSuchPortletItemException
if it could not be found.portletItemId
- the primary key of the portlet itemNoSuchPortletItemException
- if a portlet item with the primary key could not be foundPortletItem fetchByPrimaryKey(long portletItemId)
null
if it could not be found.portletItemId
- the primary key of the portlet itemnull
if a portlet item with the primary key could not be foundMap<Serializable,PortletItem> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<PortletItem>
List<PortletItem> findAll()
List<PortletItem> findAll(int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)List<PortletItem> findAll(int start, int end, OrderByComparator<PortletItem> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)List<PortletItem> findAll(int start, int end, OrderByComparator<PortletItem> orderByComparator, boolean retrieveFromCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from PortletItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()