public class AHOrgUtil extends Object
AHOrgPersistenceImpl
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
AHOrgPersistence
,
AHOrgPersistenceImpl
Constructor and Description |
---|
AHOrgUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(AHOrg ahOrg)
Caches the a h org in the entity cache if it is enabled.
|
static void |
cacheResult(List<AHOrg> ahOrgs)
Caches the a h orgs in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(AHOrg ahOrg) |
static int |
countAll()
Returns the number of a h orgs.
|
static int |
countByname(String name)
Returns the number of a h orgs where name = ?.
|
static int |
countByowner(String owner)
Returns the number of a h orgs where owner = ?.
|
static int |
countBystatus(int status)
Returns the number of a h orgs where status = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static AHOrg |
create(long orgId)
Creates a new a h org with the primary key.
|
static AHOrg |
fetchByname_First(String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h org in the ordered set where name = ?.
|
static AHOrg |
fetchByname_Last(String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h org in the ordered set where name = ?.
|
static AHOrg |
fetchByowner_First(String owner,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h org in the ordered set where owner = ?.
|
static AHOrg |
fetchByowner_Last(String owner,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h org in the ordered set where owner = ?.
|
static AHOrg |
fetchByPrimaryKey(long orgId)
Returns the a h org with the primary key or returns
null if it could not be found. |
static AHOrg |
fetchBystatus_First(int status,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h org in the ordered set where status = ?.
|
static AHOrg |
fetchBystatus_Last(int status,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h org in the ordered set where status = ?.
|
static List<AHOrg> |
findAll()
Returns all the a h orgs.
|
static List<AHOrg> |
findAll(int start,
int end)
Returns a range of all the a h orgs.
|
static List<AHOrg> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h orgs.
|
static AHOrg |
findByname_First(String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h org in the ordered set where name = ?.
|
static AHOrg |
findByname_Last(String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h org in the ordered set where name = ?.
|
static AHOrg[] |
findByname_PrevAndNext(long orgId,
String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the a h orgs before and after the current a h org in the ordered set where name = ?.
|
static List<AHOrg> |
findByname(String name)
Returns all the a h orgs where name = ?.
|
static List<AHOrg> |
findByname(String name,
int start,
int end)
Returns a range of all the a h orgs where name = ?.
|
static List<AHOrg> |
findByname(String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h orgs where name = ?.
|
static AHOrg |
findByowner_First(String owner,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h org in the ordered set where owner = ?.
|
static AHOrg |
findByowner_Last(String owner,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h org in the ordered set where owner = ?.
|
static AHOrg[] |
findByowner_PrevAndNext(long orgId,
String owner,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the a h orgs before and after the current a h org in the ordered set where owner = ?.
|
static List<AHOrg> |
findByowner(String owner)
Returns all the a h orgs where owner = ?.
|
static List<AHOrg> |
findByowner(String owner,
int start,
int end)
Returns a range of all the a h orgs where owner = ?.
|
static List<AHOrg> |
findByowner(String owner,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h orgs where owner = ?.
|
static AHOrg |
findByPrimaryKey(long orgId)
Returns the a h org with the primary key or throws a
NoSuchAHOrgException if it could not be found. |
static AHOrg |
findBystatus_First(int status,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h org in the ordered set where status = ?.
|
static AHOrg |
findBystatus_Last(int status,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h org in the ordered set where status = ?.
|
static AHOrg[] |
findBystatus_PrevAndNext(long orgId,
int status,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the a h orgs before and after the current a h org in the ordered set where status = ?.
|
static List<AHOrg> |
findBystatus(int status)
Returns all the a h orgs where status = ?.
|
static List<AHOrg> |
findBystatus(int status,
int start,
int end)
Returns a range of all the a h orgs where status = ?.
|
static List<AHOrg> |
findBystatus(int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h orgs where status = ?.
|
static List<AHOrg> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static List<AHOrg> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static List<AHOrg> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
static AHOrgPersistence |
getPersistence() |
static AHOrg |
remove(long orgId)
Removes the a h org with the primary key from the database.
|
static void |
removeAll()
Removes all the a h orgs from the database.
|
static void |
removeByname(String name)
Removes all the a h orgs where name = ? from the database.
|
static void |
removeByowner(String owner)
Removes all the a h orgs where owner = ? from the database.
|
static void |
removeBystatus(int status)
Removes all the a h orgs where status = ? from the database.
|
void |
setPersistence(AHOrgPersistence persistence)
Deprecated.
As of 6.2.0
|
static AHOrg |
update(AHOrg ahOrg) |
static AHOrg |
update(AHOrg ahOrg,
com.liferay.portal.service.ServiceContext serviceContext) |
static AHOrg |
updateImpl(AHOrg ahOrg) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AHOrg ahOrg)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<AHOrg> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<AHOrg> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<AHOrg> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AHOrg update(AHOrg ahOrg) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static AHOrg update(AHOrg ahOrg, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<AHOrg> findByname(String name) throws com.liferay.portal.kernel.exception.SystemException
name
- the namecom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findByname(String name, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHOrgModelImpl
. 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.
name
- the namestart
- the lower bound of the range of a h orgsend
- the upper bound of the range of a h orgs (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findByname(String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHOrgModelImpl
. 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.
name
- the namestart
- the lower bound of the range of a h orgsend
- the upper bound of the range of a h orgs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg findByname_First(String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
name
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg fetchByname_First(String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
name
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg findByname_Last(String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
name
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg fetchByname_Last(String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
name
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg[] findByname_PrevAndNext(long orgId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
orgId
- the primary key of the current a h orgname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a a h org with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeByname(String name) throws com.liferay.portal.kernel.exception.SystemException
name
- the namecom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int countByname(String name) throws com.liferay.portal.kernel.exception.SystemException
name
- the namecom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findByowner(String owner) throws com.liferay.portal.kernel.exception.SystemException
owner
- the ownercom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findByowner(String owner, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHOrgModelImpl
. 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.
owner
- the ownerstart
- the lower bound of the range of a h orgsend
- the upper bound of the range of a h orgs (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findByowner(String owner, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHOrgModelImpl
. 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.
owner
- the ownerstart
- the lower bound of the range of a h orgsend
- the upper bound of the range of a h orgs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg findByowner_First(String owner, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
owner
- the ownerorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg fetchByowner_First(String owner, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
owner
- the ownerorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg findByowner_Last(String owner, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
owner
- the ownerorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg fetchByowner_Last(String owner, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
owner
- the ownerorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg[] findByowner_PrevAndNext(long orgId, String owner, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
orgId
- the primary key of the current a h orgowner
- the ownerorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a a h org with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeByowner(String owner) throws com.liferay.portal.kernel.exception.SystemException
owner
- the ownercom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int countByowner(String owner) throws com.liferay.portal.kernel.exception.SystemException
owner
- the ownercom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findBystatus(int status) throws com.liferay.portal.kernel.exception.SystemException
status
- the statuscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findBystatus(int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHOrgModelImpl
. 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.
status
- the statusstart
- the lower bound of the range of a h orgsend
- the upper bound of the range of a h orgs (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findBystatus(int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHOrgModelImpl
. 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.
status
- the statusstart
- the lower bound of the range of a h orgsend
- the upper bound of the range of a h orgs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg findBystatus_First(int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
status
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg fetchBystatus_First(int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
status
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg findBystatus_Last(int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
status
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg fetchBystatus_Last(int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
status
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h org could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg[] findBystatus_PrevAndNext(long orgId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
orgId
- the primary key of the current a h orgstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHOrgException
- if a a h org with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeBystatus(int status) throws com.liferay.portal.kernel.exception.SystemException
status
- the statuscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int countBystatus(int status) throws com.liferay.portal.kernel.exception.SystemException
status
- the statuscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void cacheResult(AHOrg ahOrg)
ahOrg
- the a h orgpublic static void cacheResult(List<AHOrg> ahOrgs)
ahOrgs
- the a h orgspublic static AHOrg create(long orgId)
orgId
- the primary key for the new a h orgpublic static AHOrg remove(long orgId) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
orgId
- the primary key of the a h orgNoSuchAHOrgException
- if a a h org with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg updateImpl(AHOrg ahOrg) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
public static AHOrg findByPrimaryKey(long orgId) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHOrgException
NoSuchAHOrgException
if it could not be found.orgId
- the primary key of the a h orgNoSuchAHOrgException
- if a a h org with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrg fetchByPrimaryKey(long orgId) throws com.liferay.portal.kernel.exception.SystemException
null
if it could not be found.orgId
- the primary key of the a h orgnull
if a a h org with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findAll() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findAll(int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHOrgModelImpl
. 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 a h orgsend
- the upper bound of the range of a h orgs (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOrg> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHOrgModelImpl
. 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 a h orgsend
- the upper bound of the range of a h orgs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAll() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int countAll() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHOrgPersistence getPersistence()
public void setPersistence(AHOrgPersistence persistence)
Copyright © 2016 Fraunhofer FOKUS. All rights reserved.