Class SamlIdpSpSessionUtil

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

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

    • SamlIdpSpSessionUtil

      public SamlIdpSpSessionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

      public static List<SamlIdpSpSession> findByLtCreateDate(Date createDate, int start, int end)
      Returns a range of all the saml idp sp 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 SamlIdpSpSessionModelImpl.

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

      public static List<SamlIdpSpSession> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator)
      Returns an ordered range of all the saml idp sp 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 SamlIdpSpSessionModelImpl.

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

      public static List<SamlIdpSpSession> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml idp sp 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 SamlIdpSpSessionModelImpl.

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

      public static SamlIdpSpSession findByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator) throws NoSuchIdpSpSessionException
      Returns the first saml idp sp 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 sp session
      Throws:
      NoSuchIdpSpSessionException - if a matching saml idp sp session could not be found
      NoSuchIdpSpSessionException
    • fetchByLtCreateDate_First

      public static SamlIdpSpSession fetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator)
      Returns the first saml idp sp 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 sp session, or null if a matching saml idp sp session could not be found
    • findByLtCreateDate_Last

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

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

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

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

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

      public static List<SamlIdpSpSession> findBySamlIdpSsoSessionId(long samlIdpSsoSessionId)
      Returns all the saml idp sp sessions where samlIdpSsoSessionId = ?.
      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      Returns:
      the matching saml idp sp sessions
    • findBySamlIdpSsoSessionId

      public static List<SamlIdpSpSession> findBySamlIdpSsoSessionId(long samlIdpSsoSessionId, int start, int end)
      Returns a range of all the saml idp sp sessions where samlIdpSsoSessionId = ?.

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

      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      start - the lower bound of the range of saml idp sp sessions
      end - the upper bound of the range of saml idp sp sessions (not inclusive)
      Returns:
      the range of matching saml idp sp sessions
    • findBySamlIdpSsoSessionId

      public static List<SamlIdpSpSession> findBySamlIdpSsoSessionId(long samlIdpSsoSessionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator)
      Returns an ordered range of all the saml idp sp sessions where samlIdpSsoSessionId = ?.

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

      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      start - the lower bound of the range of saml idp sp sessions
      end - the upper bound of the range of saml idp sp sessions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching saml idp sp sessions
    • findBySamlIdpSsoSessionId

      public static List<SamlIdpSpSession> findBySamlIdpSsoSessionId(long samlIdpSsoSessionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml idp sp sessions where samlIdpSsoSessionId = ?.

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

      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      start - the lower bound of the range of saml idp sp sessions
      end - the upper bound of the range of saml idp sp 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 sp sessions
    • findBySamlIdpSsoSessionId_First

      public static SamlIdpSpSession findBySamlIdpSsoSessionId_First(long samlIdpSsoSessionId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator) throws NoSuchIdpSpSessionException
      Returns the first saml idp sp session in the ordered set where samlIdpSsoSessionId = ?.
      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml idp sp session
      Throws:
      NoSuchIdpSpSessionException - if a matching saml idp sp session could not be found
      NoSuchIdpSpSessionException
    • fetchBySamlIdpSsoSessionId_First

      public static SamlIdpSpSession fetchBySamlIdpSsoSessionId_First(long samlIdpSsoSessionId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator)
      Returns the first saml idp sp session in the ordered set where samlIdpSsoSessionId = ?.
      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml idp sp session, or null if a matching saml idp sp session could not be found
    • findBySamlIdpSsoSessionId_Last

      public static SamlIdpSpSession findBySamlIdpSsoSessionId_Last(long samlIdpSsoSessionId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator) throws NoSuchIdpSpSessionException
      Returns the last saml idp sp session in the ordered set where samlIdpSsoSessionId = ?.
      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml idp sp session
      Throws:
      NoSuchIdpSpSessionException - if a matching saml idp sp session could not be found
      NoSuchIdpSpSessionException
    • fetchBySamlIdpSsoSessionId_Last

      public static SamlIdpSpSession fetchBySamlIdpSsoSessionId_Last(long samlIdpSsoSessionId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator)
      Returns the last saml idp sp session in the ordered set where samlIdpSsoSessionId = ?.
      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml idp sp session, or null if a matching saml idp sp session could not be found
    • findBySamlIdpSsoSessionId_PrevAndNext

      public static SamlIdpSpSession[] findBySamlIdpSsoSessionId_PrevAndNext(long samlIdpSpSessionId, long samlIdpSsoSessionId, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator) throws NoSuchIdpSpSessionException
      Returns the saml idp sp sessions before and after the current saml idp sp session in the ordered set where samlIdpSsoSessionId = ?.
      Parameters:
      samlIdpSpSessionId - the primary key of the current saml idp sp session
      samlIdpSsoSessionId - the saml idp sso session ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next saml idp sp session
      Throws:
      NoSuchIdpSpSessionException - if a saml idp sp session with the primary key could not be found
      NoSuchIdpSpSessionException
    • removeBySamlIdpSsoSessionId

      public static void removeBySamlIdpSsoSessionId(long samlIdpSsoSessionId)
      Removes all the saml idp sp sessions where samlIdpSsoSessionId = ? from the database.
      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
    • countBySamlIdpSsoSessionId

      public static int countBySamlIdpSsoSessionId(long samlIdpSsoSessionId)
      Returns the number of saml idp sp sessions where samlIdpSsoSessionId = ?.
      Parameters:
      samlIdpSsoSessionId - the saml idp sso session ID
      Returns:
      the number of matching saml idp sp sessions
    • cacheResult

      public static void cacheResult(SamlIdpSpSession samlIdpSpSession)
      Caches the saml idp sp session in the entity cache if it is enabled.
      Parameters:
      samlIdpSpSession - the saml idp sp session
    • cacheResult

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

      public static SamlIdpSpSession create(long samlIdpSpSessionId)
      Creates a new saml idp sp session with the primary key. Does not add the saml idp sp session to the database.
      Parameters:
      samlIdpSpSessionId - the primary key for the new saml idp sp session
      Returns:
      the new saml idp sp session
    • remove

      public static SamlIdpSpSession remove(long samlIdpSpSessionId) throws NoSuchIdpSpSessionException
      Removes the saml idp sp session with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      samlIdpSpSessionId - the primary key of the saml idp sp session
      Returns:
      the saml idp sp session that was removed
      Throws:
      NoSuchIdpSpSessionException - if a saml idp sp session with the primary key could not be found
      NoSuchIdpSpSessionException
    • updateImpl

      public static SamlIdpSpSession updateImpl(SamlIdpSpSession samlIdpSpSession)
    • findByPrimaryKey

      public static SamlIdpSpSession findByPrimaryKey(long samlIdpSpSessionId) throws NoSuchIdpSpSessionException
      Returns the saml idp sp session with the primary key or throws a NoSuchIdpSpSessionException if it could not be found.
      Parameters:
      samlIdpSpSessionId - the primary key of the saml idp sp session
      Returns:
      the saml idp sp session
      Throws:
      NoSuchIdpSpSessionException - if a saml idp sp session with the primary key could not be found
      NoSuchIdpSpSessionException
    • fetchByPrimaryKey

      public static SamlIdpSpSession fetchByPrimaryKey(long samlIdpSpSessionId)
      Returns the saml idp sp session with the primary key or returns null if it could not be found.
      Parameters:
      samlIdpSpSessionId - the primary key of the saml idp sp session
      Returns:
      the saml idp sp session, or null if a saml idp sp session with the primary key could not be found
    • findAll

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

      public static List<SamlIdpSpSession> findAll(int start, int end)
      Returns a range of all the saml idp sp 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 SamlIdpSpSessionModelImpl.

      Parameters:
      start - the lower bound of the range of saml idp sp sessions
      end - the upper bound of the range of saml idp sp sessions (not inclusive)
      Returns:
      the range of saml idp sp sessions
    • findAll

      public static List<SamlIdpSpSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator)
      Returns an ordered range of all the saml idp sp 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 SamlIdpSpSessionModelImpl.

      Parameters:
      start - the lower bound of the range of saml idp sp sessions
      end - the upper bound of the range of saml idp sp sessions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of saml idp sp sessions
    • findAll

      public static List<SamlIdpSpSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSpSession> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml idp sp 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 SamlIdpSpSessionModelImpl.

      Parameters:
      start - the lower bound of the range of saml idp sp sessions
      end - the upper bound of the range of saml idp sp 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 sp sessions
    • removeAll

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

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

      public static SamlIdpSpSessionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SamlIdpSpSessionPersistence persistence)