@ProviderType public interface SharepointOAuth2TokenEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<SharepointOAuth2TokenEntry>
Caching information and settings can be found in portal.properties
SharepointOAuth2TokenEntryUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<SharepointOAuth2TokenEntry> sharepointOAuth2TokenEntries)
Caches the sharepoint o auth2 token entries in the entity cache if it is enabled.
|
void |
cacheResult(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
Caches the sharepoint o auth2 token entry in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of sharepoint o auth2 token entries.
|
int |
countByU_C(long userId,
java.lang.String configurationPid)
Returns the number of sharepoint o auth2 token entries where userId = ? and configurationPid = ?.
|
int |
countByUserId(long userId)
Returns the number of sharepoint o auth2 token entries where userId = ?.
|
SharepointOAuth2TokenEntry |
create(long sharepointOAuth2TokenEntryId)
Creates a new sharepoint o auth2 token entry with the primary key.
|
SharepointOAuth2TokenEntry |
fetchByPrimaryKey(long sharepointOAuth2TokenEntryId)
Returns the sharepoint o auth2 token entry with the primary key or returns
null if it could not be found. |
SharepointOAuth2TokenEntry |
fetchByU_C(long userId,
java.lang.String configurationPid)
Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returns
null if it could not be found. |
SharepointOAuth2TokenEntry |
fetchByU_C(long userId,
java.lang.String configurationPid,
boolean useFinderCache)
Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returns
null if it could not be found, optionally using the finder cache. |
SharepointOAuth2TokenEntry |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
Returns the first sharepoint o auth2 token entry in the ordered set where userId = ?.
|
SharepointOAuth2TokenEntry |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
Returns the last sharepoint o auth2 token entry in the ordered set where userId = ?.
|
java.util.List<SharepointOAuth2TokenEntry> |
findAll()
Returns all the sharepoint o auth2 token entries.
|
java.util.List<SharepointOAuth2TokenEntry> |
findAll(int start,
int end)
Returns a range of all the sharepoint o auth2 token entries.
|
java.util.List<SharepointOAuth2TokenEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
Returns an ordered range of all the sharepoint o auth2 token entries.
|
java.util.List<SharepointOAuth2TokenEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sharepoint o auth2 token entries.
|
SharepointOAuth2TokenEntry |
findByPrimaryKey(long sharepointOAuth2TokenEntryId)
Returns the sharepoint o auth2 token entry with the primary key or throws a
NoSuch2TokenEntryException if it could not be found. |
SharepointOAuth2TokenEntry |
findByU_C(long userId,
java.lang.String configurationPid)
Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or throws a
NoSuch2TokenEntryException if it could not be found. |
SharepointOAuth2TokenEntry |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
Returns the first sharepoint o auth2 token entry in the ordered set where userId = ?.
|
SharepointOAuth2TokenEntry |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
Returns the last sharepoint o auth2 token entry in the ordered set where userId = ?.
|
SharepointOAuth2TokenEntry[] |
findByUserId_PrevAndNext(long sharepointOAuth2TokenEntryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
Returns the sharepoint o auth2 token entries before and after the current sharepoint o auth2 token entry in the ordered set where userId = ?.
|
java.util.List<SharepointOAuth2TokenEntry> |
findByUserId(long userId)
Returns all the sharepoint o auth2 token entries where userId = ?.
|
java.util.List<SharepointOAuth2TokenEntry> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the sharepoint o auth2 token entries where userId = ?.
|
java.util.List<SharepointOAuth2TokenEntry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
Returns an ordered range of all the sharepoint o auth2 token entries where userId = ?.
|
java.util.List<SharepointOAuth2TokenEntry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the sharepoint o auth2 token entries where userId = ?.
|
SharepointOAuth2TokenEntry |
remove(long sharepointOAuth2TokenEntryId)
Removes the sharepoint o auth2 token entry with the primary key from the database.
|
void |
removeAll()
Removes all the sharepoint o auth2 token entries from the database.
|
SharepointOAuth2TokenEntry |
removeByU_C(long userId,
java.lang.String configurationPid)
Removes the sharepoint o auth2 token entry where userId = ? and configurationPid = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the sharepoint o auth2 token entries where userId = ? from the database.
|
SharepointOAuth2TokenEntry |
updateImpl(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry) |
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<SharepointOAuth2TokenEntry> findByUserId(long userId)
userId
- the user IDjava.util.List<SharepointOAuth2TokenEntry> 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 SharepointOAuth2TokenEntryModelImpl
.
userId
- the user IDstart
- the lower bound of the range of sharepoint o auth2 token entriesend
- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)java.util.List<SharepointOAuth2TokenEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> 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 SharepointOAuth2TokenEntryModelImpl
.
userId
- the user IDstart
- the lower bound of the range of sharepoint o auth2 token entriesend
- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<SharepointOAuth2TokenEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> 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 SharepointOAuth2TokenEntryModelImpl
.
userId
- the user IDstart
- the lower bound of the range of sharepoint o auth2 token entriesend
- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheSharepointOAuth2TokenEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuch2TokenEntryException
- if a matching sharepoint o auth2 token entry could not be foundSharepointOAuth2TokenEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharepoint o auth2 token entry could not be foundSharepointOAuth2TokenEntry findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuch2TokenEntryException
- if a matching sharepoint o auth2 token entry could not be foundSharepointOAuth2TokenEntry fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching sharepoint o auth2 token entry could not be foundSharepointOAuth2TokenEntry[] findByUserId_PrevAndNext(long sharepointOAuth2TokenEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException
sharepointOAuth2TokenEntryId
- the primary key of the current sharepoint o auth2 token entryuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuch2TokenEntryException
- if a sharepoint o auth2 token entry with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDSharepointOAuth2TokenEntry findByU_C(long userId, java.lang.String configurationPid) throws NoSuch2TokenEntryException
NoSuch2TokenEntryException
if it could not be found.userId
- the user IDconfigurationPid
- the configuration pidNoSuch2TokenEntryException
- if a matching sharepoint o auth2 token entry could not be foundSharepointOAuth2TokenEntry 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 sharepoint o auth2 token entry could not be foundSharepointOAuth2TokenEntry 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 sharepoint o auth2 token entry could not be foundSharepointOAuth2TokenEntry removeByU_C(long userId, java.lang.String configurationPid) throws NoSuch2TokenEntryException
userId
- the user IDconfigurationPid
- the configuration pidNoSuch2TokenEntryException
int countByU_C(long userId, java.lang.String configurationPid)
userId
- the user IDconfigurationPid
- the configuration pidvoid cacheResult(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
sharepointOAuth2TokenEntry
- the sharepoint o auth2 token entryvoid cacheResult(java.util.List<SharepointOAuth2TokenEntry> sharepointOAuth2TokenEntries)
sharepointOAuth2TokenEntries
- the sharepoint o auth2 token entriesSharepointOAuth2TokenEntry create(long sharepointOAuth2TokenEntryId)
sharepointOAuth2TokenEntryId
- the primary key for the new sharepoint o auth2 token entrySharepointOAuth2TokenEntry remove(long sharepointOAuth2TokenEntryId) throws NoSuch2TokenEntryException
sharepointOAuth2TokenEntryId
- the primary key of the sharepoint o auth2 token entryNoSuch2TokenEntryException
- if a sharepoint o auth2 token entry with the primary key could not be foundSharepointOAuth2TokenEntry updateImpl(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
SharepointOAuth2TokenEntry findByPrimaryKey(long sharepointOAuth2TokenEntryId) throws NoSuch2TokenEntryException
NoSuch2TokenEntryException
if it could not be found.sharepointOAuth2TokenEntryId
- the primary key of the sharepoint o auth2 token entryNoSuch2TokenEntryException
- if a sharepoint o auth2 token entry with the primary key could not be foundSharepointOAuth2TokenEntry fetchByPrimaryKey(long sharepointOAuth2TokenEntryId)
null
if it could not be found.sharepointOAuth2TokenEntryId
- the primary key of the sharepoint o auth2 token entrynull
if a sharepoint o auth2 token entry with the primary key could not be foundjava.util.List<SharepointOAuth2TokenEntry> findAll()
java.util.List<SharepointOAuth2TokenEntry> 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 SharepointOAuth2TokenEntryModelImpl
.
start
- the lower bound of the range of sharepoint o auth2 token entriesend
- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)java.util.List<SharepointOAuth2TokenEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> 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 SharepointOAuth2TokenEntryModelImpl
.
start
- the lower bound of the range of sharepoint o auth2 token entriesend
- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<SharepointOAuth2TokenEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> 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 SharepointOAuth2TokenEntryModelImpl
.
start
- the lower bound of the range of sharepoint o auth2 token entriesend
- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()