@ProviderType public interface PushNotificationsDevicePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<PushNotificationsDevice>
Caching information and settings can be found in portal.properties
com.liferay.push.notifications.service.persistence.impl.PushNotificationsDevicePersistenceImpl
,
PushNotificationsDeviceUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<PushNotificationsDevice> pushNotificationsDevices)
Caches the push notifications devices in the entity cache if it is enabled.
|
void |
cacheResult(PushNotificationsDevice pushNotificationsDevice)
Caches the push notifications device in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of push notifications devices.
|
int |
countByToken(java.lang.String token)
Returns the number of push notifications devices where token = ?.
|
int |
countByU_P(long[] userIds,
java.lang.String platform)
Returns the number of push notifications devices where userId = any ? and platform = ?.
|
int |
countByU_P(long userId,
java.lang.String platform)
Returns the number of push notifications devices where userId = ? and platform = ?.
|
PushNotificationsDevice |
create(long pushNotificationsDeviceId)
Creates a new push notifications device with the primary key.
|
PushNotificationsDevice |
fetchByPrimaryKey(long pushNotificationsDeviceId)
Returns the push notifications device with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,PushNotificationsDevice> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
PushNotificationsDevice |
fetchByToken(java.lang.String token)
Returns the push notifications device where token = ? or returns
null if it could not be found. |
PushNotificationsDevice |
fetchByToken(java.lang.String token,
boolean retrieveFromCache)
Returns the push notifications device where token = ? or returns
null if it could not be found, optionally using the finder cache. |
PushNotificationsDevice |
fetchByU_P_First(long userId,
java.lang.String platform,
com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator)
Returns the first push notifications device in the ordered set where userId = ? and platform = ?.
|
PushNotificationsDevice |
fetchByU_P_Last(long userId,
java.lang.String platform,
com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator)
Returns the last push notifications device in the ordered set where userId = ? and platform = ?.
|
java.util.List<PushNotificationsDevice> |
findAll()
Returns all the push notifications devices.
|
java.util.List<PushNotificationsDevice> |
findAll(int start,
int end)
Returns a range of all the push notifications devices.
|
java.util.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.
|
java.util.List<PushNotificationsDevice> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the push notifications devices.
|
PushNotificationsDevice |
findByPrimaryKey(long pushNotificationsDeviceId)
Returns the push notifications device with the primary key or throws a
NoSuchDeviceException if it could not be found. |
PushNotificationsDevice |
findByToken(java.lang.String token)
Returns the push notifications device where token = ? or throws a
NoSuchDeviceException if it could not be found. |
PushNotificationsDevice |
findByU_P_First(long userId,
java.lang.String platform,
com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator)
Returns the first push notifications device in the ordered set where userId = ? and platform = ?.
|
PushNotificationsDevice |
findByU_P_Last(long userId,
java.lang.String platform,
com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator)
Returns the last push notifications device in the ordered set where userId = ? and platform = ?.
|
PushNotificationsDevice[] |
findByU_P_PrevAndNext(long pushNotificationsDeviceId,
long userId,
java.lang.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 = ?.
|
java.util.List<PushNotificationsDevice> |
findByU_P(long[] userIds,
java.lang.String platform)
Returns all the push notifications devices where userId = any ? and platform = ?.
|
java.util.List<PushNotificationsDevice> |
findByU_P(long[] userIds,
java.lang.String platform,
int start,
int end)
Returns a range of all the push notifications devices where userId = any ? and platform = ?.
|
java.util.List<PushNotificationsDevice> |
findByU_P(long[] userIds,
java.lang.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 = ?.
|
java.util.List<PushNotificationsDevice> |
findByU_P(long[] userIds,
java.lang.String platform,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the push notifications devices where userId = ? and platform = ?, optionally using the finder cache.
|
java.util.List<PushNotificationsDevice> |
findByU_P(long userId,
java.lang.String platform)
Returns all the push notifications devices where userId = ? and platform = ?.
|
java.util.List<PushNotificationsDevice> |
findByU_P(long userId,
java.lang.String platform,
int start,
int end)
Returns a range of all the push notifications devices where userId = ? and platform = ?.
|
java.util.List<PushNotificationsDevice> |
findByU_P(long userId,
java.lang.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 = ?.
|
java.util.List<PushNotificationsDevice> |
findByU_P(long userId,
java.lang.String platform,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the push notifications devices where userId = ? and platform = ?.
|
PushNotificationsDevice |
remove(long pushNotificationsDeviceId)
Removes the push notifications device with the primary key from the database.
|
void |
removeAll()
Removes all the push notifications devices from the database.
|
PushNotificationsDevice |
removeByToken(java.lang.String token)
Removes the push notifications device where token = ? from the database.
|
void |
removeByU_P(long userId,
java.lang.String platform)
Removes all the push notifications devices where userId = ? and platform = ? from the database.
|
PushNotificationsDevice |
updateImpl(PushNotificationsDevice pushNotificationsDevice) |
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
PushNotificationsDevice findByToken(java.lang.String token) throws NoSuchDeviceException
NoSuchDeviceException
if it could not be found.token
- the tokenNoSuchDeviceException
- if a matching push notifications device could not be foundPushNotificationsDevice fetchByToken(java.lang.String token)
null
if it could not be found. Uses the finder cache.token
- the tokennull
if a matching push notifications device could not be foundPushNotificationsDevice fetchByToken(java.lang.String token, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.token
- the tokenretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching push notifications device could not be foundPushNotificationsDevice removeByToken(java.lang.String token) throws NoSuchDeviceException
token
- the tokenNoSuchDeviceException
int countByToken(java.lang.String token)
token
- the tokenjava.util.List<PushNotificationsDevice> findByU_P(long userId, java.lang.String platform)
userId
- the user IDplatform
- the platformjava.util.List<PushNotificationsDevice> findByU_P(long userId, java.lang.String platform, 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 PushNotificationsDeviceModelImpl
. 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.
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)java.util.List<PushNotificationsDevice> findByU_P(long userId, java.lang.String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> 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 PushNotificationsDeviceModelImpl
. 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.
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 (optionally null
)java.util.List<PushNotificationsDevice> findByU_P(long userId, java.lang.String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> 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 PushNotificationsDeviceModelImpl
. 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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachePushNotificationsDevice findByU_P_First(long userId, java.lang.String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) throws NoSuchDeviceException
userId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching push notifications device could not be foundPushNotificationsDevice fetchByU_P_First(long userId, java.lang.String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator)
userId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching push notifications device could not be foundPushNotificationsDevice findByU_P_Last(long userId, java.lang.String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) throws NoSuchDeviceException
userId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a matching push notifications device could not be foundPushNotificationsDevice fetchByU_P_Last(long userId, java.lang.String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator)
userId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching push notifications device could not be foundPushNotificationsDevice[] findByU_P_PrevAndNext(long pushNotificationsDeviceId, long userId, java.lang.String platform, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> orderByComparator) throws NoSuchDeviceException
pushNotificationsDeviceId
- the primary key of the current push notifications deviceuserId
- the user IDplatform
- the platformorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDeviceException
- if a push notifications device with the primary key could not be foundjava.util.List<PushNotificationsDevice> findByU_P(long[] userIds, java.lang.String platform)
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 PushNotificationsDeviceModelImpl
. 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.
userIds
- the user IDsplatform
- the platformjava.util.List<PushNotificationsDevice> findByU_P(long[] userIds, java.lang.String platform, 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 PushNotificationsDeviceModelImpl
. 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.
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)java.util.List<PushNotificationsDevice> findByU_P(long[] userIds, java.lang.String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> 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 PushNotificationsDeviceModelImpl
. 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.
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 (optionally null
)java.util.List<PushNotificationsDevice> findByU_P(long[] userIds, java.lang.String platform, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> 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 PushNotificationsDeviceModelImpl
. 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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeByU_P(long userId, java.lang.String platform)
userId
- the user IDplatform
- the platformint countByU_P(long userId, java.lang.String platform)
userId
- the user IDplatform
- the platformint countByU_P(long[] userIds, java.lang.String platform)
userIds
- the user IDsplatform
- the platformvoid cacheResult(PushNotificationsDevice pushNotificationsDevice)
pushNotificationsDevice
- the push notifications devicevoid cacheResult(java.util.List<PushNotificationsDevice> pushNotificationsDevices)
pushNotificationsDevices
- the push notifications devicesPushNotificationsDevice create(long pushNotificationsDeviceId)
pushNotificationsDeviceId
- the primary key for the new push notifications devicePushNotificationsDevice remove(long pushNotificationsDeviceId) throws NoSuchDeviceException
pushNotificationsDeviceId
- the primary key of the push notifications deviceNoSuchDeviceException
- if a push notifications device with the primary key could not be foundPushNotificationsDevice updateImpl(PushNotificationsDevice pushNotificationsDevice)
PushNotificationsDevice findByPrimaryKey(long pushNotificationsDeviceId) throws NoSuchDeviceException
NoSuchDeviceException
if it could not be found.pushNotificationsDeviceId
- the primary key of the push notifications deviceNoSuchDeviceException
- if a push notifications device with the primary key could not be foundPushNotificationsDevice fetchByPrimaryKey(long pushNotificationsDeviceId)
null
if it could not be found.pushNotificationsDeviceId
- the primary key of the push notifications devicenull
if a push notifications device with the primary key could not be foundjava.util.Map<java.io.Serializable,PushNotificationsDevice> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<PushNotificationsDevice>
java.util.List<PushNotificationsDevice> findAll()
java.util.List<PushNotificationsDevice> 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 PushNotificationsDeviceModelImpl
. 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 push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)java.util.List<PushNotificationsDevice> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> 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 PushNotificationsDeviceModelImpl
. 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 push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<PushNotificationsDevice> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<PushNotificationsDevice> 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 PushNotificationsDeviceModelImpl
. 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 push notifications devicesend
- the upper bound of the range of push notifications devices (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()