@ProviderType public interface AppPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<App>
Caching information and settings can be found in portal.properties
AppUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(App app)
Caches the app in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<App> apps)
Caches the apps in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of apps.
|
int |
countByCategory(java.lang.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_C(java.lang.String uuid,
long companyId)
Returns the number of apps where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of apps where uuid = ?.
|
App |
create(long appId)
Creates a new app with the primary key.
|
App |
fetchByCategory_First(java.lang.String category,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where category = ?.
|
App |
fetchByCategory_Last(java.lang.String category,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the last app in the ordered set where category = ?.
|
App |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where companyId = ?.
|
App |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the last app in the ordered set where companyId = ?.
|
App |
fetchByPrimaryKey(long appId)
Returns the app with the primary key or returns
null if it could not be found. |
App |
fetchByRemoteAppId(long remoteAppId)
Returns the app where remoteAppId = ? or returns
null if it could not be found. |
App |
fetchByRemoteAppId(long remoteAppId,
boolean useFinderCache)
Returns the app where remoteAppId = ? or returns
null if it could not be found, optionally using the finder cache. |
App |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where uuid = ? and companyId = ?.
|
App |
fetchByUuid_C_Last(java.lang.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 |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where uuid = ?.
|
App |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the last app in the ordered set where uuid = ?.
|
java.util.List<App> |
findAll()
Returns all the apps.
|
java.util.List<App> |
findAll(int start,
int end)
Returns a range of all the apps.
|
java.util.List<App> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns an ordered range of all the apps.
|
java.util.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.
|
App |
findByCategory_First(java.lang.String category,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where category = ?.
|
App |
findByCategory_Last(java.lang.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,
java.lang.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 = ?.
|
java.util.List<App> |
findByCategory(java.lang.String category)
Returns all the apps where category = ?.
|
java.util.List<App> |
findByCategory(java.lang.String category,
int start,
int end)
Returns a range of all the apps where category = ?.
|
java.util.List<App> |
findByCategory(java.lang.String category,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns an ordered range of all the apps where category = ?.
|
java.util.List<App> |
findByCategory(java.lang.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 = ?.
|
App |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where companyId = ?.
|
App |
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 = ?.
|
java.util.List<App> |
findByCompanyId(long companyId)
Returns all the apps where companyId = ?.
|
java.util.List<App> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the apps where companyId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
App |
findByPrimaryKey(long appId)
Returns the app with the primary key or throws a
NoSuchAppException if it could not be found. |
App |
findByRemoteAppId(long remoteAppId)
Returns the app where remoteAppId = ? or throws a
NoSuchAppException if it could not be found. |
App |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where uuid = ? and companyId = ?.
|
App |
findByUuid_C_Last(java.lang.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,
java.lang.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 = ?.
|
java.util.List<App> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the apps where uuid = ? and companyId = ?.
|
java.util.List<App> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the apps where uuid = ? and companyId = ?.
|
java.util.List<App> |
findByUuid_C(java.lang.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 = ?.
|
java.util.List<App> |
findByUuid_C(java.lang.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 = ?.
|
App |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where uuid = ?.
|
App |
findByUuid_Last(java.lang.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,
java.lang.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 = ?.
|
java.util.List<App> |
findByUuid(java.lang.String uuid)
Returns all the apps where uuid = ?.
|
java.util.List<App> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the apps where uuid = ?.
|
java.util.List<App> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns an ordered range of all the apps where uuid = ?.
|
java.util.List<App> |
findByUuid(java.lang.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 = ?.
|
App |
remove(long appId)
Removes the app with the primary key from the database.
|
void |
removeAll()
Removes all the apps from the database.
|
void |
removeByCategory(java.lang.String category)
Removes all the apps where category = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the apps where companyId = ? from the database.
|
App |
removeByRemoteAppId(long remoteAppId)
Removes the app where remoteAppId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the apps where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the apps where uuid = ? from the database.
|
App |
updateImpl(App app) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<App> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<App> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)java.util.List<App> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)java.util.List<App> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheApp findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a matching app could not be foundApp fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching app could not be foundApp findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a matching app could not be foundApp fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching app could not be foundApp[] findByUuid_PrevAndNext(long appId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
appId
- the primary key of the current appuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a app with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<App> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<App> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)java.util.List<App> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)java.util.List<App> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheApp findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a matching app could not be foundApp fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching app could not be foundApp findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a matching app could not be foundApp fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching app could not be foundApp[] findByUuid_C_PrevAndNext(long appId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
appId
- the primary key of the current appuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a app with the primary key could not be foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<App> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<App> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)java.util.List<App> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)java.util.List<App> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheApp findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a matching app could not be foundApp fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching app could not be foundApp findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a matching app could not be foundApp fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching app could not be foundApp[] findByCompanyId_PrevAndNext(long appId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
appId
- the primary key of the current appcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a app with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDApp findByRemoteAppId(long remoteAppId) throws NoSuchAppException
NoSuchAppException
if it could not be found.remoteAppId
- the remote app IDNoSuchAppException
- if a matching app could not be foundApp fetchByRemoteAppId(long remoteAppId)
null
if it could not be found. Uses the finder cache.remoteAppId
- the remote app IDnull
if a matching app could not be foundApp fetchByRemoteAppId(long remoteAppId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.remoteAppId
- the remote app IDuseFinderCache
- whether to use the finder cachenull
if a matching app could not be foundApp removeByRemoteAppId(long remoteAppId) throws NoSuchAppException
remoteAppId
- the remote app IDNoSuchAppException
int countByRemoteAppId(long remoteAppId)
remoteAppId
- the remote app IDjava.util.List<App> findByCategory(java.lang.String category)
category
- the categoryjava.util.List<App> findByCategory(java.lang.String category, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
category
- the categorystart
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)java.util.List<App> findByCategory(java.lang.String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)java.util.List<App> findByCategory(java.lang.String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheApp findByCategory_First(java.lang.String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
category
- the categoryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a matching app could not be foundApp fetchByCategory_First(java.lang.String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
category
- the categoryorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching app could not be foundApp findByCategory_Last(java.lang.String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
category
- the categoryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a matching app could not be foundApp fetchByCategory_Last(java.lang.String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
category
- the categoryorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching app could not be foundApp[] findByCategory_PrevAndNext(long appId, java.lang.String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
appId
- the primary key of the current appcategory
- the categoryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAppException
- if a app with the primary key could not be foundvoid removeByCategory(java.lang.String category)
category
- the categoryint countByCategory(java.lang.String category)
category
- the categoryvoid cacheResult(App app)
app
- the appvoid cacheResult(java.util.List<App> apps)
apps
- the appsApp create(long appId)
appId
- the primary key for the new appApp remove(long appId) throws NoSuchAppException
appId
- the primary key of the appNoSuchAppException
- if a app with the primary key could not be foundApp findByPrimaryKey(long appId) throws NoSuchAppException
NoSuchAppException
if it could not be found.appId
- the primary key of the appNoSuchAppException
- if a app with the primary key could not be foundApp fetchByPrimaryKey(long appId)
null
if it could not be found.appId
- the primary key of the appnull
if a app with the primary key could not be foundjava.util.List<App> findAll()
java.util.List<App> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
start
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)java.util.List<App> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)java.util.List<App> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AppModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()