Class SamlIdpSsoSessionUtil

java.lang.Object
com.liferay.saml.persistence.service.persistence.SamlIdpSsoSessionUtil

public class SamlIdpSsoSessionUtil extends Object
The persistence utility for the saml idp sso session service. This utility wraps com.liferay.saml.persistence.service.persistence.impl.SamlIdpSsoSessionPersistenceImpl 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

    • SamlIdpSsoSessionUtil

      public SamlIdpSsoSessionUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(SamlIdpSsoSession samlIdpSsoSession)
      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,SamlIdpSsoSession> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

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

      public static SamlIdpSsoSession update(SamlIdpSsoSession samlIdpSsoSession, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByLtCreateDate

      public static 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

      public static 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 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 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

      public static 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 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 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

      public static 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 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 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

      public static 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
      NoSuchIdpSsoSessionException
    • fetchByLtCreateDate_First

      public static 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
    • findByLtCreateDate_Last

      public static SamlIdpSsoSession findByLtCreateDate_Last(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) throws NoSuchIdpSsoSessionException
      Returns the last 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 last matching saml idp sso session
      Throws:
      NoSuchIdpSsoSessionException - if a matching saml idp sso session could not be found
      NoSuchIdpSsoSessionException
    • fetchByLtCreateDate_Last

      public static SamlIdpSsoSession fetchByLtCreateDate_Last(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
      Returns the last 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 last matching saml idp sso session, or null if a matching saml idp sso session could not be found
    • findByLtCreateDate_PrevAndNext

      public static SamlIdpSsoSession[] findByLtCreateDate_PrevAndNext(long samlIdpSsoSessionId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) throws NoSuchIdpSsoSessionException
      Returns the saml idp sso sessions before and after the current saml idp sso session in the ordered set where createDate < ?.
      Parameters:
      samlIdpSsoSessionId - the primary key of the current saml idp sso session
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next saml idp sso session
      Throws:
      NoSuchIdpSsoSessionException - if a saml idp sso session with the primary key could not be found
      NoSuchIdpSsoSessionException
    • removeByLtCreateDate

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

      public static 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

      public static 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
      NoSuchIdpSsoSessionException
    • fetchBySamlIdpSsoSessionKey

      public static 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
    • fetchBySamlIdpSsoSessionKey

      public static 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

      public static 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

      public static 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
    • cacheResult

      public static void cacheResult(SamlIdpSsoSession samlIdpSsoSession)
      Caches the saml idp sso session in the entity cache if it is enabled.
      Parameters:
      samlIdpSsoSession - the saml idp sso session
    • cacheResult

      public static void cacheResult(List<SamlIdpSsoSession> samlIdpSsoSessions)
      Caches the saml idp sso sessions in the entity cache if it is enabled.
      Parameters:
      samlIdpSsoSessions - the saml idp sso sessions
    • create

      public static 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

      public static 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
      NoSuchIdpSsoSessionException
    • updateImpl

      public static SamlIdpSsoSession updateImpl(SamlIdpSsoSession samlIdpSsoSession)
    • findByPrimaryKey

      public static 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
      NoSuchIdpSsoSessionException
    • fetchByPrimaryKey

      public static 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
    • findAll

      public static List<SamlIdpSsoSession> findAll()
      Returns all the saml idp sso sessions.
      Returns:
      the saml idp sso sessions
    • findAll

      public static List<SamlIdpSsoSession> findAll(int start, int end)
      Returns a range of all the saml idp sso sessions.

      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 SamlIdpSsoSessionModelImpl.

      Parameters:
      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 saml idp sso sessions
    • findAll

      public static List<SamlIdpSsoSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
      Returns an ordered range of all the saml idp sso sessions.

      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 SamlIdpSsoSessionModelImpl.

      Parameters:
      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 saml idp sso sessions
    • findAll

      public static List<SamlIdpSsoSession> findAll(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.

      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 SamlIdpSsoSessionModelImpl.

      Parameters:
      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 saml idp sso sessions
    • removeAll

      public static void removeAll()
      Removes all the saml idp sso sessions from the database.
    • countAll

      public static int countAll()
      Returns the number of saml idp sso sessions.
      Returns:
      the number of saml idp sso sessions
    • getPersistence

      public static SamlIdpSsoSessionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SamlIdpSsoSessionPersistence persistence)