public class SamlSpSessionUtil
extends java.lang.Object
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
SamlSpSessionPersistence| Constructor and Description |
|---|
SamlSpSessionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(java.util.List<SamlSpSession> samlSpSessions)
Caches the saml sp sessions in the entity cache if it is enabled.
|
static void |
cacheResult(SamlSpSession samlSpSession)
Caches the saml sp session in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SamlSpSession samlSpSession) |
static int |
countAll()
Returns the number of saml sp sessions.
|
static int |
countByC_SI(long companyId,
java.lang.String sessionIndex)
Returns the number of saml sp sessions where companyId = ? and sessionIndex = ?.
|
static int |
countByJSessionId(java.lang.String jSessionId)
Returns the number of saml sp sessions where jSessionId = ?.
|
static int |
countByNameIdValue(java.lang.String nameIdValue)
Returns the number of saml sp sessions where nameIdValue = ?.
|
static int |
countBySamlSpSessionKey(java.lang.String samlSpSessionKey)
Returns the number of saml sp sessions where samlSpSessionKey = ?.
|
static int |
countBySessionIndex(java.lang.String sessionIndex)
Returns the number of saml sp sessions where sessionIndex = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SamlSpSession |
create(long samlSpSessionId)
Creates a new saml sp session with the primary key.
|
static SamlSpSession |
fetchByC_SI(long companyId,
java.lang.String sessionIndex)
Returns the saml sp session where companyId = ? and sessionIndex = ? or returns
null if it could not be found. |
static SamlSpSession |
fetchByC_SI(long companyId,
java.lang.String sessionIndex,
boolean useFinderCache)
Returns the saml sp session where companyId = ? and sessionIndex = ? or returns
null if it could not be found, optionally using the finder cache. |
static SamlSpSession |
fetchByJSessionId(java.lang.String jSessionId)
Returns the saml sp session where jSessionId = ? or returns
null if it could not be found. |
static SamlSpSession |
fetchByJSessionId(java.lang.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. |
static SamlSpSession |
fetchByNameIdValue_First(java.lang.String nameIdValue,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
Returns the first saml sp session in the ordered set where nameIdValue = ?.
|
static SamlSpSession |
fetchByNameIdValue_Last(java.lang.String nameIdValue,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
Returns the last saml sp session in the ordered set where nameIdValue = ?.
|
static SamlSpSession |
fetchByPrimaryKey(long samlSpSessionId)
Returns the saml sp session with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SamlSpSession> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static SamlSpSession |
fetchBySamlSpSessionKey(java.lang.String samlSpSessionKey)
Returns the saml sp session where samlSpSessionKey = ? or returns
null if it could not be found. |
static SamlSpSession |
fetchBySamlSpSessionKey(java.lang.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. |
static SamlSpSession |
fetchBySessionIndex(java.lang.String sessionIndex)
Returns the saml sp session where sessionIndex = ? or returns
null if it could not be found. |
static SamlSpSession |
fetchBySessionIndex(java.lang.String sessionIndex,
boolean useFinderCache)
Returns the saml sp session where sessionIndex = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<SamlSpSession> |
findAll()
Returns all the saml sp sessions.
|
static java.util.List<SamlSpSession> |
findAll(int start,
int end)
Returns a range of all the saml sp sessions.
|
static java.util.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 java.util.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 SamlSpSession |
findByC_SI(long companyId,
java.lang.String sessionIndex)
Returns the saml sp session where companyId = ? and sessionIndex = ? or throws a
NoSuchSpSessionException if it could not be found. |
static SamlSpSession |
findByJSessionId(java.lang.String jSessionId)
Returns the saml sp session where jSessionId = ? or throws a
NoSuchSpSessionException if it could not be found. |
static SamlSpSession |
findByNameIdValue_First(java.lang.String nameIdValue,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
Returns the first saml sp session in the ordered set where nameIdValue = ?.
|
static SamlSpSession |
findByNameIdValue_Last(java.lang.String nameIdValue,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
Returns the last saml sp session in the ordered set where nameIdValue = ?.
|
static SamlSpSession[] |
findByNameIdValue_PrevAndNext(long samlSpSessionId,
java.lang.String nameIdValue,
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 nameIdValue = ?.
|
static java.util.List<SamlSpSession> |
findByNameIdValue(java.lang.String nameIdValue)
Returns all the saml sp sessions where nameIdValue = ?.
|
static java.util.List<SamlSpSession> |
findByNameIdValue(java.lang.String nameIdValue,
int start,
int end)
Returns a range of all the saml sp sessions where nameIdValue = ?.
|
static java.util.List<SamlSpSession> |
findByNameIdValue(java.lang.String nameIdValue,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
Returns an ordered range of all the saml sp sessions where nameIdValue = ?.
|
static java.util.List<SamlSpSession> |
findByNameIdValue(java.lang.String nameIdValue,
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 nameIdValue = ?.
|
static SamlSpSession |
findByPrimaryKey(long samlSpSessionId)
Returns the saml sp session with the primary key or throws a
NoSuchSpSessionException if it could not be found. |
static SamlSpSession |
findBySamlSpSessionKey(java.lang.String samlSpSessionKey)
Returns the saml sp session where samlSpSessionKey = ? or throws a
NoSuchSpSessionException if it could not be found. |
static SamlSpSession |
findBySessionIndex(java.lang.String sessionIndex)
Returns the saml sp session where sessionIndex = ? or throws a
NoSuchSpSessionException if it could not be found. |
static java.util.List<SamlSpSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SamlSpSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SamlSpSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) |
static SamlSpSessionPersistence |
getPersistence() |
static SamlSpSession |
remove(long samlSpSessionId)
Removes the saml sp session with the primary key from the database.
|
static void |
removeAll()
Removes all the saml sp sessions from the database.
|
static SamlSpSession |
removeByC_SI(long companyId,
java.lang.String sessionIndex)
Removes the saml sp session where companyId = ? and sessionIndex = ? from the database.
|
static SamlSpSession |
removeByJSessionId(java.lang.String jSessionId)
Removes the saml sp session where jSessionId = ? from the database.
|
static void |
removeByNameIdValue(java.lang.String nameIdValue)
Removes all the saml sp sessions where nameIdValue = ? from the database.
|
static SamlSpSession |
removeBySamlSpSessionKey(java.lang.String samlSpSessionKey)
Removes the saml sp session where samlSpSessionKey = ? from the database.
|
static SamlSpSession |
removeBySessionIndex(java.lang.String sessionIndex)
Removes the saml sp session where sessionIndex = ? from the database.
|
static SamlSpSession |
update(SamlSpSession samlSpSession) |
static SamlSpSession |
update(SamlSpSession samlSpSession,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SamlSpSession |
updateImpl(SamlSpSession samlSpSession) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(SamlSpSession samlSpSession)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.Map<java.io.Serializable,SamlSpSession> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<SamlSpSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<SamlSpSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<SamlSpSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static SamlSpSession update(SamlSpSession samlSpSession)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static SamlSpSession update(SamlSpSession samlSpSession, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static SamlSpSession findBySamlSpSessionKey(java.lang.String samlSpSessionKey) throws NoSuchSpSessionException
NoSuchSpSessionException if it could not be found.samlSpSessionKey - the saml sp session keyNoSuchSpSessionException - if a matching saml sp session could not be foundpublic static SamlSpSession fetchBySamlSpSessionKey(java.lang.String samlSpSessionKey)
null if it could not be found. Uses the finder cache.samlSpSessionKey - the saml sp session keynull if a matching saml sp session could not be foundpublic static SamlSpSession fetchBySamlSpSessionKey(java.lang.String samlSpSessionKey, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.samlSpSessionKey - the saml sp session keyuseFinderCache - whether to use the finder cachenull if a matching saml sp session could not be foundpublic static SamlSpSession removeBySamlSpSessionKey(java.lang.String samlSpSessionKey) throws NoSuchSpSessionException
samlSpSessionKey - the saml sp session keyNoSuchSpSessionExceptionpublic static int countBySamlSpSessionKey(java.lang.String samlSpSessionKey)
samlSpSessionKey - the saml sp session keypublic static SamlSpSession findByJSessionId(java.lang.String jSessionId) throws NoSuchSpSessionException
NoSuchSpSessionException if it could not be found.jSessionId - the j session IDNoSuchSpSessionException - if a matching saml sp session could not be foundpublic static SamlSpSession fetchByJSessionId(java.lang.String jSessionId)
null if it could not be found. Uses the finder cache.jSessionId - the j session IDnull if a matching saml sp session could not be foundpublic static SamlSpSession fetchByJSessionId(java.lang.String jSessionId, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.jSessionId - the j session IDuseFinderCache - whether to use the finder cachenull if a matching saml sp session could not be foundpublic static SamlSpSession removeByJSessionId(java.lang.String jSessionId) throws NoSuchSpSessionException
jSessionId - the j session IDNoSuchSpSessionExceptionpublic static int countByJSessionId(java.lang.String jSessionId)
jSessionId - the j session IDpublic static java.util.List<SamlSpSession> findByNameIdValue(java.lang.String nameIdValue)
nameIdValue - the name ID valuepublic static java.util.List<SamlSpSession> findByNameIdValue(java.lang.String nameIdValue, int start, int end)
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.
nameIdValue - the name ID valuestart - the lower bound of the range of saml sp sessionsend - the upper bound of the range of saml sp sessions (not inclusive)public static java.util.List<SamlSpSession> findByNameIdValue(java.lang.String nameIdValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
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.
nameIdValue - the name ID valuestart - 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 (optionally null)public static java.util.List<SamlSpSession> findByNameIdValue(java.lang.String nameIdValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator, boolean useFinderCache)
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.
nameIdValue - the name ID valuestart - 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 (optionally null)useFinderCache - whether to use the finder cachepublic static SamlSpSession findByNameIdValue_First(java.lang.String nameIdValue, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
nameIdValue - the name ID valueorderByComparator - the comparator to order the set by (optionally null)NoSuchSpSessionException - if a matching saml sp session could not be foundpublic static SamlSpSession fetchByNameIdValue_First(java.lang.String nameIdValue, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
nameIdValue - the name ID valueorderByComparator - the comparator to order the set by (optionally null)null if a matching saml sp session could not be foundpublic static SamlSpSession findByNameIdValue_Last(java.lang.String nameIdValue, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
nameIdValue - the name ID valueorderByComparator - the comparator to order the set by (optionally null)NoSuchSpSessionException - if a matching saml sp session could not be foundpublic static SamlSpSession fetchByNameIdValue_Last(java.lang.String nameIdValue, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
nameIdValue - the name ID valueorderByComparator - the comparator to order the set by (optionally null)null if a matching saml sp session could not be foundpublic static SamlSpSession[] findByNameIdValue_PrevAndNext(long samlSpSessionId, java.lang.String nameIdValue, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
samlSpSessionId - the primary key of the current saml sp sessionnameIdValue - the name ID valueorderByComparator - the comparator to order the set by (optionally null)NoSuchSpSessionException - if a saml sp session with the primary key could not be foundpublic static void removeByNameIdValue(java.lang.String nameIdValue)
nameIdValue - the name ID valuepublic static int countByNameIdValue(java.lang.String nameIdValue)
nameIdValue - the name ID valuepublic static SamlSpSession findBySessionIndex(java.lang.String sessionIndex) throws NoSuchSpSessionException
NoSuchSpSessionException if it could not be found.sessionIndex - the session indexNoSuchSpSessionException - if a matching saml sp session could not be foundpublic static SamlSpSession fetchBySessionIndex(java.lang.String sessionIndex)
null if it could not be found. Uses the finder cache.sessionIndex - the session indexnull if a matching saml sp session could not be foundpublic static SamlSpSession fetchBySessionIndex(java.lang.String sessionIndex, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.sessionIndex - the session indexuseFinderCache - whether to use the finder cachenull if a matching saml sp session could not be foundpublic static SamlSpSession removeBySessionIndex(java.lang.String sessionIndex) throws NoSuchSpSessionException
sessionIndex - the session indexNoSuchSpSessionExceptionpublic static int countBySessionIndex(java.lang.String sessionIndex)
sessionIndex - the session indexpublic static SamlSpSession findByC_SI(long companyId, java.lang.String sessionIndex) throws NoSuchSpSessionException
NoSuchSpSessionException if it could not be found.companyId - the company IDsessionIndex - the session indexNoSuchSpSessionException - if a matching saml sp session could not be foundpublic static SamlSpSession fetchByC_SI(long companyId, java.lang.String sessionIndex)
null if it could not be found. Uses the finder cache.companyId - the company IDsessionIndex - the session indexnull if a matching saml sp session could not be foundpublic static SamlSpSession fetchByC_SI(long companyId, java.lang.String sessionIndex, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.companyId - the company IDsessionIndex - the session indexuseFinderCache - whether to use the finder cachenull if a matching saml sp session could not be foundpublic static SamlSpSession removeByC_SI(long companyId, java.lang.String sessionIndex) throws NoSuchSpSessionException
companyId - the company IDsessionIndex - the session indexNoSuchSpSessionExceptionpublic static int countByC_SI(long companyId,
java.lang.String sessionIndex)
companyId - the company IDsessionIndex - the session indexpublic static void cacheResult(SamlSpSession samlSpSession)
samlSpSession - the saml sp sessionpublic static void cacheResult(java.util.List<SamlSpSession> samlSpSessions)
samlSpSessions - the saml sp sessionspublic static SamlSpSession create(long samlSpSessionId)
samlSpSessionId - the primary key for the new saml sp sessionpublic static SamlSpSession remove(long samlSpSessionId) throws NoSuchSpSessionException
samlSpSessionId - the primary key of the saml sp sessionNoSuchSpSessionException - if a saml sp session with the primary key could not be foundpublic static SamlSpSession updateImpl(SamlSpSession samlSpSession)
public static SamlSpSession findByPrimaryKey(long samlSpSessionId) throws NoSuchSpSessionException
NoSuchSpSessionException if it could not be found.samlSpSessionId - the primary key of the saml sp sessionNoSuchSpSessionException - if a saml sp session with the primary key could not be foundpublic static SamlSpSession fetchByPrimaryKey(long samlSpSessionId)
null if it could not be found.samlSpSessionId - the primary key of the saml sp sessionnull if a saml sp session with the primary key could not be foundpublic static java.util.List<SamlSpSession> findAll()
public static java.util.List<SamlSpSession> findAll(int start, int end)
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.
start - the lower bound of the range of saml sp sessionsend - the upper bound of the range of saml sp sessions (not inclusive)public static java.util.List<SamlSpSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
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.
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 (optionally null)public static java.util.List<SamlSpSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator, boolean useFinderCache)
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.
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 (optionally null)useFinderCache - whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static SamlSpSessionPersistence getPersistence()