Class OAuth2ApplicationScopeAliasesUtil
com.liferay.oauth2.provider.service.persistence.impl.OAuth2ApplicationScopeAliasesPersistenceImpl 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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(OAuth2ApplicationScopeAliases oAuth2ApplicationScopeAliases) static voidcacheResult(List<OAuth2ApplicationScopeAliases> oAuth2ApplicationScopeAliaseses) static voidstatic voidclearCache(OAuth2ApplicationScopeAliases oAuth2ApplicationScopeAliases) static intcountByCompanyId(long companyId) Returns the number of o auth2 application scope aliaseses where companyId = ?.static intcountByOAuth2ApplicationId(long oAuth2ApplicationId) Returns the number of o auth2 application scope aliaseses where oAuth2ApplicationId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) create(long oAuth2ApplicationScopeAliasesId) Creates a new o auth2 application scope aliases with the primary key.fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns the first o auth2 application scope aliases in the ordered set where companyId = ?.fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns the first o auth2 application scope aliases in the ordered set where oAuth2ApplicationId = ?.fetchByPrimaryKey(long oAuth2ApplicationScopeAliasesId) Returns the o auth2 application scope aliases with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<OAuth2ApplicationScopeAliases> findByCompanyId(long companyId) Returns all the o auth2 application scope aliaseses where companyId = ?.static List<OAuth2ApplicationScopeAliases> findByCompanyId(long companyId, int start, int end) Returns a range of all the o auth2 application scope aliaseses where companyId = ?.static List<OAuth2ApplicationScopeAliases> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns an ordered range of all the o auth2 application scope aliaseses where companyId = ?.static List<OAuth2ApplicationScopeAliases> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 application scope aliaseses where companyId = ?.findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns the first o auth2 application scope aliases in the ordered set where companyId = ?.static List<OAuth2ApplicationScopeAliases> findByOAuth2ApplicationId(long oAuth2ApplicationId) Returns all the o auth2 application scope aliaseses where oAuth2ApplicationId = ?.static List<OAuth2ApplicationScopeAliases> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end) Returns a range of all the o auth2 application scope aliaseses where oAuth2ApplicationId = ?.static List<OAuth2ApplicationScopeAliases> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns an ordered range of all the o auth2 application scope aliaseses where oAuth2ApplicationId = ?.static List<OAuth2ApplicationScopeAliases> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 application scope aliaseses where oAuth2ApplicationId = ?.findByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns the first o auth2 application scope aliases in the ordered set where oAuth2ApplicationId = ?.findByPrimaryKey(long oAuth2ApplicationScopeAliasesId) Returns the o auth2 application scope aliases with the primary key or throws aNoSuchOAuth2ApplicationScopeAliasesExceptionif it could not be found.static List<OAuth2ApplicationScopeAliases> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<OAuth2ApplicationScopeAliases> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<OAuth2ApplicationScopeAliases> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) remove(long oAuth2ApplicationScopeAliasesId) Removes the o auth2 application scope aliases with the primary key from the database.static voidremoveByCompanyId(long companyId) Removes all the o auth2 application scope aliaseses where companyId = ? from the database.static voidremoveByOAuth2ApplicationId(long oAuth2ApplicationId) Removes all the o auth2 application scope aliaseses where oAuth2ApplicationId = ? from the database.static voidsetPersistence(OAuth2ApplicationScopeAliasesPersistence persistence) update(OAuth2ApplicationScopeAliases oAuth2ApplicationScopeAliases) update(OAuth2ApplicationScopeAliases oAuth2ApplicationScopeAliases, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl(OAuth2ApplicationScopeAliases oAuth2ApplicationScopeAliases)
-
Constructor Details
-
OAuth2ApplicationScopeAliasesUtil
public OAuth2ApplicationScopeAliasesUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,OAuth2ApplicationScopeAliases> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<OAuth2ApplicationScopeAliases> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<OAuth2ApplicationScopeAliases> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<OAuth2ApplicationScopeAliases> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) - See Also:
-
update
public static OAuth2ApplicationScopeAliases update(OAuth2ApplicationScopeAliases oAuth2ApplicationScopeAliases) - See Also:
-
update
public static OAuth2ApplicationScopeAliases update(OAuth2ApplicationScopeAliases oAuth2ApplicationScopeAliases, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCompanyId
public static List<OAuth2ApplicationScopeAliases> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 application scope aliaseses where companyId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.oauth2.provider.model.impl.OAuth2ApplicationScopeAliasesModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of o auth2 application scope aliasesesend- the upper bound of the range of o auth2 application scope aliaseses (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching o auth2 application scope aliaseses
-
findByCompanyId_First
public static OAuth2ApplicationScopeAliases findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) throws NoSuchOAuth2ApplicationScopeAliasesException Returns the first o auth2 application scope aliases in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 application scope aliases
-
fetchByCompanyId_First
public static OAuth2ApplicationScopeAliases fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns the first o auth2 application scope aliases in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 application scope aliases, or
nullif a matching o auth2 application scope aliases could not be found
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the o auth2 application scope aliaseses where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of o auth2 application scope aliaseses where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching o auth2 application scope aliaseses
-
findByOAuth2ApplicationId
public static List<OAuth2ApplicationScopeAliases> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 application scope aliaseses where oAuth2ApplicationId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.oauth2.provider.model.impl.OAuth2ApplicationScopeAliasesModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 application scope aliasesesend- the upper bound of the range of o auth2 application scope aliaseses (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching o auth2 application scope aliaseses
-
findByOAuth2ApplicationId_First
public static OAuth2ApplicationScopeAliases findByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) throws NoSuchOAuth2ApplicationScopeAliasesException Returns the first o auth2 application scope aliases in the ordered set where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 application scope aliases
-
fetchByOAuth2ApplicationId_First
public static OAuth2ApplicationScopeAliases fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns the first o auth2 application scope aliases in the ordered set where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 application scope aliases, or
nullif a matching o auth2 application scope aliases could not be found
-
removeByOAuth2ApplicationId
public static void removeByOAuth2ApplicationId(long oAuth2ApplicationId) Removes all the o auth2 application scope aliaseses where oAuth2ApplicationId = ? from the database.- Parameters:
oAuth2ApplicationId- the o auth2 application ID
-
countByOAuth2ApplicationId
public static int countByOAuth2ApplicationId(long oAuth2ApplicationId) Returns the number of o auth2 application scope aliaseses where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application ID- Returns:
- the number of matching o auth2 application scope aliaseses
-
create
Creates a new o auth2 application scope aliases with the primary key. Does not add the o auth2 application scope aliases to the database.- Parameters:
oAuth2ApplicationScopeAliasesId- the primary key for the new o auth2 application scope aliases- Returns:
- the new o auth2 application scope aliases
-
remove
public static OAuth2ApplicationScopeAliases remove(long oAuth2ApplicationScopeAliasesId) throws NoSuchOAuth2ApplicationScopeAliasesException Removes the o auth2 application scope aliases with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
oAuth2ApplicationScopeAliasesId- the primary key of the o auth2 application scope aliases- Returns:
- the o auth2 application scope aliases that was removed
-
updateImpl
public static OAuth2ApplicationScopeAliases updateImpl(OAuth2ApplicationScopeAliases oAuth2ApplicationScopeAliases) -
findByPrimaryKey
public static OAuth2ApplicationScopeAliases findByPrimaryKey(long oAuth2ApplicationScopeAliasesId) throws NoSuchOAuth2ApplicationScopeAliasesException Returns the o auth2 application scope aliases with the primary key or throws aNoSuchOAuth2ApplicationScopeAliasesExceptionif it could not be found.- Parameters:
oAuth2ApplicationScopeAliasesId- the primary key of the o auth2 application scope aliases- Returns:
- the o auth2 application scope aliases
-
fetchByPrimaryKey
Returns the o auth2 application scope aliases with the primary key or returnsnullif it could not be found.- Parameters:
oAuth2ApplicationScopeAliasesId- the primary key of the o auth2 application scope aliases- Returns:
- the o auth2 application scope aliases, or
nullif a o auth2 application scope aliases with the primary key could not be found
-
findByCompanyId
Returns all the o auth2 application scope aliaseses where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching o auth2 application scope aliaseses
-
findByCompanyId
public static List<OAuth2ApplicationScopeAliases> findByCompanyId(long companyId, int start, int end) Returns a range of all the o auth2 application scope aliaseses where companyId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.oauth2.provider.model.impl.OAuth2ApplicationScopeAliasesModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of o auth2 application scope aliasesesend- the upper bound of the range of o auth2 application scope aliaseses (not inclusive)- Returns:
- the range of matching o auth2 application scope aliaseses
-
findByCompanyId
public static List<OAuth2ApplicationScopeAliases> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns an ordered range of all the o auth2 application scope aliaseses where companyId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.oauth2.provider.model.impl.OAuth2ApplicationScopeAliasesModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of o auth2 application scope aliasesesend- the upper bound of the range of o auth2 application scope aliaseses (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching o auth2 application scope aliaseses
-
findByOAuth2ApplicationId
public static List<OAuth2ApplicationScopeAliases> findByOAuth2ApplicationId(long oAuth2ApplicationId) Returns all the o auth2 application scope aliaseses where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application ID- Returns:
- the matching o auth2 application scope aliaseses
-
findByOAuth2ApplicationId
public static List<OAuth2ApplicationScopeAliases> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end) Returns a range of all the o auth2 application scope aliaseses where oAuth2ApplicationId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.oauth2.provider.model.impl.OAuth2ApplicationScopeAliasesModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 application scope aliasesesend- the upper bound of the range of o auth2 application scope aliaseses (not inclusive)- Returns:
- the range of matching o auth2 application scope aliaseses
-
findByOAuth2ApplicationId
public static List<OAuth2ApplicationScopeAliases> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2ApplicationScopeAliases> orderByComparator) Returns an ordered range of all the o auth2 application scope aliaseses where oAuth2ApplicationId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.oauth2.provider.model.impl.OAuth2ApplicationScopeAliasesModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 application scope aliasesesend- the upper bound of the range of o auth2 application scope aliaseses (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching o auth2 application scope aliaseses
-
getPersistence
-
setPersistence
-