Interface SamlIdpSsoSessionPersistence

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

@ProviderType public interface SamlIdpSsoSessionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<SamlIdpSsoSession>
The persistence interface for the saml idp sso session service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of saml idp sso sessions where createDate < ?.
    int
    countBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey)
    Returns the number of saml idp sso sessions where samlIdpSsoSessionKey = ?.
    int
    countByUserId(long userId)
    Returns the number of saml idp sso sessions where userId = ?.
    create(long samlIdpSsoSessionId)
    Creates a new saml idp sso session with the primary key.
    fetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
    Returns the first saml idp sso session in the ordered set where createDate < ?.
    fetchByPrimaryKey(long samlIdpSsoSessionId)
    Returns the saml idp sso session with the primary key or returns null if it could not be found.
    fetchBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey)
    Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returns null if it could not be found.
    fetchBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey, boolean useFinderCache)
    Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByUserId(long userId)
    Returns the saml idp sso session where userId = ? or returns null if it could not be found.
    fetchByUserId(long userId, boolean useFinderCache)
    Returns the saml idp sso session where userId = ? or returns null if it could not be found, optionally using the finder cache.
    Returns all the saml idp sso sessions where createDate < ?.
    findByLtCreateDate(Date createDate, int start, int end)
    Returns a range of all the saml idp sso sessions where createDate < ?.
    findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
    Returns an ordered range of all the saml idp sso sessions where createDate < ?.
    findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the saml idp sso sessions where createDate < ?.
    findByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
    Returns the first saml idp sso session in the ordered set where createDate < ?.
    findByPrimaryKey(long samlIdpSsoSessionId)
    Returns the saml idp sso session with the primary key or throws a NoSuchIdpSsoSessionException if it could not be found.
    findBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey)
    Returns the saml idp sso session where samlIdpSsoSessionKey = ? or throws a NoSuchIdpSsoSessionException if it could not be found.
    findByUserId(long userId)
    Returns the saml idp sso session where userId = ? or throws a NoSuchIdpSsoSessionException if it could not be found.
    remove(long samlIdpSsoSessionId)
    Removes the saml idp sso session with the primary key from the database.
    void
    Removes all the saml idp sso sessions where createDate < ? from the database.
    removeBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey)
    Removes the saml idp sso session where samlIdpSsoSessionKey = ? from the database.
    removeByUserId(long userId)
    Removes the saml idp sso session where userId = ? from the database.
    updateImpl(SamlIdpSsoSession samlIdpSsoSession)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUserId

      SamlIdpSsoSession findByUserId(long userId) throws NoSuchIdpSsoSessionException
      Returns the saml idp sso session where userId = ? or throws a NoSuchIdpSsoSessionException if it could not be found.
      Parameters:
      userId - the user ID
      Returns:
      the matching saml idp sso session
      Throws:
      NoSuchIdpSsoSessionException - if a matching saml idp sso session could not be found
    • fetchByUserId

      SamlIdpSsoSession fetchByUserId(long userId, boolean useFinderCache)
      Returns the saml idp sso session where userId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      userId - the user ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching saml idp sso session, or null if a matching saml idp sso session could not be found
    • removeByUserId

      SamlIdpSsoSession removeByUserId(long userId) throws NoSuchIdpSsoSessionException
      Removes the saml idp sso session where userId = ? from the database.
      Parameters:
      userId - the user ID
      Returns:
      the saml idp sso session that was removed
      Throws:
      NoSuchIdpSsoSessionException
    • countByUserId

      int countByUserId(long userId)
      Returns the number of saml idp sso sessions where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the number of matching saml idp sso sessions
    • findByLtCreateDate

      List<SamlIdpSsoSession> findByLtCreateDate(Date createDate)
      Returns all the saml idp sso sessions where createDate < ?.
      Parameters:
      createDate - the create date
      Returns:
      the matching saml idp sso sessions
    • findByLtCreateDate

      List<SamlIdpSsoSession> findByLtCreateDate(Date createDate, int start, int end)
      Returns a range of all the saml idp sso sessions where createDate < ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlIdpSsoSessionModelImpl.

      Parameters:
      createDate - the create date
      start - the lower bound of the range of saml idp sso sessions
      end - the upper bound of the range of saml idp sso sessions (not inclusive)
      Returns:
      the range of matching saml idp sso sessions
    • findByLtCreateDate

      List<SamlIdpSsoSession> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
      Returns an ordered range of all the saml idp sso sessions where createDate < ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlIdpSsoSessionModelImpl.

      Parameters:
      createDate - the create date
      start - the lower bound of the range of saml idp sso sessions
      end - the upper bound of the range of saml idp sso sessions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching saml idp sso sessions
    • findByLtCreateDate

      List<SamlIdpSsoSession> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml idp sso sessions where createDate < ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.saml.persistence.model.impl.SamlIdpSsoSessionModelImpl.

      Parameters:
      createDate - the create date
      start - the lower bound of the range of saml idp sso sessions
      end - the upper bound of the range of saml idp sso sessions (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 saml idp sso sessions
    • findByLtCreateDate_First

      SamlIdpSsoSession findByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) throws NoSuchIdpSsoSessionException
      Returns the first saml idp sso session in the ordered set where createDate < ?.
      Parameters:
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml idp sso session
      Throws:
      NoSuchIdpSsoSessionException - if a matching saml idp sso session could not be found
    • fetchByLtCreateDate_First

      SamlIdpSsoSession fetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
      Returns the first saml idp sso session in the ordered set where createDate < ?.
      Parameters:
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml idp sso session, or null if a matching saml idp sso session could not be found
    • removeByLtCreateDate

      void removeByLtCreateDate(Date createDate)
      Removes all the saml idp sso sessions where createDate < ? from the database.
      Parameters:
      createDate - the create date
    • countByLtCreateDate

      int countByLtCreateDate(Date createDate)
      Returns the number of saml idp sso sessions where createDate < ?.
      Parameters:
      createDate - the create date
      Returns:
      the number of matching saml idp sso sessions
    • findBySamlIdpSsoSessionKey

      SamlIdpSsoSession findBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey) throws NoSuchIdpSsoSessionException
      Returns the saml idp sso session where samlIdpSsoSessionKey = ? or throws a NoSuchIdpSsoSessionException if it could not be found.
      Parameters:
      samlIdpSsoSessionKey - the saml idp sso session key
      Returns:
      the matching saml idp sso session
      Throws:
      NoSuchIdpSsoSessionException - if a matching saml idp sso session could not be found
    • fetchBySamlIdpSsoSessionKey

      SamlIdpSsoSession fetchBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey, boolean useFinderCache)
      Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      samlIdpSsoSessionKey - the saml idp sso session key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching saml idp sso session, or null if a matching saml idp sso session could not be found
    • removeBySamlIdpSsoSessionKey

      SamlIdpSsoSession removeBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey) throws NoSuchIdpSsoSessionException
      Removes the saml idp sso session where samlIdpSsoSessionKey = ? from the database.
      Parameters:
      samlIdpSsoSessionKey - the saml idp sso session key
      Returns:
      the saml idp sso session that was removed
      Throws:
      NoSuchIdpSsoSessionException
    • countBySamlIdpSsoSessionKey

      int countBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey)
      Returns the number of saml idp sso sessions where samlIdpSsoSessionKey = ?.
      Parameters:
      samlIdpSsoSessionKey - the saml idp sso session key
      Returns:
      the number of matching saml idp sso sessions
    • create

      SamlIdpSsoSession create(long samlIdpSsoSessionId)
      Creates a new saml idp sso session with the primary key. Does not add the saml idp sso session to the database.
      Parameters:
      samlIdpSsoSessionId - the primary key for the new saml idp sso session
      Returns:
      the new saml idp sso session
    • remove

      SamlIdpSsoSession remove(long samlIdpSsoSessionId) throws NoSuchIdpSsoSessionException
      Removes the saml idp sso session with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      samlIdpSsoSessionId - the primary key of the saml idp sso session
      Returns:
      the saml idp sso session that was removed
      Throws:
      NoSuchIdpSsoSessionException - if a saml idp sso session with the primary key could not be found
    • updateImpl

      SamlIdpSsoSession updateImpl(SamlIdpSsoSession samlIdpSsoSession)
    • findByPrimaryKey

      SamlIdpSsoSession findByPrimaryKey(long samlIdpSsoSessionId) throws NoSuchIdpSsoSessionException
      Returns the saml idp sso session with the primary key or throws a NoSuchIdpSsoSessionException if it could not be found.
      Parameters:
      samlIdpSsoSessionId - the primary key of the saml idp sso session
      Returns:
      the saml idp sso session
      Throws:
      NoSuchIdpSsoSessionException - if a saml idp sso session with the primary key could not be found
    • fetchByPrimaryKey

      SamlIdpSsoSession fetchByPrimaryKey(long samlIdpSsoSessionId)
      Returns the saml idp sso session with the primary key or returns null if it could not be found.
      Parameters:
      samlIdpSsoSessionId - the primary key of the saml idp sso session
      Returns:
      the saml idp sso session, or null if a saml idp sso session with the primary key could not be found
    • fetchByUserId

      default SamlIdpSsoSession fetchByUserId(long userId)
      Returns the saml idp sso session where userId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      userId - the user ID
      Returns:
      the matching saml idp sso session, or null if a matching saml idp sso session could not be found
    • fetchBySamlIdpSsoSessionKey

      default SamlIdpSsoSession fetchBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey)
      Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      samlIdpSsoSessionKey - the saml idp sso session key
      Returns:
      the matching saml idp sso session, or null if a matching saml idp sso session could not be found