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 |
countBySamlPeerBindingId(long samlPeerBindingId)
Returns the number of saml sp sessions where samlPeerBindingId = ?.
|
static int |
countBySamlSpSessionKey(java.lang.String samlSpSessionKey)
Returns the number of saml sp sessions where samlSpSessionKey = ?.
|
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_First(long companyId,
java.lang.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 SamlSpSession |
fetchByC_SI_Last(long companyId,
java.lang.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 |
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 |
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 |
fetchBySamlPeerBindingId_First(long samlPeerBindingId,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
Returns the first saml sp session in the ordered set where samlPeerBindingId = ?.
|
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 = ?.
|
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 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_First(long companyId,
java.lang.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 SamlSpSession |
findByC_SI_Last(long companyId,
java.lang.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,
java.lang.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 java.util.List<SamlSpSession> |
findByC_SI(long companyId,
java.lang.String sessionIndex)
Returns all the saml sp sessions where companyId = ? and sessionIndex = ?.
|
static java.util.List<SamlSpSession> |
findByC_SI(long companyId,
java.lang.String sessionIndex,
int start,
int end)
Returns a range of all the saml sp sessions where companyId = ? and sessionIndex = ?.
|
static java.util.List<SamlSpSession> |
findByC_SI(long companyId,
java.lang.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 java.util.List<SamlSpSession> |
findByC_SI(long companyId,
java.lang.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 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 |
findByPrimaryKey(long samlSpSessionId)
Returns the saml sp session with the primary key or throws a
NoSuchSpSessionException if it could not be found. |
static SamlSpSession |
findBySamlPeerBindingId_First(long samlPeerBindingId,
com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
Returns the first saml sp session in the ordered set where samlPeerBindingId = ?.
|
static SamlSpSession |
findBySamlPeerBindingId_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 java.util.List<SamlSpSession> |
findBySamlPeerBindingId(long samlPeerBindingId)
Returns all the saml sp sessions where samlPeerBindingId = ?.
|
static java.util.List<SamlSpSession> |
findBySamlPeerBindingId(long samlPeerBindingId,
int start,
int end)
Returns a range of all the saml sp sessions where samlPeerBindingId = ?.
|
static java.util.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 java.util.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 SamlSpSession |
findBySamlSpSessionKey(java.lang.String samlSpSessionKey)
Returns the saml sp session where samlSpSessionKey = ? 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 void |
removeByC_SI(long companyId,
java.lang.String sessionIndex)
Removes all the saml sp sessions 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 |
removeBySamlPeerBindingId(long samlPeerBindingId)
Removes all the saml sp sessions where samlPeerBindingId = ? from the database.
|
static SamlSpSession |
removeBySamlSpSessionKey(java.lang.String samlSpSessionKey)
Removes the saml sp session where samlSpSessionKey = ? 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 java.util.List<SamlSpSession> findBySamlPeerBindingId(long samlPeerBindingId)
samlPeerBindingId
- the saml peer binding IDpublic static java.util.List<SamlSpSession> findBySamlPeerBindingId(long samlPeerBindingId, 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
.
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)public static java.util.List<SamlSpSession> findBySamlPeerBindingId(long samlPeerBindingId, 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
.
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 (optionally null
)public static java.util.List<SamlSpSession> findBySamlPeerBindingId(long samlPeerBindingId, 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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static SamlSpSession findBySamlPeerBindingId_First(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
samlPeerBindingId
- the saml peer binding IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpSessionException
- if a matching saml sp session could not be foundpublic static SamlSpSession fetchBySamlPeerBindingId_First(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
samlPeerBindingId
- the saml peer binding IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp session could not be foundpublic static SamlSpSession findBySamlPeerBindingId_Last(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
samlPeerBindingId
- the saml peer binding IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpSessionException
- if a matching saml sp session could not be foundpublic static SamlSpSession fetchBySamlPeerBindingId_Last(long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
samlPeerBindingId
- the saml peer binding IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp session could not be foundpublic static SamlSpSession[] findBySamlPeerBindingId_PrevAndNext(long samlSpSessionId, long samlPeerBindingId, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
samlSpSessionId
- the primary key of the current saml sp sessionsamlPeerBindingId
- the saml peer binding IDorderByComparator
- 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 removeBySamlPeerBindingId(long samlPeerBindingId)
samlPeerBindingId
- the saml peer binding IDpublic static int countBySamlPeerBindingId(long samlPeerBindingId)
samlPeerBindingId
- the saml peer binding IDpublic 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 IDNoSuchSpSessionException
public static int countByJSessionId(java.lang.String jSessionId)
jSessionId
- the j session IDpublic 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 keyNoSuchSpSessionException
public static int countBySamlSpSessionKey(java.lang.String samlSpSessionKey)
samlSpSessionKey
- the saml sp session keypublic static java.util.List<SamlSpSession> findByC_SI(long companyId, java.lang.String sessionIndex)
companyId
- the company IDsessionIndex
- the session indexpublic static java.util.List<SamlSpSession> findByC_SI(long companyId, java.lang.String sessionIndex, 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
.
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)public static java.util.List<SamlSpSession> findByC_SI(long companyId, java.lang.String sessionIndex, 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
.
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 (optionally null
)public static java.util.List<SamlSpSession> findByC_SI(long companyId, java.lang.String sessionIndex, 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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static SamlSpSession findByC_SI_First(long companyId, java.lang.String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
companyId
- the company IDsessionIndex
- the session indexorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpSessionException
- if a matching saml sp session could not be foundpublic static SamlSpSession fetchByC_SI_First(long companyId, java.lang.String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
companyId
- the company IDsessionIndex
- the session indexorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp session could not be foundpublic static SamlSpSession findByC_SI_Last(long companyId, java.lang.String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
companyId
- the company IDsessionIndex
- the session indexorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSpSessionException
- if a matching saml sp session could not be foundpublic static SamlSpSession fetchByC_SI_Last(long companyId, java.lang.String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator)
companyId
- the company IDsessionIndex
- the session indexorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml sp session could not be foundpublic static SamlSpSession[] findByC_SI_PrevAndNext(long samlSpSessionId, long companyId, java.lang.String sessionIndex, com.liferay.portal.kernel.util.OrderByComparator<SamlSpSession> orderByComparator) throws NoSuchSpSessionException
samlSpSessionId
- the primary key of the current saml sp sessioncompanyId
- the company IDsessionIndex
- the session indexorderByComparator
- 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 removeByC_SI(long companyId, java.lang.String sessionIndex)
companyId
- the company IDsessionIndex
- the session indexpublic 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()