@ProviderType
public class AppUtil
extends java.lang.Object
com.liferay.marketplace.service.persistence.impl.AppPersistenceImpl
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
AppPersistence
,
com.liferay.marketplace.service.persistence.impl.AppPersistenceImpl
Constructor and Description |
---|
AppUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(App app)
Caches the app in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<App> apps)
Caches the apps in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(App app) |
static int |
countAll()
Returns the number of apps.
|
static int |
countByCategory(java.lang.String category)
Returns the number of apps where category = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of apps where companyId = ?.
|
static int |
countByRemoteAppId(long remoteAppId)
Returns the number of apps where remoteAppId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of apps where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of apps where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static App |
create(long appId)
Creates a new app with the primary key.
|
static 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 = ?.
|
static 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 = ?.
|
static App |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where companyId = ?.
|
static App |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the last app in the ordered set where companyId = ?.
|
static App |
fetchByPrimaryKey(long appId)
Returns the app with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,App> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static App |
fetchByRemoteAppId(long remoteAppId)
Returns the app where remoteAppId = ? or returns
null if it could not be found. |
static App |
fetchByRemoteAppId(long remoteAppId,
boolean retrieveFromCache)
Returns the app where remoteAppId = ? or returns
null if it could not be found, optionally using the finder cache. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<App> |
findAll()
Returns all the apps.
|
static java.util.List<App> |
findAll(int start,
int end)
Returns a range of all the apps.
|
static 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.
|
static java.util.List<App> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the apps.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<App> |
findByCategory(java.lang.String category)
Returns all the apps where category = ?.
|
static java.util.List<App> |
findByCategory(java.lang.String category,
int start,
int end)
Returns a range of all the apps where category = ?.
|
static 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 = ?.
|
static java.util.List<App> |
findByCategory(java.lang.String category,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the apps where category = ?.
|
static App |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the first app in the ordered set where companyId = ?.
|
static App |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
Returns the last app in the ordered set where companyId = ?.
|
static 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 = ?.
|
static java.util.List<App> |
findByCompanyId(long companyId)
Returns all the apps where companyId = ?.
|
static java.util.List<App> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the apps where companyId = ?.
|
static 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 = ?.
|
static java.util.List<App> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the apps where companyId = ?.
|
static App |
findByPrimaryKey(long appId)
Returns the app with the primary key or throws a
NoSuchAppException if it could not be found. |
static App |
findByRemoteAppId(long remoteAppId)
Returns the app where remoteAppId = ? or throws a
NoSuchAppException if it could not be found. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<App> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the apps where uuid = ? and companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 retrieveFromCache)
Returns an ordered range of all the apps where uuid = ? and companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<App> |
findByUuid(java.lang.String uuid)
Returns all the apps where uuid = ?.
|
static java.util.List<App> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the apps where uuid = ?.
|
static 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 = ?.
|
static java.util.List<App> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the apps where uuid = ?.
|
static java.util.List<App> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<App> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<App> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static AppPersistence |
getPersistence() |
static App |
remove(long appId)
Removes the app with the primary key from the database.
|
static void |
removeAll()
Removes all the apps from the database.
|
static void |
removeByCategory(java.lang.String category)
Removes all the apps where category = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the apps where companyId = ? from the database.
|
static App |
removeByRemoteAppId(long remoteAppId)
Removes the app where remoteAppId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the apps where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the apps where uuid = ? from the database.
|
static App |
update(App app) |
static App |
update(App app,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static App |
updateImpl(App app) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(App app)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<App> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<App> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<App> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static App update(App app)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static App update(App app, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<App> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)public static 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)public static java.util.List<App> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static App 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 foundpublic static App 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 foundpublic static App 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 foundpublic static App 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 foundpublic static App[] 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 foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<App> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)public static 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)public static 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 retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static App 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 foundpublic static App 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 foundpublic static App 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 foundpublic static App 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 foundpublic static App[] 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 foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<App> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)public static 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)public static java.util.List<App> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static App 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 foundpublic static App 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 foundpublic static App 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 foundpublic static App 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 foundpublic static App[] 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 foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static App findByRemoteAppId(long remoteAppId) throws NoSuchAppException
NoSuchAppException
if it could not be found.remoteAppId
- the remote app IDNoSuchAppException
- if a matching app could not be foundpublic static App 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 foundpublic static App fetchByRemoteAppId(long remoteAppId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.remoteAppId
- the remote app IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching app could not be foundpublic static App removeByRemoteAppId(long remoteAppId) throws NoSuchAppException
remoteAppId
- the remote app IDNoSuchAppException
public static int countByRemoteAppId(long remoteAppId)
remoteAppId
- the remote app IDpublic static java.util.List<App> findByCategory(java.lang.String category)
category
- the categorypublic static java.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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
category
- the categorystart
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)public static 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)public static java.util.List<App> findByCategory(java.lang.String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static App 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 foundpublic static App 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 foundpublic static App 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 foundpublic static App 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 foundpublic static App[] 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 foundpublic static void removeByCategory(java.lang.String category)
category
- the categorypublic static int countByCategory(java.lang.String category)
category
- the categorypublic static void cacheResult(App app)
app
- the apppublic static void cacheResult(java.util.List<App> apps)
apps
- the appspublic static App create(long appId)
appId
- the primary key for the new apppublic static App remove(long appId) throws NoSuchAppException
appId
- the primary key of the appNoSuchAppException
- if a app with the primary key could not be foundpublic static App 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 foundpublic static App 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 foundpublic static java.util.Map<java.io.Serializable,App> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<App> findAll()
public static 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of appsend
- the upper bound of the range of apps (not inclusive)public static 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)public static java.util.List<App> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AppModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static AppPersistence getPersistence()