Interface AppPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<App>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCategory(String category) Returns the number of apps where category = ?.intcountByCompanyId(long companyId) Returns the number of apps where companyId = ?.intcountByRemoteAppId(long remoteAppId) Returns the number of apps where remoteAppId = ?.intcountByUuid(String uuid) Returns the number of apps where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of apps where uuid = ? and companyId = ?.create(long appId) Creates a new app with the primary key.fetchByCategory_First(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where category = ?.fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where companyId = ?.fetchByPrimaryKey(long appId) Returns the app with the primary key or returnsnullif it could not be found.default AppfetchByRemoteAppId(long remoteAppId) Returns the app where remoteAppId = ? or returnsnullif it could not be found.fetchByRemoteAppId(long remoteAppId, boolean useFinderCache) Returns the app where remoteAppId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where uuid = ?.findByCategory(String category) Returns all the apps where category = ?.findByCategory(String category, int start, int end) Returns a range of all the apps where category = ?.findByCategory(String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps where category = ?.findByCategory(String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps where category = ?.findByCategory_First(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where category = ?.findByCompanyId(long companyId) Returns all the apps where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the apps where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps where companyId = ?.findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where companyId = ?.findByPrimaryKey(long appId) Returns the app with the primary key or throws aNoSuchAppExceptionif it could not be found.findByRemoteAppId(long remoteAppId) Returns the app where remoteAppId = ? or throws aNoSuchAppExceptionif it could not be found.findByUuid(String uuid) Returns all the apps where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the apps where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps where uuid = ?.findByUuid_C(String uuid, long companyId) Returns all the apps where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the apps where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps where uuid = ? and companyId = ?.findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where uuid = ? and companyId = ?.findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where uuid = ?.remove(long appId) Removes the app with the primary key from the database.voidremoveByCategory(String category) Removes all the apps where category = ? from the database.voidremoveByCompanyId(long companyId) Removes all the apps where companyId = ? from the database.removeByRemoteAppId(long remoteAppId) Removes the app where remoteAppId = ? from the database.voidremoveByUuid(String uuid) Removes all the apps where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the apps where uuid = ? and companyId = ? from the database.updateImpl(App app) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByUuid
List<App> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps where uuid = ?.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.marketplace.model.impl.AppModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching apps
-
findByUuid_First
App findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the first app in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching app
- Throws:
NoSuchAppException- if a matching app could not be found
-
fetchByUuid_First
App fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching app, or
nullif a matching app could not be found
-
removeByUuid
Removes all the apps where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of apps where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching apps
-
findByUuid_C
List<App> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps where uuid = ? and 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.marketplace.model.impl.AppModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching apps
-
findByUuid_C_First
App findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the first app in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching app
- Throws:
NoSuchAppException- if a matching app could not be found
-
fetchByUuid_C_First
App fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching app, or
nullif a matching app could not be found
-
removeByUuid_C
Removes all the apps where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of apps where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching apps
-
findByCompanyId
List<App> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps 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.marketplace.model.impl.AppModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching apps
-
findByCompanyId_First
App findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the first app in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching app
- Throws:
NoSuchAppException- if a matching app could not be found
-
fetchByCompanyId_First
App fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching app, or
nullif a matching app could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the apps where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of apps where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching apps
-
findByRemoteAppId
Returns the app where remoteAppId = ? or throws aNoSuchAppExceptionif it could not be found.- Parameters:
remoteAppId- the remote app ID- Returns:
- the matching app
- Throws:
NoSuchAppException- if a matching app could not be found
-
fetchByRemoteAppId
Returns the app where remoteAppId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
remoteAppId- the remote app IDuseFinderCache- whether to use the finder cache- Returns:
- the matching app, or
nullif a matching app could not be found
-
removeByRemoteAppId
Removes the app where remoteAppId = ? from the database.- Parameters:
remoteAppId- the remote app ID- Returns:
- the app that was removed
- Throws:
NoSuchAppException
-
countByRemoteAppId
int countByRemoteAppId(long remoteAppId) Returns the number of apps where remoteAppId = ?.- Parameters:
remoteAppId- the remote app ID- Returns:
- the number of matching apps
-
findByCategory
List<App> findByCategory(String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps where category = ?.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.marketplace.model.impl.AppModelImpl.- Parameters:
category- the categorystart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching apps
-
findByCategory_First
App findByCategory_First(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the first app in the ordered set where category = ?.- Parameters:
category- the categoryorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching app
- Throws:
NoSuchAppException- if a matching app could not be found
-
fetchByCategory_First
App fetchByCategory_First(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the first app in the ordered set where category = ?.- Parameters:
category- the categoryorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching app, or
nullif a matching app could not be found
-
removeByCategory
Removes all the apps where category = ? from the database.- Parameters:
category- the category
-
countByCategory
Returns the number of apps where category = ?.- Parameters:
category- the category- Returns:
- the number of matching apps
-
create
Creates a new app with the primary key. Does not add the app to the database.- Parameters:
appId- the primary key for the new app- Returns:
- the new app
-
remove
Removes the app with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
appId- the primary key of the app- Returns:
- the app that was removed
- Throws:
NoSuchAppException- if a app with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the app with the primary key or throws aNoSuchAppExceptionif it could not be found.- Parameters:
appId- the primary key of the app- Returns:
- the app
- Throws:
NoSuchAppException- if a app with the primary key could not be found
-
fetchByPrimaryKey
Returns the app with the primary key or returnsnullif it could not be found.- Parameters:
appId- the primary key of the app- Returns:
- the app, or
nullif a app with the primary key could not be found
-
fetchByRemoteAppId
Returns the app where remoteAppId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
remoteAppId- the remote app ID- Returns:
- the matching app, or
nullif a matching app could not be found
-
findByUuid
Returns all the apps where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching apps
-
findByUuid
Returns a range of all the apps where uuid = ?.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.marketplace.model.impl.AppModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)- Returns:
- the range of matching apps
-
findByUuid
default List<App> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps where uuid = ?.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.marketplace.model.impl.AppModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching apps
-
findByUuid_C
Returns all the apps where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching apps
-
findByUuid_C
Returns a range of all the apps where uuid = ? and 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.marketplace.model.impl.AppModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)- Returns:
- the range of matching apps
-
findByUuid_C
default List<App> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps where uuid = ? and 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.marketplace.model.impl.AppModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching apps
-
findByCompanyId
Returns all the apps where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching apps
-
findByCompanyId
Returns a range of all the apps 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.marketplace.model.impl.AppModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)- Returns:
- the range of matching apps
-
findByCompanyId
default List<App> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps 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.marketplace.model.impl.AppModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching apps
-
findByCategory
Returns all the apps where category = ?.- Parameters:
category- the category- Returns:
- the matching apps
-
findByCategory
Returns a range of all the apps where category = ?.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.marketplace.model.impl.AppModelImpl.- Parameters:
category- the categorystart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)- Returns:
- the range of matching apps
-
findByCategory
default List<App> findByCategory(String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps where category = ?.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.marketplace.model.impl.AppModelImpl.- Parameters:
category- the categorystart- the lower bound of the range of appsend- the upper bound of the range of apps (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching apps
-