@ProviderType public interface OpenIdConnectSessionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<OpenIdConnectSession>
Caching information and settings can be found in portal.properties
OpenIdConnectSessionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<OpenIdConnectSession> openIdConnectSessions)
Caches the open ID connect sessions in the entity cache if it is enabled.
|
void |
cacheResult(OpenIdConnectSession openIdConnectSession)
Caches the open ID connect session in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of open ID connect sessions.
|
int |
countByConfigurationPid(java.lang.String configurationPid)
Returns the number of open ID connect sessions where configurationPid = ?.
|
int |
countByU_C(long userId,
java.lang.String configurationPid)
Returns the number of open ID connect sessions where userId = ? and configurationPid = ?.
|
int |
countByUserId(long userId)
Returns the number of open ID connect sessions where userId = ?.
|
OpenIdConnectSession |
create(long openIdConnectSessionId)
Creates a new open ID connect session with the primary key.
|
OpenIdConnectSession |
fetchByConfigurationPid_First(java.lang.String configurationPid,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the first open ID connect session in the ordered set where configurationPid = ?.
|
OpenIdConnectSession |
fetchByConfigurationPid_Last(java.lang.String configurationPid,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the last open ID connect session in the ordered set where configurationPid = ?.
|
OpenIdConnectSession |
fetchByPrimaryKey(long openIdConnectSessionId)
Returns the open ID connect session with the primary key or returns
null if it could not be found. |
OpenIdConnectSession |
fetchByU_C(long userId,
java.lang.String configurationPid)
Returns the open ID connect session where userId = ? and configurationPid = ? or returns
null if it could not be found. |
OpenIdConnectSession |
fetchByU_C(long userId,
java.lang.String configurationPid,
boolean useFinderCache)
Returns the open ID connect session where userId = ? and configurationPid = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
java.util.List<OpenIdConnectSession> |
findAll()
Returns all the open ID connect sessions.
|
java.util.List<OpenIdConnectSession> |
findAll(int start,
int end)
Returns a range of all the open ID connect sessions.
|
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.
|
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.
|
OpenIdConnectSession |
findByConfigurationPid_First(java.lang.String configurationPid,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the first open ID connect session in the ordered set where configurationPid = ?.
|
OpenIdConnectSession |
findByConfigurationPid_Last(java.lang.String configurationPid,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns the last open ID connect session in the ordered set where configurationPid = ?.
|
OpenIdConnectSession[] |
findByConfigurationPid_PrevAndNext(long openIdConnectSessionId,
java.lang.String configurationPid,
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 configurationPid = ?.
|
java.util.List<OpenIdConnectSession> |
findByConfigurationPid(java.lang.String configurationPid)
Returns all the open ID connect sessions where configurationPid = ?.
|
java.util.List<OpenIdConnectSession> |
findByConfigurationPid(java.lang.String configurationPid,
int start,
int end)
Returns a range of all the open ID connect sessions where configurationPid = ?.
|
java.util.List<OpenIdConnectSession> |
findByConfigurationPid(java.lang.String configurationPid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
Returns an ordered range of all the open ID connect sessions where configurationPid = ?.
|
java.util.List<OpenIdConnectSession> |
findByConfigurationPid(java.lang.String configurationPid,
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 configurationPid = ?.
|
OpenIdConnectSession |
findByPrimaryKey(long openIdConnectSessionId)
Returns the open ID connect session with the primary key or throws a
NoSuchSessionException if it could not be found. |
OpenIdConnectSession |
findByU_C(long userId,
java.lang.String configurationPid)
Returns the open ID connect session where userId = ? and configurationPid = ? or throws a
NoSuchSessionException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<OpenIdConnectSession> |
findByUserId(long userId)
Returns all the open ID connect sessions where userId = ?.
|
java.util.List<OpenIdConnectSession> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the open ID connect sessions where userId = ?.
|
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 = ?.
|
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 = ?.
|
OpenIdConnectSession |
remove(long openIdConnectSessionId)
Removes the open ID connect session with the primary key from the database.
|
void |
removeAll()
Removes all the open ID connect sessions from the database.
|
void |
removeByConfigurationPid(java.lang.String configurationPid)
Removes all the open ID connect sessions where configurationPid = ? from the database.
|
OpenIdConnectSession |
removeByU_C(long userId,
java.lang.String configurationPid)
Removes the open ID connect session where userId = ? and configurationPid = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the open ID connect sessions where userId = ? from the database.
|
OpenIdConnectSession |
updateImpl(OpenIdConnectSession openIdConnectSession) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<OpenIdConnectSession> findByUserId(long userId)
userId
- the user IDjava.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)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
)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 cacheOpenIdConnectSession 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 foundOpenIdConnectSession 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 foundOpenIdConnectSession 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 foundOpenIdConnectSession 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 foundOpenIdConnectSession[] 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 foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDjava.util.List<OpenIdConnectSession> findByConfigurationPid(java.lang.String configurationPid)
configurationPid
- the configuration pidjava.util.List<OpenIdConnectSession> findByConfigurationPid(java.lang.String configurationPid, 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
.
configurationPid
- the configuration pidstart
- the lower bound of the range of open ID connect sessionsend
- the upper bound of the range of open ID connect sessions (not inclusive)java.util.List<OpenIdConnectSession> findByConfigurationPid(java.lang.String configurationPid, 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
.
configurationPid
- the configuration pidstart
- 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
)java.util.List<OpenIdConnectSession> findByConfigurationPid(java.lang.String configurationPid, 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
.
configurationPid
- the configuration pidstart
- 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 cacheOpenIdConnectSession findByConfigurationPid_First(java.lang.String configurationPid, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
configurationPid
- the configuration pidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a matching open ID connect session could not be foundOpenIdConnectSession fetchByConfigurationPid_First(java.lang.String configurationPid, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
configurationPid
- the configuration pidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching open ID connect session could not be foundOpenIdConnectSession findByConfigurationPid_Last(java.lang.String configurationPid, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
configurationPid
- the configuration pidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a matching open ID connect session could not be foundOpenIdConnectSession fetchByConfigurationPid_Last(java.lang.String configurationPid, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator)
configurationPid
- the configuration pidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching open ID connect session could not be foundOpenIdConnectSession[] findByConfigurationPid_PrevAndNext(long openIdConnectSessionId, java.lang.String configurationPid, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException
openIdConnectSessionId
- the primary key of the current open ID connect sessionconfigurationPid
- the configuration pidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSessionException
- if a open ID connect session with the primary key could not be foundvoid removeByConfigurationPid(java.lang.String configurationPid)
configurationPid
- the configuration pidint countByConfigurationPid(java.lang.String configurationPid)
configurationPid
- the configuration pidOpenIdConnectSession findByU_C(long userId, java.lang.String configurationPid) throws NoSuchSessionException
NoSuchSessionException
if it could not be found.userId
- the user IDconfigurationPid
- the configuration pidNoSuchSessionException
- if a matching open ID connect session could not be foundOpenIdConnectSession fetchByU_C(long userId, java.lang.String configurationPid)
null
if it could not be found. Uses the finder cache.userId
- the user IDconfigurationPid
- the configuration pidnull
if a matching open ID connect session could not be foundOpenIdConnectSession fetchByU_C(long userId, java.lang.String configurationPid, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDconfigurationPid
- the configuration piduseFinderCache
- whether to use the finder cachenull
if a matching open ID connect session could not be foundOpenIdConnectSession removeByU_C(long userId, java.lang.String configurationPid) throws NoSuchSessionException
userId
- the user IDconfigurationPid
- the configuration pidNoSuchSessionException
int countByU_C(long userId, java.lang.String configurationPid)
userId
- the user IDconfigurationPid
- the configuration pidvoid cacheResult(OpenIdConnectSession openIdConnectSession)
openIdConnectSession
- the open ID connect sessionvoid cacheResult(java.util.List<OpenIdConnectSession> openIdConnectSessions)
openIdConnectSessions
- the open ID connect sessionsOpenIdConnectSession create(long openIdConnectSessionId)
openIdConnectSessionId
- the primary key for the new open ID connect sessionOpenIdConnectSession 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 foundOpenIdConnectSession updateImpl(OpenIdConnectSession openIdConnectSession)
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 foundOpenIdConnectSession 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 foundjava.util.List<OpenIdConnectSession> findAll()
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)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
)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 cachevoid removeAll()
int countAll()