Class SharepointOAuth2TokenEntryUtil

java.lang.Object
com.liferay.sharepoint.rest.oauth2.service.persistence.SharepointOAuth2TokenEntryUtil

public class SharepointOAuth2TokenEntryUtil extends Object
The persistence utility for the sharepoint o auth2 token entry service. This utility wraps 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 Details

    • SharepointOAuth2TokenEntryUtil

      public SharepointOAuth2TokenEntryUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • 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)
    • update

      public static SharepointOAuth2TokenEntry update(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static SharepointOAuth2TokenEntry update(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUserId

      public static List<SharepointOAuth2TokenEntry> findByUserId(long userId)
      Returns all the sharepoint o auth2 token entries where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching sharepoint o auth2 token entries
    • findByUserId

      public static List<SharepointOAuth2TokenEntry> findByUserId(long userId, int start, int end)
      Returns a range of all the sharepoint o auth2 token entries where userId = ?.

      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, then the query will include the default ORDER BY logic from SharepointOAuth2TokenEntryModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of sharepoint o auth2 token entries
      end - 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 - 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, then the query will include the default ORDER BY logic from SharepointOAuth2TokenEntryModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of sharepoint o auth2 token entries
      end - the upper bound of the range of sharepoint o auth2 token entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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, then the query will include the default ORDER BY logic from SharepointOAuth2TokenEntryModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of sharepoint o auth2 token entries
      end - the upper bound of the range of sharepoint o auth2 token entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharepoint o auth2 token entry
      Throws:
      NoSuch2TokenEntryException - if a matching sharepoint o auth2 token entry could not be found
      NoSuch2TokenEntryException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching sharepoint o auth2 token entry, or null if 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharepoint o auth2 token entry
      Throws:
      NoSuch2TokenEntryException - if a matching sharepoint o auth2 token entry could not be found
      NoSuch2TokenEntryException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching sharepoint o auth2 token entry, or null if 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 entry
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 found
      NoSuch2TokenEntryException
    • 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 a NoSuch2TokenEntryException if it could not be found.
      Parameters:
      userId - the user ID
      configurationPid - the configuration pid
      Returns:
      the matching sharepoint o auth2 token entry
      Throws:
      NoSuch2TokenEntryException - if a matching sharepoint o auth2 token entry could not be found
      NoSuch2TokenEntryException
    • fetchByU_C

      public static SharepointOAuth2TokenEntry fetchByU_C(long userId, String configurationPid)
      Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      userId - the user ID
      configurationPid - the configuration pid
      Returns:
      the matching sharepoint o auth2 token entry, or null if 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      userId - the user ID
      configurationPid - the configuration pid
      useFinderCache - whether to use the finder cache
      Returns:
      the matching sharepoint o auth2 token entry, or null if 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 ID
      configurationPid - the configuration pid
      Returns:
      the sharepoint o auth2 token entry that was removed
      Throws:
      NoSuch2TokenEntryException
    • countByU_C

      public static int countByU_C(long userId, String configurationPid)
      Returns the number of sharepoint o auth2 token entries where userId = ? and configurationPid = ?.
      Parameters:
      userId - the user ID
      configurationPid - the configuration pid
      Returns:
      the number of matching sharepoint o auth2 token entries
    • cacheResult

      public static void cacheResult(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
      Caches the sharepoint o auth2 token entry in the entity cache if it is enabled.
      Parameters:
      sharepointOAuth2TokenEntry - the sharepoint o auth2 token entry
    • cacheResult

      public static void cacheResult(List<SharepointOAuth2TokenEntry> sharepointOAuth2TokenEntries)
      Caches the sharepoint o auth2 token entries in the entity cache if it is enabled.
      Parameters:
      sharepointOAuth2TokenEntries - the sharepoint o auth2 token entries
    • create

      public static SharepointOAuth2TokenEntry create(long sharepointOAuth2TokenEntryId)
      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 found
      NoSuch2TokenEntryException
    • updateImpl

      public static SharepointOAuth2TokenEntry updateImpl(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
    • findByPrimaryKey

      public static SharepointOAuth2TokenEntry findByPrimaryKey(long sharepointOAuth2TokenEntryId) throws NoSuch2TokenEntryException
      Returns the sharepoint o auth2 token entry with the primary key or throws a NoSuch2TokenEntryException if 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 found
      NoSuch2TokenEntryException
    • fetchByPrimaryKey

      public static SharepointOAuth2TokenEntry fetchByPrimaryKey(long sharepointOAuth2TokenEntryId)
      Returns the sharepoint o auth2 token entry with the primary key or returns null if 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 null if a sharepoint o auth2 token entry with the primary key could not be found
    • findAll

      public static List<SharepointOAuth2TokenEntry> findAll()
      Returns all the sharepoint o auth2 token entries.
      Returns:
      the sharepoint o auth2 token entries
    • findAll

      public static List<SharepointOAuth2TokenEntry> findAll(int start, int end)
      Returns a range of all the sharepoint o auth2 token entries.

      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, then the query will include the default ORDER BY logic from SharepointOAuth2TokenEntryModelImpl.

      Parameters:
      start - the lower bound of the range of sharepoint o auth2 token entries
      end - 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 - 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, then the query will include the default ORDER BY logic from SharepointOAuth2TokenEntryModelImpl.

      Parameters:
      start - the lower bound of the range of sharepoint o auth2 token entries
      end - the upper bound of the range of sharepoint o auth2 token entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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, then the query will include the default ORDER BY logic from SharepointOAuth2TokenEntryModelImpl.

      Parameters:
      start - the lower bound of the range of sharepoint o auth2 token entries
      end - the upper bound of the range of sharepoint o auth2 token entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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

      public static SharepointOAuth2TokenEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SharepointOAuth2TokenEntryPersistence persistence)