Interface SharepointOAuth2TokenEntryPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<SharepointOAuth2TokenEntry>

@ProviderType public interface SharepointOAuth2TokenEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<SharepointOAuth2TokenEntry>
The persistence interface for the sharepoint o auth2 token entry service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByUserId

      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

      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

      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

      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

      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
    • fetchByUserId_First

      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

      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
    • fetchByUserId_Last

      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

      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
    • removeByUserId

      void removeByUserId(long userId)
      Removes all the sharepoint o auth2 token entries where userId = ? from the database.
      Parameters:
      userId - the user ID
    • countByUserId

      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

      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
    • fetchByU_C

      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

      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

      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

      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

      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

      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

      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

      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
    • updateImpl

      SharepointOAuth2TokenEntry updateImpl(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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

      Returns all the sharepoint o auth2 token entries.
      Returns:
      the sharepoint o auth2 token entries
    • findAll

      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

      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

      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

      void removeAll()
      Removes all the sharepoint o auth2 token entries from the database.
    • countAll

      int countAll()
      Returns the number of sharepoint o auth2 token entries.
      Returns:
      the number of sharepoint o auth2 token entries