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 TypeMethodDescriptionvoid
cacheResult
(App app) Caches the app in the entity cache if it is enabled.void
cacheResult
(List<App> apps) Caches the apps in the entity cache if it is enabled.int
countAll()
Returns the number of apps.int
countByCategory
(String category) Returns the number of apps where category = ?.int
countByCompanyId
(long companyId) Returns the number of apps where companyId = ?.int
countByRemoteAppId
(long remoteAppId) Returns the number of apps where remoteAppId = ?.int
countByUuid
(String uuid) Returns the number of apps where uuid = ?.int
countByUuid_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 = ?.fetchByCategory_Last
(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last 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 = ?.fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where companyId = ?.fetchByPrimaryKey
(long appId) Returns the app with the primary key or returnsnull
if it could not be found.fetchByRemoteAppId
(long remoteAppId) Returns the app where remoteAppId = ? or returnsnull
if it could not be found.fetchByRemoteAppId
(long remoteAppId, boolean useFinderCache) Returns the app where remoteAppId = ? or returnsnull
if 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_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last 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 = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where uuid = ?.findAll()
Returns all the apps.findAll
(int start, int end) Returns a range of all the apps.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps.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 = ?.findByCategory_Last
(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where category = ?.App[]
findByCategory_PrevAndNext
(long appId, String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the apps before and after the current 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 = ?.findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where companyId = ?.App[]
findByCompanyId_PrevAndNext
(long appId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the apps before and after the current app in the ordered set where companyId = ?.findByPrimaryKey
(long appId) Returns the app with the primary key or throws aNoSuchAppException
if it could not be found.findByRemoteAppId
(long remoteAppId) Returns the app where remoteAppId = ? or throws aNoSuchAppException
if 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_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where uuid = ? and companyId = ?.App[]
findByUuid_C_PrevAndNext
(long appId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the apps before and after the current 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 = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where uuid = ?.App[]
findByUuid_PrevAndNext
(long appId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the apps before and after the current app in the ordered set where uuid = ?.remove
(long appId) Removes the app with the primary key from the database.void
Removes all the apps from the database.void
removeByCategory
(String category) Removes all the apps where category = ? from the database.void
removeByCompanyId
(long companyId) Removes all the apps where companyId = ? from the database.removeByRemoteAppId
(long remoteAppId) Removes the app where remoteAppId = ? from the database.void
removeByUuid
(String uuid) Removes all the apps where uuid = ? from the database.void
removeByUuid_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
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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
null
if a matching app could not be found
-
findByUuid_Last
App findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the last app in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching app
- Throws:
NoSuchAppException
- if a matching app could not be found
-
fetchByUuid_Last
App fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching app, or
null
if a matching app could not be found
-
findByUuid_PrevAndNext
App[] findByUuid_PrevAndNext(long appId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the apps before and after the current app in the ordered set where uuid = ?.- Parameters:
appId
- the primary key of the current appuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next app
- Throws:
NoSuchAppException
- if a app with the primary key 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
null
if a matching app could not be found
-
findByUuid_C_Last
App findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the last 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 last matching app
- Throws:
NoSuchAppException
- if a matching app could not be found
-
fetchByUuid_C_Last
App fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last 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 last matching app, or
null
if a matching app could not be found
-
findByUuid_C_PrevAndNext
App[] findByUuid_C_PrevAndNext(long appId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the apps before and after the current app in the ordered set where uuid = ? and companyId = ?.- Parameters:
appId
- the primary key of the current appuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next app
- Throws:
NoSuchAppException
- if a app with the primary key 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
null
if a matching app could not be found
-
findByCompanyId_Last
App findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the last app in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching app
- Throws:
NoSuchAppException
- if a matching app could not be found
-
fetchByCompanyId_Last
App fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching app, or
null
if a matching app could not be found
-
findByCompanyId_PrevAndNext
App[] findByCompanyId_PrevAndNext(long appId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the apps before and after the current app in the ordered set where companyId = ?.- Parameters:
appId
- the primary key of the current appcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next app
- Throws:
NoSuchAppException
- if a app with the primary key 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 aNoSuchAppException
if 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 returnsnull
if it could not be found. Uses the finder cache.- Parameters:
remoteAppId
- the remote app ID- Returns:
- the matching app, or
null
if a matching app could not be found
-
fetchByRemoteAppId
Returns the app where remoteAppId = ? or returnsnull
if 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
null
if 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- 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
null
if a matching app could not be found
-
findByCategory_Last
App findByCategory_Last(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the last app in the ordered set where category = ?.- Parameters:
category
- the categoryorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching app
- Throws:
NoSuchAppException
- if a matching app could not be found
-
fetchByCategory_Last
App fetchByCategory_Last(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns the last app in the ordered set where category = ?.- Parameters:
category
- the categoryorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching app, or
null
if a matching app could not be found
-
findByCategory_PrevAndNext
App[] findByCategory_PrevAndNext(long appId, String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException Returns the apps before and after the current app in the ordered set where category = ?.- Parameters:
appId
- the primary key of the current appcategory
- the categoryorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next app
- Throws:
NoSuchAppException
- if a app with the primary key 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
-
cacheResult
Caches the app in the entity cache if it is enabled.- Parameters:
app
- the app
-
cacheResult
Caches the apps in the entity cache if it is enabled.- Parameters:
apps
- the 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 aNoSuchAppException
if 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 returnsnull
if it could not be found.- Parameters:
appId
- the primary key of the app- Returns:
- the app, or
null
if a app with the primary key could not be found
-
findAll
Returns all the apps.- Returns:
- the apps
-
findAll
Returns a range of all the apps.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- Parameters:
start
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)- Returns:
- the range of apps
-
findAll
List<App> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) Returns an ordered range of all the apps.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- Parameters:
start
- 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 apps
-
findAll
List<App> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache) Returns an ordered range of all the apps.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromAppModelImpl
.- Parameters:
start
- 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 apps
-
removeAll
void removeAll()Removes all the apps from the database. -
countAll
int countAll()Returns the number of apps.- Returns:
- the number of apps
-