Interface PushNotificationsDevicePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<PushNotificationsDevice>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(PushNotificationsDevice pushNotificationsDevice) Caches the push notifications device in the entity cache if it is enabled.void
cacheResult
(List<PushNotificationsDevice> pushNotificationsDevices) Caches the push notifications devices in the entity cache if it is enabled.int
countAll()
Returns the number of push notifications devices.int
countByToken
(String token) Returns the number of push notifications devices where token = ?.int
countByU_P
(long[] userIds, String platform) Returns the number of push notifications devices where userId = any ? and platform = ?.int
countByU_P
(long userId, String platform) Returns the number of push notifications devices where userId = ? and platform = ?.create
(long pushNotificationsDeviceId) Creates a new push notifications device with the primary key.fetchByPrimaryKey
(long pushNotificationsDeviceId) Returns the push notifications device with the primary key or returnsnull
if it could not be found.fetchByToken
(String token) Returns the push notifications device where token = ? or returnsnull
if it could not be found.fetchByToken
(String token, boolean useFinderCache) Returns the push notifications device where token = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByU_P_First
(long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns the first push notifications device in the ordered set where userId = ? and platform = ?.fetchByU_P_Last
(long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns the last push notifications device in the ordered set where userId = ? and platform = ?.findAll()
Returns all the push notifications devices.findAll
(int start, int end) Returns a range of all the push notifications devices.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns an ordered range of all the push notifications devices.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator, boolean useFinderCache) Returns an ordered range of all the push notifications devices.findByPrimaryKey
(long pushNotificationsDeviceId) Returns the push notifications device with the primary key or throws aNoSuchDeviceException
if it could not be found.findByToken
(String token) Returns the push notifications device where token = ? or throws aNoSuchDeviceException
if it could not be found.Returns all the push notifications devices where userId = any ? and platform = ?.Returns a range of all the push notifications devices where userId = any ? and platform = ?.findByU_P
(long[] userIds, String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns an ordered range of all the push notifications devices where userId = any ? and platform = ?.findByU_P
(long[] userIds, String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator, boolean useFinderCache) Returns an ordered range of all the push notifications devices where userId = ? and platform = ?, optionally using the finder cache.Returns all the push notifications devices where userId = ? and platform = ?.Returns a range of all the push notifications devices where userId = ? and platform = ?.findByU_P
(long userId, String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns an ordered range of all the push notifications devices where userId = ? and platform = ?.findByU_P
(long userId, String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator, boolean useFinderCache) Returns an ordered range of all the push notifications devices where userId = ? and platform = ?.findByU_P_First
(long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns the first push notifications device in the ordered set where userId = ? and platform = ?.findByU_P_Last
(long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns the last push notifications device in the ordered set where userId = ? and platform = ?.findByU_P_PrevAndNext
(long pushNotificationsDeviceId, long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns the push notifications devices before and after the current push notifications device in the ordered set where userId = ? and platform = ?.remove
(long pushNotificationsDeviceId) Removes the push notifications device with the primary key from the database.void
Removes all the push notifications devices from the database.removeByToken
(String token) Removes the push notifications device where token = ? from the database.void
removeByU_P
(long userId, String platform) Removes all the push notifications devices where userId = ? and platform = ? from the database.updateImpl
(PushNotificationsDevice pushNotificationsDevice) 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
-
findByToken
Returns the push notifications device where token = ? or throws aNoSuchDeviceException
if it could not be found.- Parameters:
token
- the token- Returns:
- the matching push notifications device
- Throws:
NoSuchDeviceException
- if a matching push notifications device could not be found
-
fetchByToken
Returns the push notifications device where token = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
token
- the token- Returns:
- the matching push notifications device, or
null
if a matching push notifications device could not be found
-
fetchByToken
Returns the push notifications device where token = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
token
- the tokenuseFinderCache
- whether to use the finder cache- Returns:
- the matching push notifications device, or
null
if a matching push notifications device could not be found
-
removeByToken
Removes the push notifications device where token = ? from the database.- Parameters:
token
- the token- Returns:
- the push notifications device that was removed
- Throws:
NoSuchDeviceException
-
countByToken
Returns the number of push notifications devices where token = ?.- Parameters:
token
- the token- Returns:
- the number of matching push notifications devices
-
findByU_P
Returns all the push notifications devices where userId = ? and platform = ?.- Parameters:
userId
- the user IDplatform
- the platform- Returns:
- the matching push notifications devices
-
findByU_P
Returns a range of all the push notifications devices where userId = ? and platform = ?.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
userId
- the user IDplatform
- the platformstart
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)- Returns:
- the range of matching push notifications devices
-
findByU_P
List<PushNotificationsDevice> findByU_P(long userId, String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns an ordered range of all the push notifications devices where userId = ? and platform = ?.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
userId
- the user IDplatform
- the platformstart
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching push notifications devices
-
findByU_P
List<PushNotificationsDevice> findByU_P(long userId, String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator, boolean useFinderCache) Returns an ordered range of all the push notifications devices where userId = ? and platform = ?.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
userId
- the user IDplatform
- the platformstart
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching push notifications devices
-
findByU_P_First
PushNotificationsDevice findByU_P_First(long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) throws NoSuchDeviceException Returns the first push notifications device in the ordered set where userId = ? and platform = ?.- Parameters:
userId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching push notifications device
- Throws:
NoSuchDeviceException
- if a matching push notifications device could not be found
-
fetchByU_P_First
PushNotificationsDevice fetchByU_P_First(long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns the first push notifications device in the ordered set where userId = ? and platform = ?.- Parameters:
userId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching push notifications device, or
null
if a matching push notifications device could not be found
-
findByU_P_Last
PushNotificationsDevice findByU_P_Last(long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) throws NoSuchDeviceException Returns the last push notifications device in the ordered set where userId = ? and platform = ?.- Parameters:
userId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching push notifications device
- Throws:
NoSuchDeviceException
- if a matching push notifications device could not be found
-
fetchByU_P_Last
PushNotificationsDevice fetchByU_P_Last(long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns the last push notifications device in the ordered set where userId = ? and platform = ?.- Parameters:
userId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching push notifications device, or
null
if a matching push notifications device could not be found
-
findByU_P_PrevAndNext
PushNotificationsDevice[] findByU_P_PrevAndNext(long pushNotificationsDeviceId, long userId, String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) throws NoSuchDeviceException Returns the push notifications devices before and after the current push notifications device in the ordered set where userId = ? and platform = ?.- Parameters:
pushNotificationsDeviceId
- the primary key of the current push notifications deviceuserId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next push notifications device
- Throws:
NoSuchDeviceException
- if a push notifications device with the primary key could not be found
-
findByU_P
Returns all the push notifications devices where userId = any ? and platform = ?.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
userIds
- the user IDsplatform
- the platform- Returns:
- the matching push notifications devices
-
findByU_P
Returns a range of all the push notifications devices where userId = any ? and platform = ?.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
userIds
- the user IDsplatform
- the platformstart
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)- Returns:
- the range of matching push notifications devices
-
findByU_P
List<PushNotificationsDevice> findByU_P(long[] userIds, String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns an ordered range of all the push notifications devices where userId = any ? and platform = ?.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
userIds
- the user IDsplatform
- the platformstart
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching push notifications devices
-
findByU_P
List<PushNotificationsDevice> findByU_P(long[] userIds, String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator, boolean useFinderCache) Returns an ordered range of all the push notifications devices where userId = ? and platform = ?, optionally using the finder cache.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
userIds
- the user IDsplatform
- the platformstart
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching push notifications devices
-
removeByU_P
Removes all the push notifications devices where userId = ? and platform = ? from the database.- Parameters:
userId
- the user IDplatform
- the platform
-
countByU_P
Returns the number of push notifications devices where userId = ? and platform = ?.- Parameters:
userId
- the user IDplatform
- the platform- Returns:
- the number of matching push notifications devices
-
countByU_P
Returns the number of push notifications devices where userId = any ? and platform = ?.- Parameters:
userIds
- the user IDsplatform
- the platform- Returns:
- the number of matching push notifications devices
-
cacheResult
Caches the push notifications device in the entity cache if it is enabled.- Parameters:
pushNotificationsDevice
- the push notifications device
-
cacheResult
Caches the push notifications devices in the entity cache if it is enabled.- Parameters:
pushNotificationsDevices
- the push notifications devices
-
create
Creates a new push notifications device with the primary key. Does not add the push notifications device to the database.- Parameters:
pushNotificationsDeviceId
- the primary key for the new push notifications device- Returns:
- the new push notifications device
-
remove
Removes the push notifications device with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
pushNotificationsDeviceId
- the primary key of the push notifications device- Returns:
- the push notifications device that was removed
- Throws:
NoSuchDeviceException
- if a push notifications device with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
PushNotificationsDevice findByPrimaryKey(long pushNotificationsDeviceId) throws NoSuchDeviceException Returns the push notifications device with the primary key or throws aNoSuchDeviceException
if it could not be found.- Parameters:
pushNotificationsDeviceId
- the primary key of the push notifications device- Returns:
- the push notifications device
- Throws:
NoSuchDeviceException
- if a push notifications device with the primary key could not be found
-
fetchByPrimaryKey
Returns the push notifications device with the primary key or returnsnull
if it could not be found.- Parameters:
pushNotificationsDeviceId
- the primary key of the push notifications device- Returns:
- the push notifications device, or
null
if a push notifications device with the primary key could not be found
-
findAll
List<PushNotificationsDevice> findAll()Returns all the push notifications devices.- Returns:
- the push notifications devices
-
findAll
Returns a range of all the push notifications devices.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
start
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)- Returns:
- the range of push notifications devices
-
findAll
List<PushNotificationsDevice> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) Returns an ordered range of all the push notifications devices.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
start
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of push notifications devices
-
findAll
List<PushNotificationsDevice> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator, boolean useFinderCache) Returns an ordered range of all the push notifications devices.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 fromPushNotificationsDeviceModelImpl
.- Parameters:
start
- the lower bound of the range of push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of push notifications devices
-
removeAll
void removeAll()Removes all the push notifications devices from the database. -
countAll
int countAll()Returns the number of push notifications devices.- Returns:
- the number of push notifications devices
-