Class SamlSpSessionUtil

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

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

    • SamlSpSessionUtil

      public SamlSpSessionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static SamlSpSession update(SamlSpSession samlSpSession, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findBySamlPeerBindingId

      public static List<SamlSpSession> findBySamlPeerBindingId(long samlPeerBindingId)
      Returns all the saml sp sessions where samlPeerBindingId = ?.
      Parameters:
      samlPeerBindingId - the saml peer binding ID
      Returns:
      the matching saml sp sessions
    • findBySamlPeerBindingId

      public static List<SamlSpSession> findBySamlPeerBindingId(long samlPeerBindingId, int start, int end)
      Returns a range of all the saml sp sessions where samlPeerBindingId = ?.

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

      Parameters:
      samlPeerBindingId - the saml peer binding ID
      start - the lower bound of the range of saml sp sessions
      end - the upper bound of the range of saml sp sessions (not inclusive)
      Returns:
      the range of matching saml sp sessions
    • findBySamlPeerBindingId

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

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

      Parameters:
      samlPeerBindingId - the saml peer binding ID
      start - the lower bound of the range of saml sp sessions
      end - the upper bound of the range of saml sp sessions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching saml sp sessions
    • findBySamlPeerBindingId

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

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

      Parameters:
      samlPeerBindingId - the saml peer binding ID
      start - the lower bound of the range of saml sp sessions
      end - the upper bound of the range of saml 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 sp sessions
    • findBySamlPeerBindingId_First

      public static SamlSpSession findBySamlPeerBindingId_First(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
      Returns the first saml sp session in the ordered set where samlPeerBindingId = ?.
      Parameters:
      samlPeerBindingId - the saml peer binding ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml sp session
      Throws:
      NoSuchSpSessionException - if a matching saml sp session could not be found
      NoSuchSpSessionException
    • fetchBySamlPeerBindingId_First

      public static SamlSpSession fetchBySamlPeerBindingId_First(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
      Returns the first saml sp session in the ordered set where samlPeerBindingId = ?.
      Parameters:
      samlPeerBindingId - the saml peer binding ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml sp session, or null if a matching saml sp session could not be found
    • findBySamlPeerBindingId_Last

      public static SamlSpSession findBySamlPeerBindingId_Last(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
      Returns the last saml sp session in the ordered set where samlPeerBindingId = ?.
      Parameters:
      samlPeerBindingId - the saml peer binding ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml sp session
      Throws:
      NoSuchSpSessionException - if a matching saml sp session could not be found
      NoSuchSpSessionException
    • fetchBySamlPeerBindingId_Last

      public static SamlSpSession fetchBySamlPeerBindingId_Last(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
      Returns the last saml sp session in the ordered set where samlPeerBindingId = ?.
      Parameters:
      samlPeerBindingId - the saml peer binding ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml sp session, or null if a matching saml sp session could not be found
    • findBySamlPeerBindingId_PrevAndNext

      public static SamlSpSession[] findBySamlPeerBindingId_PrevAndNext(long samlSpSessionId, long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
      Returns the saml sp sessions before and after the current saml sp session in the ordered set where samlPeerBindingId = ?.
      Parameters:
      samlSpSessionId - the primary key of the current saml sp session
      samlPeerBindingId - the saml peer binding ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next saml sp session
      Throws:
      NoSuchSpSessionException - if a saml sp session with the primary key could not be found
      NoSuchSpSessionException
    • removeBySamlPeerBindingId

      public static void removeBySamlPeerBindingId(long samlPeerBindingId)
      Removes all the saml sp sessions where samlPeerBindingId = ? from the database.
      Parameters:
      samlPeerBindingId - the saml peer binding ID
    • countBySamlPeerBindingId

      public static int countBySamlPeerBindingId(long samlPeerBindingId)
      Returns the number of saml sp sessions where samlPeerBindingId = ?.
      Parameters:
      samlPeerBindingId - the saml peer binding ID
      Returns:
      the number of matching saml sp sessions
    • findByJSessionId

      public static SamlSpSession findByJSessionId(String jSessionId) throws NoSuchSpSessionException
      Returns the saml sp session where jSessionId = ? or throws a NoSuchSpSessionException if it could not be found.
      Parameters:
      jSessionId - the j session ID
      Returns:
      the matching saml sp session
      Throws:
      NoSuchSpSessionException - if a matching saml sp session could not be found
      NoSuchSpSessionException
    • fetchByJSessionId

      public static SamlSpSession fetchByJSessionId(String jSessionId)
      Returns the saml sp session where jSessionId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      jSessionId - the j session ID
      Returns:
      the matching saml sp session, or null if a matching saml sp session could not be found
    • fetchByJSessionId

      public static SamlSpSession fetchByJSessionId(String jSessionId, boolean useFinderCache)
      Returns the saml sp session where jSessionId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      jSessionId - the j session ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching saml sp session, or null if a matching saml sp session could not be found
    • removeByJSessionId

      public static SamlSpSession removeByJSessionId(String jSessionId) throws NoSuchSpSessionException
      Removes the saml sp session where jSessionId = ? from the database.
      Parameters:
      jSessionId - the j session ID
      Returns:
      the saml sp session that was removed
      Throws:
      NoSuchSpSessionException
    • countByJSessionId

      public static int countByJSessionId(String jSessionId)
      Returns the number of saml sp sessions where jSessionId = ?.
      Parameters:
      jSessionId - the j session ID
      Returns:
      the number of matching saml sp sessions
    • findBySamlSpSessionKey

      public static SamlSpSession findBySamlSpSessionKey(String samlSpSessionKey) throws NoSuchSpSessionException
      Returns the saml sp session where samlSpSessionKey = ? or throws a NoSuchSpSessionException if it could not be found.
      Parameters:
      samlSpSessionKey - the saml sp session key
      Returns:
      the matching saml sp session
      Throws:
      NoSuchSpSessionException - if a matching saml sp session could not be found
      NoSuchSpSessionException
    • fetchBySamlSpSessionKey

      public static SamlSpSession fetchBySamlSpSessionKey(String samlSpSessionKey)
      Returns the saml sp session where samlSpSessionKey = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      samlSpSessionKey - the saml sp session key
      Returns:
      the matching saml sp session, or null if a matching saml sp session could not be found
    • fetchBySamlSpSessionKey

      public static SamlSpSession fetchBySamlSpSessionKey(String samlSpSessionKey, boolean useFinderCache)
      Returns the saml sp session where samlSpSessionKey = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      samlSpSessionKey - the saml sp session key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching saml sp session, or null if a matching saml sp session could not be found
    • removeBySamlSpSessionKey

      public static SamlSpSession removeBySamlSpSessionKey(String samlSpSessionKey) throws NoSuchSpSessionException
      Removes the saml sp session where samlSpSessionKey = ? from the database.
      Parameters:
      samlSpSessionKey - the saml sp session key
      Returns:
      the saml sp session that was removed
      Throws:
      NoSuchSpSessionException
    • countBySamlSpSessionKey

      public static int countBySamlSpSessionKey(String samlSpSessionKey)
      Returns the number of saml sp sessions where samlSpSessionKey = ?.
      Parameters:
      samlSpSessionKey - the saml sp session key
      Returns:
      the number of matching saml sp sessions
    • findByC_SI

      public static List<SamlSpSession> findByC_SI(long companyId, String sessionIndex)
      Returns all the saml sp sessions where companyId = ? and sessionIndex = ?.
      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      Returns:
      the matching saml sp sessions
    • findByC_SI

      public static List<SamlSpSession> findByC_SI(long companyId, String sessionIndex, int start, int end)
      Returns a range of all the saml sp sessions where companyId = ? and sessionIndex = ?.

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

      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      start - the lower bound of the range of saml sp sessions
      end - the upper bound of the range of saml sp sessions (not inclusive)
      Returns:
      the range of matching saml sp sessions
    • findByC_SI

      public static List<SamlSpSession> findByC_SI(long companyId, String sessionIndex, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
      Returns an ordered range of all the saml sp sessions where companyId = ? and sessionIndex = ?.

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

      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      start - the lower bound of the range of saml sp sessions
      end - the upper bound of the range of saml sp sessions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching saml sp sessions
    • findByC_SI

      public static List<SamlSpSession> findByC_SI(long companyId, String sessionIndex, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the saml sp sessions where companyId = ? and sessionIndex = ?.

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

      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      start - the lower bound of the range of saml sp sessions
      end - the upper bound of the range of saml 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 sp sessions
    • findByC_SI_First

      public static SamlSpSession findByC_SI_First(long companyId, String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
      Returns the first saml sp session in the ordered set where companyId = ? and sessionIndex = ?.
      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml sp session
      Throws:
      NoSuchSpSessionException - if a matching saml sp session could not be found
      NoSuchSpSessionException
    • fetchByC_SI_First

      public static SamlSpSession fetchByC_SI_First(long companyId, String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
      Returns the first saml sp session in the ordered set where companyId = ? and sessionIndex = ?.
      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml sp session, or null if a matching saml sp session could not be found
    • findByC_SI_Last

      public static SamlSpSession findByC_SI_Last(long companyId, String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
      Returns the last saml sp session in the ordered set where companyId = ? and sessionIndex = ?.
      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml sp session
      Throws:
      NoSuchSpSessionException - if a matching saml sp session could not be found
      NoSuchSpSessionException
    • fetchByC_SI_Last

      public static SamlSpSession fetchByC_SI_Last(long companyId, String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
      Returns the last saml sp session in the ordered set where companyId = ? and sessionIndex = ?.
      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml sp session, or null if a matching saml sp session could not be found
    • findByC_SI_PrevAndNext

      public static SamlSpSession[] findByC_SI_PrevAndNext(long samlSpSessionId, long companyId, String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
      Returns the saml sp sessions before and after the current saml sp session in the ordered set where companyId = ? and sessionIndex = ?.
      Parameters:
      samlSpSessionId - the primary key of the current saml sp session
      companyId - the company ID
      sessionIndex - the session index
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next saml sp session
      Throws:
      NoSuchSpSessionException - if a saml sp session with the primary key could not be found
      NoSuchSpSessionException
    • removeByC_SI

      public static void removeByC_SI(long companyId, String sessionIndex)
      Removes all the saml sp sessions where companyId = ? and sessionIndex = ? from the database.
      Parameters:
      companyId - the company ID
      sessionIndex - the session index
    • countByC_SI

      public static int countByC_SI(long companyId, String sessionIndex)
      Returns the number of saml sp sessions where companyId = ? and sessionIndex = ?.
      Parameters:
      companyId - the company ID
      sessionIndex - the session index
      Returns:
      the number of matching saml sp sessions
    • cacheResult

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

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

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

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

      public static SamlSpSession updateImpl(SamlSpSession samlSpSession)
    • findByPrimaryKey

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

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

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

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

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

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

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

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

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

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

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

      public static SamlSpSessionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SamlSpSessionPersistence persistence)