public class SamlIdpSsoSessionUtil
extends java.lang.Object
com.liferay.saml.persistence.service.persistence.impl.SamlIdpSsoSessionPersistenceImpl
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
SamlIdpSsoSessionPersistence
Constructor and Description |
---|
SamlIdpSsoSessionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<SamlIdpSsoSession> samlIdpSsoSessions)
Caches the saml idp sso sessions in the entity cache if it is enabled.
|
static void |
cacheResult(SamlIdpSsoSession samlIdpSsoSession)
Caches the saml idp sso session in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SamlIdpSsoSession samlIdpSsoSession) |
static int |
countAll()
Returns the number of saml idp sso sessions.
|
static int |
countByLtCreateDate(java.util.Date createDate)
Returns the number of saml idp sso sessions where createDate < ?.
|
static int |
countBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey)
Returns the number of saml idp sso sessions where samlIdpSsoSessionKey = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static SamlIdpSsoSession |
create(long samlIdpSsoSessionId)
Creates a new saml idp sso session with the primary key.
|
static SamlIdpSsoSession |
fetchByLtCreateDate_First(java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
Returns the first saml idp sso session in the ordered set where createDate < ?.
|
static SamlIdpSsoSession |
fetchByLtCreateDate_Last(java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
Returns the last saml idp sso session in the ordered set where createDate < ?.
|
static SamlIdpSsoSession |
fetchByPrimaryKey(long samlIdpSsoSessionId)
Returns the saml idp sso session with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SamlIdpSsoSession> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static SamlIdpSsoSession |
fetchBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey)
Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returns
null if it could not be found. |
static SamlIdpSsoSession |
fetchBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey,
boolean useFinderCache)
Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<SamlIdpSsoSession> |
findAll()
Returns all the saml idp sso sessions.
|
static java.util.List<SamlIdpSsoSession> |
findAll(int start,
int end)
Returns a range of all the saml idp sso sessions.
|
static java.util.List<SamlIdpSsoSession> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
Returns an ordered range of all the saml idp sso sessions.
|
static java.util.List<SamlIdpSsoSession> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the saml idp sso sessions.
|
static SamlIdpSsoSession |
findByLtCreateDate_First(java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
Returns the first saml idp sso session in the ordered set where createDate < ?.
|
static SamlIdpSsoSession |
findByLtCreateDate_Last(java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
Returns the last saml idp sso session in the ordered set where createDate < ?.
|
static SamlIdpSsoSession[] |
findByLtCreateDate_PrevAndNext(long samlIdpSsoSessionId,
java.util.Date createDate,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
Returns the saml idp sso sessions before and after the current saml idp sso session in the ordered set where createDate < ?.
|
static java.util.List<SamlIdpSsoSession> |
findByLtCreateDate(java.util.Date createDate)
Returns all the saml idp sso sessions where createDate < ?.
|
static java.util.List<SamlIdpSsoSession> |
findByLtCreateDate(java.util.Date createDate,
int start,
int end)
Returns a range of all the saml idp sso sessions where createDate < ?.
|
static java.util.List<SamlIdpSsoSession> |
findByLtCreateDate(java.util.Date createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
Returns an ordered range of all the saml idp sso sessions where createDate < ?.
|
static java.util.List<SamlIdpSsoSession> |
findByLtCreateDate(java.util.Date createDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the saml idp sso sessions where createDate < ?.
|
static SamlIdpSsoSession |
findByPrimaryKey(long samlIdpSsoSessionId)
Returns the saml idp sso session with the primary key or throws a
NoSuchIdpSsoSessionException if it could not be found. |
static SamlIdpSsoSession |
findBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey)
Returns the saml idp sso session where samlIdpSsoSessionKey = ? or throws a
NoSuchIdpSsoSessionException if it could not be found. |
static java.util.List<SamlIdpSsoSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<SamlIdpSsoSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SamlIdpSsoSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) |
static SamlIdpSsoSessionPersistence |
getPersistence() |
static SamlIdpSsoSession |
remove(long samlIdpSsoSessionId)
Removes the saml idp sso session with the primary key from the database.
|
static void |
removeAll()
Removes all the saml idp sso sessions from the database.
|
static void |
removeByLtCreateDate(java.util.Date createDate)
Removes all the saml idp sso sessions where createDate < ? from the database.
|
static SamlIdpSsoSession |
removeBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey)
Removes the saml idp sso session where samlIdpSsoSessionKey = ? from the database.
|
static SamlIdpSsoSession |
update(SamlIdpSsoSession samlIdpSsoSession) |
static SamlIdpSsoSession |
update(SamlIdpSsoSession samlIdpSsoSession,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SamlIdpSsoSession |
updateImpl(SamlIdpSsoSession samlIdpSsoSession) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SamlIdpSsoSession samlIdpSsoSession)
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,SamlIdpSsoSession> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SamlIdpSsoSession update(SamlIdpSsoSession samlIdpSsoSession)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static SamlIdpSsoSession update(SamlIdpSsoSession samlIdpSsoSession, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<SamlIdpSsoSession> findByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static java.util.List<SamlIdpSsoSession> findByLtCreateDate(java.util.Date createDate, 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 SamlIdpSsoSessionModelImpl
.
createDate
- the create datestart
- the lower bound of the range of saml idp sso sessionsend
- the upper bound of the range of saml idp sso sessions (not inclusive)public static java.util.List<SamlIdpSsoSession> findByLtCreateDate(java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> 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 SamlIdpSsoSessionModelImpl
.
createDate
- the create datestart
- the lower bound of the range of saml idp sso sessionsend
- the upper bound of the range of saml idp sso sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SamlIdpSsoSession> findByLtCreateDate(java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> 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 SamlIdpSsoSessionModelImpl
.
createDate
- the create datestart
- the lower bound of the range of saml idp sso sessionsend
- the upper bound of the range of saml idp sso sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SamlIdpSsoSession findByLtCreateDate_First(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) throws NoSuchIdpSsoSessionException
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchIdpSsoSessionException
- if a matching saml idp sso session could not be foundpublic static SamlIdpSsoSession fetchByLtCreateDate_First(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml idp sso session could not be foundpublic static SamlIdpSsoSession findByLtCreateDate_Last(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) throws NoSuchIdpSsoSessionException
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchIdpSsoSessionException
- if a matching saml idp sso session could not be foundpublic static SamlIdpSsoSession fetchByLtCreateDate_Last(java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator)
createDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching saml idp sso session could not be foundpublic static SamlIdpSsoSession[] findByLtCreateDate_PrevAndNext(long samlIdpSsoSessionId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) throws NoSuchIdpSsoSessionException
samlIdpSsoSessionId
- the primary key of the current saml idp sso sessioncreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchIdpSsoSessionException
- if a saml idp sso session with the primary key could not be foundpublic static void removeByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static int countByLtCreateDate(java.util.Date createDate)
createDate
- the create datepublic static SamlIdpSsoSession findBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey) throws NoSuchIdpSsoSessionException
NoSuchIdpSsoSessionException
if it could not be found.samlIdpSsoSessionKey
- the saml idp sso session keyNoSuchIdpSsoSessionException
- if a matching saml idp sso session could not be foundpublic static SamlIdpSsoSession fetchBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey)
null
if it could not be found. Uses the finder cache.samlIdpSsoSessionKey
- the saml idp sso session keynull
if a matching saml idp sso session could not be foundpublic static SamlIdpSsoSession fetchBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.samlIdpSsoSessionKey
- the saml idp sso session keyuseFinderCache
- whether to use the finder cachenull
if a matching saml idp sso session could not be foundpublic static SamlIdpSsoSession removeBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey) throws NoSuchIdpSsoSessionException
samlIdpSsoSessionKey
- the saml idp sso session keyNoSuchIdpSsoSessionException
public static int countBySamlIdpSsoSessionKey(java.lang.String samlIdpSsoSessionKey)
samlIdpSsoSessionKey
- the saml idp sso session keypublic static void cacheResult(SamlIdpSsoSession samlIdpSsoSession)
samlIdpSsoSession
- the saml idp sso sessionpublic static void cacheResult(java.util.List<SamlIdpSsoSession> samlIdpSsoSessions)
samlIdpSsoSessions
- the saml idp sso sessionspublic static SamlIdpSsoSession create(long samlIdpSsoSessionId)
samlIdpSsoSessionId
- the primary key for the new saml idp sso sessionpublic static SamlIdpSsoSession remove(long samlIdpSsoSessionId) throws NoSuchIdpSsoSessionException
samlIdpSsoSessionId
- the primary key of the saml idp sso sessionNoSuchIdpSsoSessionException
- if a saml idp sso session with the primary key could not be foundpublic static SamlIdpSsoSession updateImpl(SamlIdpSsoSession samlIdpSsoSession)
public static SamlIdpSsoSession findByPrimaryKey(long samlIdpSsoSessionId) throws NoSuchIdpSsoSessionException
NoSuchIdpSsoSessionException
if it could not be found.samlIdpSsoSessionId
- the primary key of the saml idp sso sessionNoSuchIdpSsoSessionException
- if a saml idp sso session with the primary key could not be foundpublic static SamlIdpSsoSession fetchByPrimaryKey(long samlIdpSsoSessionId)
null
if it could not be found.samlIdpSsoSessionId
- the primary key of the saml idp sso sessionnull
if a saml idp sso session with the primary key could not be foundpublic static java.util.List<SamlIdpSsoSession> findAll()
public static java.util.List<SamlIdpSsoSession> 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 SamlIdpSsoSessionModelImpl
.
start
- the lower bound of the range of saml idp sso sessionsend
- the upper bound of the range of saml idp sso sessions (not inclusive)public static java.util.List<SamlIdpSsoSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> 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 SamlIdpSsoSessionModelImpl
.
start
- the lower bound of the range of saml idp sso sessionsend
- the upper bound of the range of saml idp sso sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<SamlIdpSsoSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> 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 SamlIdpSsoSessionModelImpl
.
start
- the lower bound of the range of saml idp sso sessionsend
- the upper bound of the range of saml idp sso 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 SamlIdpSsoSessionPersistence getPersistence()