public class DefinitionUtil
extends java.lang.Object
com.liferay.portal.reports.engine.console.service.persistence.impl.DefinitionPersistenceImpl
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
DefinitionPersistence
Constructor and Description |
---|
DefinitionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(Definition definition)
Caches the definition in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<Definition> definitions)
Caches the definitions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Definition definition) |
static int |
countAll()
Returns the number of definitions.
|
static int |
countByCompanyId(long companyId)
Returns the number of definitions where companyId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of definitions where groupId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of definitions where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of definitions where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of definitions where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static Definition |
create(long definitionId)
Creates a new definition with the primary key.
|
static Definition |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where companyId = ?.
|
static Definition |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where companyId = ?.
|
static Definition |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where groupId = ?.
|
static Definition |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where groupId = ?.
|
static Definition |
fetchByPrimaryKey(long definitionId)
Returns the definition with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Definition> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static Definition |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where uuid = ? and companyId = ?.
|
static Definition |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where uuid = ? and companyId = ?.
|
static Definition |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where uuid = ?.
|
static Definition |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the definition where uuid = ? and groupId = ? or returns
null if it could not be found. |
static Definition |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the definition where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static Definition |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where uuid = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of definitions that the user has permission to view where groupId = ?.
|
static Definition[] |
filterFindByGroupId_PrevAndNext(long definitionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the definitions before and after the current definition in the ordered set of definitions that the user has permission to view where groupId = ?.
|
static java.util.List<Definition> |
filterFindByGroupId(long groupId)
Returns all the definitions that the user has permission to view where groupId = ?.
|
static java.util.List<Definition> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the definitions that the user has permission to view where groupId = ?.
|
static java.util.List<Definition> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns an ordered range of all the definitions that the user has permissions to view where groupId = ?.
|
static java.util.List<Definition> |
findAll()
Returns all the definitions.
|
static java.util.List<Definition> |
findAll(int start,
int end)
Returns a range of all the definitions.
|
static java.util.List<Definition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns an ordered range of all the definitions.
|
static java.util.List<Definition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the definitions.
|
static Definition |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where companyId = ?.
|
static Definition |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where companyId = ?.
|
static Definition[] |
findByCompanyId_PrevAndNext(long definitionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the definitions before and after the current definition in the ordered set where companyId = ?.
|
static java.util.List<Definition> |
findByCompanyId(long companyId)
Returns all the definitions where companyId = ?.
|
static java.util.List<Definition> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the definitions where companyId = ?.
|
static java.util.List<Definition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns an ordered range of all the definitions where companyId = ?.
|
static java.util.List<Definition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the definitions where companyId = ?.
|
static Definition |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where groupId = ?.
|
static Definition |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where groupId = ?.
|
static Definition[] |
findByGroupId_PrevAndNext(long definitionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the definitions before and after the current definition in the ordered set where groupId = ?.
|
static java.util.List<Definition> |
findByGroupId(long groupId)
Returns all the definitions where groupId = ?.
|
static java.util.List<Definition> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the definitions where groupId = ?.
|
static java.util.List<Definition> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns an ordered range of all the definitions where groupId = ?.
|
static java.util.List<Definition> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the definitions where groupId = ?.
|
static Definition |
findByPrimaryKey(long definitionId)
Returns the definition with the primary key or throws a
NoSuchDefinitionException if it could not be found. |
static Definition |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where uuid = ? and companyId = ?.
|
static Definition |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where uuid = ? and companyId = ?.
|
static Definition[] |
findByUuid_C_PrevAndNext(long definitionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the definitions before and after the current definition in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<Definition> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the definitions where uuid = ? and companyId = ?.
|
static java.util.List<Definition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the definitions where uuid = ? and companyId = ?.
|
static java.util.List<Definition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns an ordered range of all the definitions where uuid = ? and companyId = ?.
|
static java.util.List<Definition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the definitions where uuid = ? and companyId = ?.
|
static Definition |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where uuid = ?.
|
static Definition |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the definition where uuid = ? and groupId = ? or throws a
NoSuchDefinitionException if it could not be found. |
static Definition |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where uuid = ?.
|
static Definition[] |
findByUuid_PrevAndNext(long definitionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the definitions before and after the current definition in the ordered set where uuid = ?.
|
static java.util.List<Definition> |
findByUuid(java.lang.String uuid)
Returns all the definitions where uuid = ?.
|
static java.util.List<Definition> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the definitions where uuid = ?.
|
static java.util.List<Definition> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns an ordered range of all the definitions where uuid = ?.
|
static java.util.List<Definition> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the definitions where uuid = ?.
|
static java.util.List<Definition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<Definition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Definition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) |
static DefinitionPersistence |
getPersistence() |
static Definition |
remove(long definitionId)
Removes the definition with the primary key from the database.
|
static void |
removeAll()
Removes all the definitions from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the definitions where companyId = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the definitions where groupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the definitions where uuid = ? and companyId = ? from the database.
|
static Definition |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the definition where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the definitions where uuid = ? from the database.
|
static Definition |
update(Definition definition) |
static Definition |
update(Definition definition,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Definition |
updateImpl(Definition definition) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Definition definition)
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.Map<java.io.Serializable,Definition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Definition update(Definition definition)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static Definition update(Definition definition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<Definition> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<Definition> 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 DefinitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)public static java.util.List<Definition> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Definition> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Definition findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching definition could not be foundpublic static Definition findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching definition could not be foundpublic static Definition[] findByUuid_PrevAndNext(long definitionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
definitionId
- the primary key of the current definitionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a definition 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 Definition findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchDefinitionException
NoSuchDefinitionException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching definition could not be foundpublic static Definition fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching definition could not be foundpublic static Definition removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchDefinitionException
uuid
- the uuidgroupId
- the group IDNoSuchDefinitionException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<Definition> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Definition> 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 DefinitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)public static java.util.List<Definition> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Definition> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Definition findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching definition could not be foundpublic static Definition findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching definition could not be foundpublic static Definition[] findByUuid_C_PrevAndNext(long definitionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
definitionId
- the primary key of the current definitionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a definition 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<Definition> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Definition> findByGroupId(long groupId, 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 DefinitionModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)public static java.util.List<Definition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Definition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Definition findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching definition could not be foundpublic static Definition findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching definition could not be foundpublic static Definition[] findByGroupId_PrevAndNext(long definitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
definitionId
- the primary key of the current definitiongroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a definition with the primary key could not be foundpublic static java.util.List<Definition> filterFindByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Definition> filterFindByGroupId(long groupId, 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 DefinitionModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)public static java.util.List<Definition> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static Definition[] filterFindByGroupId_PrevAndNext(long definitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
definitionId
- the primary key of the current definitiongroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a definition with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static int filterCountByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<Definition> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<Definition> 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 DefinitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)public static java.util.List<Definition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Definition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Definition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching definition could not be foundpublic static Definition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching definition could not be foundpublic static Definition fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching definition could not be foundpublic static Definition[] findByCompanyId_PrevAndNext(long definitionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException
definitionId
- the primary key of the current definitioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a definition 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 void cacheResult(Definition definition)
definition
- the definitionpublic static void cacheResult(java.util.List<Definition> definitions)
definitions
- the definitionspublic static Definition create(long definitionId)
definitionId
- the primary key for the new definitionpublic static Definition remove(long definitionId) throws NoSuchDefinitionException
definitionId
- the primary key of the definitionNoSuchDefinitionException
- if a definition with the primary key could not be foundpublic static Definition updateImpl(Definition definition)
public static Definition findByPrimaryKey(long definitionId) throws NoSuchDefinitionException
NoSuchDefinitionException
if it could not be found.definitionId
- the primary key of the definitionNoSuchDefinitionException
- if a definition with the primary key could not be foundpublic static Definition fetchByPrimaryKey(long definitionId)
null
if it could not be found.definitionId
- the primary key of the definitionnull
if a definition with the primary key could not be foundpublic static java.util.List<Definition> findAll()
public static java.util.List<Definition> 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 DefinitionModelImpl
.
start
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)public static java.util.List<Definition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
start
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Definition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> 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 DefinitionModelImpl
.
start
- the lower bound of the range of definitionsend
- the upper bound of the range of definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DefinitionPersistence getPersistence()