Class SharepointOAuth2TokenEntryUtil
com.liferay.sharepoint.rest.oauth2.service.persistence.impl.SharepointOAuth2TokenEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry) Caches the sharepoint o auth2 token entry in the entity cache if it is enabled.static voidcacheResult(List<SharepointOAuth2TokenEntry> sharepointOAuth2TokenEntries) Caches the sharepoint o auth2 token entries in the entity cache if it is enabled.static voidstatic voidclearCache(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry) static intcountAll()Returns the number of sharepoint o auth2 token entries.static intcountByU_C(long userId, String configurationPid) Returns the number of sharepoint o auth2 token entries where userId = ? and configurationPid = ?.static intcountByUserId(long userId) Returns the number of sharepoint o auth2 token entries where userId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SharepointOAuth2TokenEntrycreate(long sharepointOAuth2TokenEntryId) Creates a new sharepoint o auth2 token entry with the primary key.static SharepointOAuth2TokenEntryfetchByPrimaryKey(long sharepointOAuth2TokenEntryId) Returns the sharepoint o auth2 token entry with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SharepointOAuth2TokenEntryfetchByU_C(long userId, String configurationPid) Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returnsnullif it could not be found.static SharepointOAuth2TokenEntryfetchByU_C(long userId, String configurationPid, boolean useFinderCache) Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returnsnullif it could not be found, optionally using the finder cache.static SharepointOAuth2TokenEntryfetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns the first sharepoint o auth2 token entry in the ordered set where userId = ?.static SharepointOAuth2TokenEntryfetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns the last sharepoint o auth2 token entry in the ordered set where userId = ?.static List<SharepointOAuth2TokenEntry>findAll()Returns all the sharepoint o auth2 token entries.static List<SharepointOAuth2TokenEntry>findAll(int start, int end) Returns a range of all the sharepoint o auth2 token entries.static List<SharepointOAuth2TokenEntry>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns an ordered range of all the sharepoint o auth2 token entries.static List<SharepointOAuth2TokenEntry>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharepoint o auth2 token entries.static SharepointOAuth2TokenEntryfindByPrimaryKey(long sharepointOAuth2TokenEntryId) Returns the sharepoint o auth2 token entry with the primary key or throws aNoSuch2TokenEntryExceptionif it could not be found.static SharepointOAuth2TokenEntryReturns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or throws aNoSuch2TokenEntryExceptionif it could not be found.static List<SharepointOAuth2TokenEntry>findByUserId(long userId) Returns all the sharepoint o auth2 token entries where userId = ?.static List<SharepointOAuth2TokenEntry>findByUserId(long userId, int start, int end) Returns a range of all the sharepoint o auth2 token entries where userId = ?.static List<SharepointOAuth2TokenEntry>findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns an ordered range of all the sharepoint o auth2 token entries where userId = ?.static List<SharepointOAuth2TokenEntry>findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharepoint o auth2 token entries where userId = ?.static SharepointOAuth2TokenEntryfindByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns the first sharepoint o auth2 token entry in the ordered set where userId = ?.static SharepointOAuth2TokenEntryfindByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns the last sharepoint o auth2 token entry in the ordered set where userId = ?.static SharepointOAuth2TokenEntry[]findByUserId_PrevAndNext(long sharepointOAuth2TokenEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns the sharepoint o auth2 token entries before and after the current sharepoint o auth2 token entry in the ordered set where userId = ?.static List<SharepointOAuth2TokenEntry>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SharepointOAuth2TokenEntry>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SharepointOAuth2TokenEntry>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) static SharepointOAuth2TokenEntryremove(long sharepointOAuth2TokenEntryId) Removes the sharepoint o auth2 token entry with the primary key from the database.static voidRemoves all the sharepoint o auth2 token entries from the database.static SharepointOAuth2TokenEntryremoveByU_C(long userId, String configurationPid) Removes the sharepoint o auth2 token entry where userId = ? and configurationPid = ? from the database.static voidremoveByUserId(long userId) Removes all the sharepoint o auth2 token entries where userId = ? from the database.static voidsetPersistence(SharepointOAuth2TokenEntryPersistence persistence) static SharepointOAuth2TokenEntryupdate(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry) static SharepointOAuth2TokenEntryupdate(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SharepointOAuth2TokenEntryupdateImpl(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
-
Constructor Details
-
SharepointOAuth2TokenEntryUtil
public SharepointOAuth2TokenEntryUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,SharepointOAuth2TokenEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<SharepointOAuth2TokenEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<SharepointOAuth2TokenEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<SharepointOAuth2TokenEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
findByUserId
Returns all the sharepoint o auth2 token entries where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching sharepoint o auth2 token entries
-
findByUserId
Returns a range of all the sharepoint o auth2 token entries where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of sharepoint o auth2 token entriesend- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)- Returns:
- the range of matching sharepoint o auth2 token entries
-
findByUserId
public static List<SharepointOAuth2TokenEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns an ordered range of all the sharepoint o auth2 token entries where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of sharepoint o auth2 token entriesend- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching sharepoint o auth2 token entries
-
findByUserId
public static List<SharepointOAuth2TokenEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharepoint o auth2 token entries where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of sharepoint o auth2 token entriesend- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharepoint o auth2 token entries
-
findByUserId_First
public static SharepointOAuth2TokenEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException Returns the first sharepoint o auth2 token entry in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a matching sharepoint o auth2 token entry could not be foundNoSuch2TokenEntryException
-
fetchByUserId_First
public static SharepointOAuth2TokenEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns the first sharepoint o auth2 token entry in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharepoint o auth2 token entry, or
nullif a matching sharepoint o auth2 token entry could not be found
-
findByUserId_Last
public static SharepointOAuth2TokenEntry findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException Returns the last sharepoint o auth2 token entry in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a matching sharepoint o auth2 token entry could not be foundNoSuch2TokenEntryException
-
fetchByUserId_Last
public static SharepointOAuth2TokenEntry fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns the last sharepoint o auth2 token entry in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching sharepoint o auth2 token entry, or
nullif a matching sharepoint o auth2 token entry could not be found
-
findByUserId_PrevAndNext
public static SharepointOAuth2TokenEntry[] findByUserId_PrevAndNext(long sharepointOAuth2TokenEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException Returns the sharepoint o auth2 token entries before and after the current sharepoint o auth2 token entry in the ordered set where userId = ?.- Parameters:
sharepointOAuth2TokenEntryId- the primary key of the current sharepoint o auth2 token entryuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a sharepoint o auth2 token entry with the primary key could not be foundNoSuch2TokenEntryException
-
removeByUserId
public static void removeByUserId(long userId) Removes all the sharepoint o auth2 token entries where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
public static int countByUserId(long userId) Returns the number of sharepoint o auth2 token entries where userId = ?.- Parameters:
userId- the user ID- Returns:
- the number of matching sharepoint o auth2 token entries
-
findByU_C
public static SharepointOAuth2TokenEntry findByU_C(long userId, String configurationPid) throws NoSuch2TokenEntryException Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or throws aNoSuch2TokenEntryExceptionif it could not be found.- Parameters:
userId- the user IDconfigurationPid- the configuration pid- Returns:
- the matching sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a matching sharepoint o auth2 token entry could not be foundNoSuch2TokenEntryException
-
fetchByU_C
Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userId- the user IDconfigurationPid- the configuration pid- Returns:
- the matching sharepoint o auth2 token entry, or
nullif a matching sharepoint o auth2 token entry could not be found
-
fetchByU_C
public static SharepointOAuth2TokenEntry fetchByU_C(long userId, String configurationPid, boolean useFinderCache) Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
userId- the user IDconfigurationPid- the configuration piduseFinderCache- whether to use the finder cache- Returns:
- the matching sharepoint o auth2 token entry, or
nullif a matching sharepoint o auth2 token entry could not be found
-
removeByU_C
public static SharepointOAuth2TokenEntry removeByU_C(long userId, String configurationPid) throws NoSuch2TokenEntryException Removes the sharepoint o auth2 token entry where userId = ? and configurationPid = ? from the database.- Parameters:
userId- the user IDconfigurationPid- the configuration pid- Returns:
- the sharepoint o auth2 token entry that was removed
- Throws:
NoSuch2TokenEntryException
-
countByU_C
Returns the number of sharepoint o auth2 token entries where userId = ? and configurationPid = ?.- Parameters:
userId- the user IDconfigurationPid- the configuration pid- Returns:
- the number of matching sharepoint o auth2 token entries
-
cacheResult
Caches the sharepoint o auth2 token entries in the entity cache if it is enabled.- Parameters:
sharepointOAuth2TokenEntries- the sharepoint o auth2 token entries
-
create
Creates a new sharepoint o auth2 token entry with the primary key. Does not add the sharepoint o auth2 token entry to the database.- Parameters:
sharepointOAuth2TokenEntryId- the primary key for the new sharepoint o auth2 token entry- Returns:
- the new sharepoint o auth2 token entry
-
remove
public static SharepointOAuth2TokenEntry remove(long sharepointOAuth2TokenEntryId) throws NoSuch2TokenEntryException Removes the sharepoint o auth2 token entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
sharepointOAuth2TokenEntryId- the primary key of the sharepoint o auth2 token entry- Returns:
- the sharepoint o auth2 token entry that was removed
- Throws:
NoSuch2TokenEntryException- if a sharepoint o auth2 token entry with the primary key could not be foundNoSuch2TokenEntryException
-
findByPrimaryKey
public static SharepointOAuth2TokenEntry findByPrimaryKey(long sharepointOAuth2TokenEntryId) throws NoSuch2TokenEntryException Returns the sharepoint o auth2 token entry with the primary key or throws aNoSuch2TokenEntryExceptionif it could not be found.- Parameters:
sharepointOAuth2TokenEntryId- the primary key of the sharepoint o auth2 token entry- Returns:
- the sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a sharepoint o auth2 token entry with the primary key could not be foundNoSuch2TokenEntryException
-
fetchByPrimaryKey
Returns the sharepoint o auth2 token entry with the primary key or returnsnullif it could not be found.- Parameters:
sharepointOAuth2TokenEntryId- the primary key of the sharepoint o auth2 token entry- Returns:
- the sharepoint o auth2 token entry, or
nullif a sharepoint o auth2 token entry with the primary key could not be found
-
findAll
Returns all the sharepoint o auth2 token entries.- Returns:
- the sharepoint o auth2 token entries
-
findAll
Returns a range of all the sharepoint o auth2 token entries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
start- the lower bound of the range of sharepoint o auth2 token entriesend- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)- Returns:
- the range of sharepoint o auth2 token entries
-
findAll
public static List<SharepointOAuth2TokenEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) Returns an ordered range of all the sharepoint o auth2 token entries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
start- the lower bound of the range of sharepoint o auth2 token entriesend- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of sharepoint o auth2 token entries
-
findAll
public static List<SharepointOAuth2TokenEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the sharepoint o auth2 token entries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
start- the lower bound of the range of sharepoint o auth2 token entriesend- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of sharepoint o auth2 token entries
-
removeAll
public static void removeAll()Removes all the sharepoint o auth2 token entries from the database. -
countAll
public static int countAll()Returns the number of sharepoint o auth2 token entries.- Returns:
- the number of sharepoint o auth2 token entries
-
getPersistence
-