public class OpenIdConnectSessionUtil
extends java.lang.Object
com.liferay.portal.security.sso.openid.connect.persistence.service.persistence.impl.OpenIdConnectSessionPersistenceImpl
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
OpenIdConnectSessionPersistence
Constructor and Description |
---|
OpenIdConnectSessionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<OpenIdConnectSession> openIdConnectSessions)
Caches the open ID connect sessions in the entity cache if it is enabled.
|
static void |
cacheResult(OpenIdConnectSession openIdConnectSession)
Caches the open ID connect session in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(OpenIdConnectSession openIdConnectSession) |
static int |
countAll()
Returns the number of open ID connect sessions.
|
static int |
countByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Returns the number of open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static int |
countByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate)
Returns the number of open ID connect sessions where accessTokenExpirationDate < ?.
|
static int |
countByU_A_C(long userId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Returns the number of open ID connect sessions where userId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static int |
countByUserId(long userId)
Returns the number of open ID connect sessions where userId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static OpenIdConnectSession |
create(long openIdConnectSessionId)
Creates a new open ID connect session with the primary key.
|
static OpenIdConnectSession |
fetchByC_A_C_First(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the first open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static OpenIdConnectSession |
fetchByC_A_C_Last(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the last open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static OpenIdConnectSession |
fetchByLtAccessTokenExpirationDate_First(java.util.Date accessTokenExpirationDate,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the first open ID connect session in the ordered set where accessTokenExpirationDate < ?.
|
static OpenIdConnectSession |
fetchByLtAccessTokenExpirationDate_Last(java.util.Date accessTokenExpirationDate,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the last open ID connect session in the ordered set where accessTokenExpirationDate < ?.
|
static OpenIdConnectSession |
fetchByPrimaryKey(long openIdConnectSessionId)
Returns the open ID connect session with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,OpenIdConnectSession> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static OpenIdConnectSession |
fetchByU_A_C(long userId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or returns
null if it could not be found. |
static OpenIdConnectSession |
fetchByU_A_C(long userId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
boolean useFinderCache)
Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or returns
null if it could not be found, optionally using the finder cache. |
static OpenIdConnectSession |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the first open ID connect session in the ordered set where userId = ?.
|
static OpenIdConnectSession |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the last open ID connect session in the ordered set where userId = ?.
|
static java.util.List<OpenIdConnectSession> |
findAll()
Returns all the open ID connect sessions.
|
static java.util.List<OpenIdConnectSession> |
findAll(int start,
int end)
Returns a range of all the open ID connect sessions.
|
static java.util.List<OpenIdConnectSession> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns an ordered range of all the open ID connect sessions.
|
static java.util.List<OpenIdConnectSession> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the open ID connect sessions.
|
static OpenIdConnectSession |
findByC_A_C_First(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the first open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static OpenIdConnectSession |
findByC_A_C_Last(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the last open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static OpenIdConnectSession[] |
findByC_A_C_PrevAndNext(long openIdConnectSessionId,
long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static java.util.List<OpenIdConnectSession> |
findByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Returns all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static java.util.List<OpenIdConnectSession> |
findByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
int start,
int end)
Returns a range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static java.util.List<OpenIdConnectSession> |
findByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns an ordered range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static java.util.List<OpenIdConnectSession> |
findByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.
|
static OpenIdConnectSession |
findByLtAccessTokenExpirationDate_First(java.util.Date accessTokenExpirationDate,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the first open ID connect session in the ordered set where accessTokenExpirationDate < ?.
|
static OpenIdConnectSession |
findByLtAccessTokenExpirationDate_Last(java.util.Date accessTokenExpirationDate,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the last open ID connect session in the ordered set where accessTokenExpirationDate < ?.
|
static OpenIdConnectSession[] |
findByLtAccessTokenExpirationDate_PrevAndNext(long openIdConnectSessionId,
java.util.Date accessTokenExpirationDate,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where accessTokenExpirationDate < ?.
|
static java.util.List<OpenIdConnectSession> |
findByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate)
Returns all the open ID connect sessions where accessTokenExpirationDate < ?.
|
static java.util.List<OpenIdConnectSession> |
findByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate,
int start,
int end)
Returns a range of all the open ID connect sessions where accessTokenExpirationDate < ?.
|
static java.util.List<OpenIdConnectSession> |
findByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns an ordered range of all the open ID connect sessions where accessTokenExpirationDate < ?.
|
static java.util.List<OpenIdConnectSession> |
findByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the open ID connect sessions where accessTokenExpirationDate < ?.
|
static OpenIdConnectSession |
findByPrimaryKey(long openIdConnectSessionId)
Returns the open ID connect session with the primary key or throws a
NoSuchSessionException if it could not be found. |
static OpenIdConnectSession |
findByU_A_C(long userId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or throws a
NoSuchSessionException if it could not be found. |
static OpenIdConnectSession |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the first open ID connect session in the ordered set where userId = ?.
|
static OpenIdConnectSession |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the last open ID connect session in the ordered set where userId = ?.
|
static OpenIdConnectSession[] |
findByUserId_PrevAndNext(long openIdConnectSessionId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where userId = ?.
|
static java.util.List<OpenIdConnectSession> |
findByUserId(long userId)
Returns all the open ID connect sessions where userId = ?.
|
static java.util.List<OpenIdConnectSession> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the open ID connect sessions where userId = ?.
|
static java.util.List<OpenIdConnectSession> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns an ordered range of all the open ID connect sessions where userId = ?.
|
static java.util.List<OpenIdConnectSession> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the open ID connect sessions where userId = ?.
|
static java.util.List<OpenIdConnectSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<OpenIdConnectSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<OpenIdConnectSession> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) |
static OpenIdConnectSessionPersistence |
getPersistence() |
static OpenIdConnectSession |
remove(long openIdConnectSessionId)
Removes the open ID connect session with the primary key from the database.
|
static void |
removeAll()
Removes all the open ID connect sessions from the database.
|
static void |
removeByC_A_C(long companyId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Removes all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ? from the database.
|
static void |
removeByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate)
Removes all the open ID connect sessions where accessTokenExpirationDate < ? from the database.
|
static OpenIdConnectSession |
removeByU_A_C(long userId,
java.lang.String authServerWellKnownURI,
java.lang.String clientId)
Removes the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the open ID connect sessions where userId = ? from the database.
|
static void |
setPersistence(OpenIdConnectSessionPersistence persistence) |
static OpenIdConnectSession |
update(OpenIdConnectSession openIdConnectSession) |
static OpenIdConnectSession |
update(OpenIdConnectSession openIdConnectSession,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static OpenIdConnectSession |
updateImpl(OpenIdConnectSession openIdConnectSession) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(OpenIdConnectSession openIdConnectSession)
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,OpenIdConnectSession> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static OpenIdConnectSession update(OpenIdConnectSession openIdConnectSession)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static OpenIdConnectSession update(OpenIdConnectSession openIdConnectSession, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<OpenIdConnectSession> findByUserId(long userId)
userId
- the user IDpublic static java.util.List<OpenIdConnectSession> findByUserId(long userId, 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 OpenIdConnectSessionModelImpl
.
userId
- the user IDstart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)public static java.util.List<OpenIdConnectSession> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
userId
- the user IDstart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OpenIdConnectSession> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
userId
- the user IDstart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OpenIdConnectSession findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a matching open ID connect session could not be foundpublic static OpenIdConnectSession fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching open ID connect session could not be foundpublic static OpenIdConnectSession findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a matching open ID connect session could not be foundpublic static OpenIdConnectSession fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching open ID connect session could not be foundpublic static OpenIdConnectSession[] findByUserId_PrevAndNext(long openIdConnectSessionId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
openIdConnectSessionId
- the primary key of the current open ID connect sessionuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a open ID connect session with the primary key could not be foundpublic static void removeByUserId(long userId)
userId
- the user IDpublic static int countByUserId(long userId)
userId
- the user IDpublic static java.util.List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate)
accessTokenExpirationDate
- the access token expiration datepublic static java.util.List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate, 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 OpenIdConnectSessionModelImpl
.
accessTokenExpirationDate
- the access token expiration datestart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)public static java.util.List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
accessTokenExpirationDate
- the access token expiration datestart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
accessTokenExpirationDate
- the access token expiration datestart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OpenIdConnectSession findByLtAccessTokenExpirationDate_First(java.util.Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
accessTokenExpirationDate
- the access token expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a matching open ID connect session could not be foundpublic static OpenIdConnectSession fetchByLtAccessTokenExpirationDate_First(java.util.Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
accessTokenExpirationDate
- the access token expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching open ID connect session could not be foundpublic static OpenIdConnectSession findByLtAccessTokenExpirationDate_Last(java.util.Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
accessTokenExpirationDate
- the access token expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a matching open ID connect session could not be foundpublic static OpenIdConnectSession fetchByLtAccessTokenExpirationDate_Last(java.util.Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
accessTokenExpirationDate
- the access token expiration dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching open ID connect session could not be foundpublic static OpenIdConnectSession[] findByLtAccessTokenExpirationDate_PrevAndNext(long openIdConnectSessionId, java.util.Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
openIdConnectSessionId
- the primary key of the current open ID connect sessionaccessTokenExpirationDate
- the access token expiration dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a open ID connect session with the primary key could not be foundpublic static void removeByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate)
accessTokenExpirationDate
- the access token expiration datepublic static int countByLtAccessTokenExpirationDate(java.util.Date accessTokenExpirationDate)
accessTokenExpirationDate
- the access token expiration datepublic static java.util.List<OpenIdConnectSession> findByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDpublic static java.util.List<OpenIdConnectSession> findByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, 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 OpenIdConnectSessionModelImpl
.
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDstart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)public static java.util.List<OpenIdConnectSession> findByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDstart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OpenIdConnectSession> findByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDstart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static OpenIdConnectSession findByC_A_C_First(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a matching open ID connect session could not be foundpublic static OpenIdConnectSession fetchByC_A_C_First(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching open ID connect session could not be foundpublic static OpenIdConnectSession findByC_A_C_Last(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a matching open ID connect session could not be foundpublic static OpenIdConnectSession fetchByC_A_C_Last(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching open ID connect session could not be foundpublic static OpenIdConnectSession[] findByC_A_C_PrevAndNext(long openIdConnectSessionId, long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
openIdConnectSessionId
- the primary key of the current open ID connect sessioncompanyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a open ID connect session with the primary key could not be foundpublic static void removeByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDpublic static int countByC_A_C(long companyId, java.lang.String authServerWellKnownURI, java.lang.String clientId)
companyId
- the company IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDpublic static OpenIdConnectSession findByU_A_C(long userId, java.lang.String authServerWellKnownURI, java.lang.String clientId) throws NoSuchSessionException
NoSuchSessionException
if it could not be found.userId
- the user IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDNoSuchSessionException
- if a matching open ID connect session could not be foundpublic static OpenIdConnectSession fetchByU_A_C(long userId, java.lang.String authServerWellKnownURI, java.lang.String clientId)
null
if it could not be found. Uses the finder cache.userId
- the user IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDnull
if a matching open ID connect session could not be foundpublic static OpenIdConnectSession fetchByU_A_C(long userId, java.lang.String authServerWellKnownURI, java.lang.String clientId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDuseFinderCache
- whether to use the finder cachenull
if a matching open ID connect session could not be foundpublic static OpenIdConnectSession removeByU_A_C(long userId, java.lang.String authServerWellKnownURI, java.lang.String clientId) throws NoSuchSessionException
userId
- the user IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDNoSuchSessionException
public static int countByU_A_C(long userId, java.lang.String authServerWellKnownURI, java.lang.String clientId)
userId
- the user IDauthServerWellKnownURI
- the auth server well known uriclientId
- the client IDpublic static void cacheResult(OpenIdConnectSession openIdConnectSession)
openIdConnectSession
- the open ID connect sessionpublic static void cacheResult(java.util.List<OpenIdConnectSession> openIdConnectSessions)
openIdConnectSessions
- the open ID connect sessionspublic static OpenIdConnectSession create(long openIdConnectSessionId)
openIdConnectSessionId
- the primary key for the new open ID connect sessionpublic static OpenIdConnectSession remove(long openIdConnectSessionId) throws NoSuchSessionException
openIdConnectSessionId
- the primary key of the open ID connect sessionNoSuchSessionException
- if a open ID connect session with the primary key could not be foundpublic static OpenIdConnectSession updateImpl(OpenIdConnectSession openIdConnectSession)
public static OpenIdConnectSession findByPrimaryKey(long openIdConnectSessionId) throws NoSuchSessionException
NoSuchSessionException
if it could not be found.openIdConnectSessionId
- the primary key of the open ID connect sessionNoSuchSessionException
- if a open ID connect session with the primary key could not be foundpublic static OpenIdConnectSession fetchByPrimaryKey(long openIdConnectSessionId)
null
if it could not be found.openIdConnectSessionId
- the primary key of the open ID connect sessionnull
if a open ID connect session with the primary key could not be foundpublic static java.util.List<OpenIdConnectSession> findAll()
public static java.util.List<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
start
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)public static java.util.List<OpenIdConnectSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
start
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<OpenIdConnectSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> 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 OpenIdConnectSessionModelImpl
.
start
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect 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 OpenIdConnectSessionPersistence getPersistence()
public static void setPersistence(OpenIdConnectSessionPersistence persistence)