Interface SharepointOAuth2TokenEntryPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<SharepointOAuth2TokenEntry>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry) Caches the sharepoint o auth2 token entry in the entity cache if it is enabled.voidcacheResult(List<SharepointOAuth2TokenEntry> sharepointOAuth2TokenEntries) Caches the sharepoint o auth2 token entries in the entity cache if it is enabled.intcountAll()Returns the number of sharepoint o auth2 token entries.intcountByU_C(long userId, String configurationPid) Returns the number of sharepoint o auth2 token entries where userId = ? and configurationPid = ?.intcountByUserId(long userId) Returns the number of sharepoint o auth2 token entries where userId = ?.create(long sharepointOAuth2TokenEntryId) Creates a new sharepoint o auth2 token entry with the primary key.fetchByPrimaryKey(long sharepointOAuth2TokenEntryId) Returns the sharepoint o auth2 token entry with the primary key or returnsnullif it could not be found.fetchByU_C(long userId, String configurationPid) Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returnsnullif it could not be found.fetchByU_C(long userId, String configurationPid, boolean useFinderCache) Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returnsnullif it could not be found, optionally using the finder cache.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 = ?.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 = ?.findAll()Returns all the sharepoint o auth2 token entries.findAll(int start, int end) Returns a range of all the sharepoint o auth2 token entries.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.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.findByPrimaryKey(long sharepointOAuth2TokenEntryId) Returns the sharepoint o auth2 token entry with the primary key or throws aNoSuch2TokenEntryExceptionif it could not be found.Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or throws aNoSuch2TokenEntryExceptionif it could not be found.findByUserId(long userId) Returns all the sharepoint o auth2 token entries where userId = ?.findByUserId(long userId, int start, int end) Returns a range of all the sharepoint o auth2 token entries where userId = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.remove(long sharepointOAuth2TokenEntryId) Removes the sharepoint o auth2 token entry with the primary key from the database.voidRemoves all the sharepoint o auth2 token entries from the database.removeByU_C(long userId, String configurationPid) Removes the sharepoint o auth2 token entry where userId = ? and configurationPid = ? from the database.voidremoveByUserId(long userId) Removes all the sharepoint o auth2 token entries where userId = ? from the database.updateImpl(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByUserId
Returns all the sharepoint o auth2 token entries where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching sharepoint o auth2 token entries
-
findByUserId
Returns a range of all the sharepoint o auth2 token entries where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
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)- Returns:
- the range of matching sharepoint o auth2 token entries
-
findByUserId
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching sharepoint o auth2 token entries
-
findByUserId
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching sharepoint o auth2 token entries
-
findByUserId_First
SharepointOAuth2TokenEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException Returns the first sharepoint o auth2 token entry in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a matching sharepoint o auth2 token entry could not be found
-
fetchByUserId_First
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 = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching sharepoint o auth2 token entry, or
nullif a matching sharepoint o auth2 token entry could not be found
-
findByUserId_Last
SharepointOAuth2TokenEntry findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException Returns the last sharepoint o auth2 token entry in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a matching sharepoint o auth2 token entry could not be found
-
fetchByUserId_Last
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 = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching sharepoint o auth2 token entry, or
nullif a matching sharepoint o auth2 token entry could not be found
-
findByUserId_PrevAndNext
SharepointOAuth2TokenEntry[] findByUserId_PrevAndNext(long sharepointOAuth2TokenEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<SharepointOAuth2TokenEntry> orderByComparator) throws NoSuch2TokenEntryException Returns the sharepoint o auth2 token entries before and after the current sharepoint o auth2 token entry in the ordered set where userId = ?.- Parameters:
sharepointOAuth2TokenEntryId- the primary key of the current sharepoint o auth2 token entryuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a sharepoint o auth2 token entry with the primary key could not be found
-
removeByUserId
void removeByUserId(long userId) Removes all the sharepoint o auth2 token entries where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
int countByUserId(long userId) Returns the number of sharepoint o auth2 token entries where userId = ?.- Parameters:
userId- the user ID- Returns:
- the number of matching sharepoint o auth2 token entries
-
findByU_C
SharepointOAuth2TokenEntry findByU_C(long userId, String configurationPid) throws NoSuch2TokenEntryException Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or throws aNoSuch2TokenEntryExceptionif it could not be found.- Parameters:
userId- the user IDconfigurationPid- the configuration pid- Returns:
- the matching sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a matching sharepoint o auth2 token entry could not be found
-
fetchByU_C
Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userId- the user IDconfigurationPid- the configuration pid- Returns:
- the matching sharepoint o auth2 token entry, or
nullif a matching sharepoint o auth2 token entry could not be found
-
fetchByU_C
Returns the sharepoint o auth2 token entry where userId = ? and configurationPid = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
userId- the user IDconfigurationPid- the configuration piduseFinderCache- whether to use the finder cache- Returns:
- the matching sharepoint o auth2 token entry, or
nullif a matching sharepoint o auth2 token entry could not be found
-
removeByU_C
SharepointOAuth2TokenEntry removeByU_C(long userId, String configurationPid) throws NoSuch2TokenEntryException Removes the sharepoint o auth2 token entry where userId = ? and configurationPid = ? from the database.- Parameters:
userId- the user IDconfigurationPid- the configuration pid- Returns:
- the sharepoint o auth2 token entry that was removed
- Throws:
NoSuch2TokenEntryException
-
countByU_C
Returns the number of sharepoint o auth2 token entries where userId = ? and configurationPid = ?.- Parameters:
userId- the user IDconfigurationPid- the configuration pid- Returns:
- the number of matching sharepoint o auth2 token entries
-
cacheResult
Caches the sharepoint o auth2 token entries in the entity cache if it is enabled.- Parameters:
sharepointOAuth2TokenEntries- the sharepoint o auth2 token entries
-
create
Creates a new sharepoint o auth2 token entry with the primary key. Does not add the sharepoint o auth2 token entry to the database.- Parameters:
sharepointOAuth2TokenEntryId- the primary key for the new sharepoint o auth2 token entry- Returns:
- the new sharepoint o auth2 token entry
-
remove
SharepointOAuth2TokenEntry remove(long sharepointOAuth2TokenEntryId) throws NoSuch2TokenEntryException Removes the sharepoint o auth2 token entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
sharepointOAuth2TokenEntryId- the primary key of the sharepoint o auth2 token entry- Returns:
- the sharepoint o auth2 token entry that was removed
- Throws:
NoSuch2TokenEntryException- if a sharepoint o auth2 token entry with the primary key could not be found
-
findByPrimaryKey
SharepointOAuth2TokenEntry findByPrimaryKey(long sharepointOAuth2TokenEntryId) throws NoSuch2TokenEntryException Returns the sharepoint o auth2 token entry with the primary key or throws aNoSuch2TokenEntryExceptionif it could not be found.- Parameters:
sharepointOAuth2TokenEntryId- the primary key of the sharepoint o auth2 token entry- Returns:
- the sharepoint o auth2 token entry
- Throws:
NoSuch2TokenEntryException- if a sharepoint o auth2 token entry with the primary key could not be found
-
fetchByPrimaryKey
Returns the sharepoint o auth2 token entry with the primary key or returnsnullif it could not be found.- Parameters:
sharepointOAuth2TokenEntryId- the primary key of the sharepoint o auth2 token entry- Returns:
- the sharepoint o auth2 token entry, or
nullif a sharepoint o auth2 token entry with the primary key could not be found
-
findAll
List<SharepointOAuth2TokenEntry> findAll()Returns all the sharepoint o auth2 token entries.- Returns:
- the sharepoint o auth2 token entries
-
findAll
Returns a range of all the sharepoint o auth2 token entries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
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)- Returns:
- the range of sharepoint o auth2 token entries
-
findAll
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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of sharepoint o auth2 token entries
-
findAll
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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSharepointOAuth2TokenEntryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of sharepoint o auth2 token entries
-
removeAll
void removeAll()Removes all the sharepoint o auth2 token entries from the database. -
countAll
int countAll()Returns the number of sharepoint o auth2 token entries.- Returns:
- the number of sharepoint o auth2 token entries
-