Class SamlSpSessionUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(SamlSpSession samlSpSession) Caches the saml sp session in the entity cache if it is enabled.static voidcacheResult(List<SamlSpSession> samlSpSessions) Caches the saml sp sessions in the entity cache if it is enabled.static voidstatic voidclearCache(SamlSpSession samlSpSession) static intcountAll()Returns the number of saml sp sessions.static intcountByC_SI(long companyId, String sessionIndex) Returns the number of saml sp sessions where companyId = ? and sessionIndex = ?.static intcountByJSessionId(String jSessionId) Returns the number of saml sp sessions where jSessionId = ?.static intcountBySamlPeerBindingId(long samlPeerBindingId) Returns the number of saml sp sessions where samlPeerBindingId = ?.static intcountBySamlSpSessionKey(String samlSpSessionKey) Returns the number of saml sp sessions where samlSpSessionKey = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SamlSpSessioncreate(long samlSpSessionId) Creates a new saml sp session with the primary key.static SamlSpSessionfetchByC_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 = ?.static SamlSpSessionfetchByC_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 = ?.static SamlSpSessionfetchByJSessionId(String jSessionId) Returns the saml sp session where jSessionId = ? or returnsnullif it could not be found.static SamlSpSessionfetchByJSessionId(String jSessionId, boolean useFinderCache) Returns the saml sp session where jSessionId = ? or returnsnullif it could not be found, optionally using the finder cache.static SamlSpSessionfetchByPrimaryKey(long samlSpSessionId) Returns the saml sp session with the primary key or returnsnullif it could not be found.static Map<Serializable,SamlSpSession> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SamlSpSessionfetchBySamlPeerBindingId_First(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) Returns the first saml sp session in the ordered set where samlPeerBindingId = ?.static SamlSpSessionfetchBySamlPeerBindingId_Last(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) Returns the last saml sp session in the ordered set where samlPeerBindingId = ?.static SamlSpSessionfetchBySamlSpSessionKey(String samlSpSessionKey) Returns the saml sp session where samlSpSessionKey = ? or returnsnullif it could not be found.static SamlSpSessionfetchBySamlSpSessionKey(String samlSpSessionKey, boolean useFinderCache) Returns the saml sp session where samlSpSessionKey = ? or returnsnullif it could not be found, optionally using the finder cache.static List<SamlSpSession>findAll()Returns all the saml sp sessions.static List<SamlSpSession>findAll(int start, int end) Returns a range of all the saml sp sessions.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.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.static List<SamlSpSession>findByC_SI(long companyId, String sessionIndex) Returns all the saml sp sessions where companyId = ? and sessionIndex = ?.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 = ?.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 = ?.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 = ?.static SamlSpSessionfindByC_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 = ?.static SamlSpSessionfindByC_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 = ?.static SamlSpSession[]findByC_SI_PrevAndNext(long samlSpSessionId, long companyId, String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) Returns the saml sp sessions before and after the current saml sp session in the ordered set where companyId = ? and sessionIndex = ?.static SamlSpSessionfindByJSessionId(String jSessionId) Returns the saml sp session where jSessionId = ? or throws aNoSuchSpSessionExceptionif it could not be found.static SamlSpSessionfindByPrimaryKey(long samlSpSessionId) Returns the saml sp session with the primary key or throws aNoSuchSpSessionExceptionif it could not be found.static List<SamlSpSession>findBySamlPeerBindingId(long samlPeerBindingId) Returns all the saml sp sessions where samlPeerBindingId = ?.static List<SamlSpSession>findBySamlPeerBindingId(long samlPeerBindingId, int start, int end) Returns a range of all the saml sp sessions where samlPeerBindingId = ?.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 = ?.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 = ?.static SamlSpSessionfindBySamlPeerBindingId_First(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) Returns the first saml sp session in the ordered set where samlPeerBindingId = ?.static SamlSpSessionfindBySamlPeerBindingId_Last(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) Returns the last saml sp session in the ordered set where samlPeerBindingId = ?.static SamlSpSession[]findBySamlPeerBindingId_PrevAndNext(long samlSpSessionId, long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) Returns the saml sp sessions before and after the current saml sp session in the ordered set where samlPeerBindingId = ?.static SamlSpSessionfindBySamlSpSessionKey(String samlSpSessionKey) Returns the saml sp session where samlSpSessionKey = ? or throws aNoSuchSpSessionExceptionif it could not be found.static List<SamlSpSession>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SamlSpSession>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SamlSpSession>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) static SamlSpSessionPersistencestatic SamlSpSessionremove(long samlSpSessionId) Removes the saml sp session with the primary key from the database.static voidRemoves all the saml sp sessions from the database.static voidremoveByC_SI(long companyId, String sessionIndex) Removes all the saml sp sessions where companyId = ? and sessionIndex = ? from the database.static SamlSpSessionremoveByJSessionId(String jSessionId) Removes the saml sp session where jSessionId = ? from the database.static voidremoveBySamlPeerBindingId(long samlPeerBindingId) Removes all the saml sp sessions where samlPeerBindingId = ? from the database.static SamlSpSessionremoveBySamlSpSessionKey(String samlSpSessionKey) Removes the saml sp session where samlSpSessionKey = ? from the database.static voidsetPersistence(SamlSpSessionPersistence persistence) static SamlSpSessionupdate(SamlSpSession samlSpSession) static SamlSpSessionupdate(SamlSpSession samlSpSession, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SamlSpSessionupdateImpl(SamlSpSession samlSpSession)
-
Constructor Details
-
SamlSpSessionUtil
public SamlSpSessionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
- 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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
samlPeerBindingId- the saml peer binding IDstart- the lower bound of the range of saml sp sessionsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
samlPeerBindingId- the saml peer binding IDstart- the lower bound of the range of saml sp sessionsend- the upper bound of the range of saml sp sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
samlPeerBindingId- the saml peer binding IDstart- the lower bound of the range of saml sp sessionsend- the upper bound of the range of saml sp sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml sp session
- Throws:
NoSuchSpSessionException- if a matching saml sp session could not be foundNoSuchSpSessionException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml sp session, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp session
- Throws:
NoSuchSpSessionException- if a matching saml sp session could not be foundNoSuchSpSessionException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp session, or
nullif 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 sessionsamlPeerBindingId- the saml peer binding IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next saml sp session
- Throws:
NoSuchSpSessionException- if a saml sp session with the primary key could not be foundNoSuchSpSessionException
-
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
Returns the saml sp session where jSessionId = ? or throws aNoSuchSpSessionExceptionif 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 foundNoSuchSpSessionException
-
fetchByJSessionId
Returns the saml sp session where jSessionId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
jSessionId- the j session ID- Returns:
- the matching saml sp session, or
nullif a matching saml sp session could not be found
-
fetchByJSessionId
Returns the saml sp session where jSessionId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
jSessionId- the j session IDuseFinderCache- whether to use the finder cache- Returns:
- the matching saml sp session, or
nullif a matching saml sp session could not be found
-
removeByJSessionId
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
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 aNoSuchSpSessionExceptionif 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 foundNoSuchSpSessionException
-
fetchBySamlSpSessionKey
Returns the saml sp session where samlSpSessionKey = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
samlSpSessionKey- the saml sp session key- Returns:
- the matching saml sp session, or
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
samlSpSessionKey- the saml sp session keyuseFinderCache- whether to use the finder cache- Returns:
- the matching saml sp session, or
nullif 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
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
Returns all the saml sp sessions where companyId = ? and sessionIndex = ?.- Parameters:
companyId- the company IDsessionIndex- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
companyId- the company IDsessionIndex- the session indexstart- the lower bound of the range of saml sp sessionsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
companyId- the company IDsessionIndex- the session indexstart- the lower bound of the range of saml sp sessionsend- the upper bound of the range of saml sp sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
companyId- the company IDsessionIndex- the session indexstart- the lower bound of the range of saml sp sessionsend- the upper bound of the range of saml sp sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDsessionIndex- the session indexorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml sp session
- Throws:
NoSuchSpSessionException- if a matching saml sp session could not be foundNoSuchSpSessionException
-
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 IDsessionIndex- the session indexorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml sp session, or
nullif 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 IDsessionIndex- the session indexorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp session
- Throws:
NoSuchSpSessionException- if a matching saml sp session could not be foundNoSuchSpSessionException
-
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 IDsessionIndex- the session indexorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp session, or
nullif 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 sessioncompanyId- the company IDsessionIndex- the session indexorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next saml sp session
- Throws:
NoSuchSpSessionException- if a saml sp session with the primary key could not be foundNoSuchSpSessionException
-
removeByC_SI
Removes all the saml sp sessions where companyId = ? and sessionIndex = ? from the database.- Parameters:
companyId- the company IDsessionIndex- the session index
-
countByC_SI
Returns the number of saml sp sessions where companyId = ? and sessionIndex = ?.- Parameters:
companyId- the company IDsessionIndex- the session index- Returns:
- the number of matching saml sp sessions
-
cacheResult
Caches the saml sp session in the entity cache if it is enabled.- Parameters:
samlSpSession- the saml sp session
-
cacheResult
Caches the saml sp sessions in the entity cache if it is enabled.- Parameters:
samlSpSessions- the saml sp sessions
-
create
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
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 foundNoSuchSpSessionException
-
updateImpl
-
findByPrimaryKey
Returns the saml sp session with the primary key or throws aNoSuchSpSessionExceptionif 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 foundNoSuchSpSessionException
-
fetchByPrimaryKey
Returns the saml sp session with the primary key or returnsnullif it could not be found.- Parameters:
samlSpSessionId- the primary key of the saml sp session- Returns:
- the saml sp session, or
nullif a saml sp session with the primary key could not be found
-
findAll
Returns all the saml sp sessions.- Returns:
- the saml sp sessions
-
findAll
Returns a range of all the saml sp sessions.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
start- the lower bound of the range of saml sp sessionsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
start- the lower bound of the range of saml sp sessionsend- the upper bound of the range of saml sp sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSamlSpSessionModelImpl.- Parameters:
start- the lower bound of the range of saml sp sessionsend- the upper bound of the range of saml sp sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-