@ProviderType public interface DefinitionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Definition>
Caching information and settings can be found in portal.properties
DefinitionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(Definition definition)
Caches the definition in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<Definition> definitions)
Caches the definitions in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of definitions.
|
int |
countByCompanyId(long companyId)
Returns the number of definitions where companyId = ?.
|
int |
countByGroupId(long groupId)
Returns the number of definitions where groupId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of definitions where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of definitions where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of definitions where uuid = ?.
|
Definition |
create(long definitionId)
Creates a new definition with the primary key.
|
Definition |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where companyId = ?.
|
Definition |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where companyId = ?.
|
Definition |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where groupId = ?.
|
Definition |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where groupId = ?.
|
Definition |
fetchByPrimaryKey(long definitionId)
Returns the definition with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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. |
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 = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of definitions that the user has permission to view where groupId = ?.
|
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 = ?.
|
java.util.List<Definition> |
filterFindByGroupId(long groupId)
Returns all the definitions that the user has permission to view where groupId = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<Definition> |
findAll()
Returns all the definitions.
|
java.util.List<Definition> |
findAll(int start,
int end)
Returns a range of all the definitions.
|
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.
|
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.
|
Definition |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where companyId = ?.
|
Definition |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where companyId = ?.
|
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 = ?.
|
java.util.List<Definition> |
findByCompanyId(long companyId)
Returns all the definitions where companyId = ?.
|
java.util.List<Definition> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the definitions where companyId = ?.
|
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 = ?.
|
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 = ?.
|
Definition |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the first definition in the ordered set where groupId = ?.
|
Definition |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
Returns the last definition in the ordered set where groupId = ?.
|
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 = ?.
|
java.util.List<Definition> |
findByGroupId(long groupId)
Returns all the definitions where groupId = ?.
|
java.util.List<Definition> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the definitions where groupId = ?.
|
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 = ?.
|
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 = ?.
|
Definition |
findByPrimaryKey(long definitionId)
Returns the definition with the primary key or throws a
NoSuchDefinitionException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<Definition> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the definitions where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
java.util.List<Definition> |
findByUuid(java.lang.String uuid)
Returns all the definitions where uuid = ?.
|
java.util.List<Definition> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the definitions where uuid = ?.
|
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 = ?.
|
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 = ?.
|
Definition |
remove(long definitionId)
Removes the definition with the primary key from the database.
|
void |
removeAll()
Removes all the definitions from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the definitions where companyId = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the definitions where groupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the definitions where uuid = ? and companyId = ? from the database.
|
Definition |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the definition where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the definitions where uuid = ? from the database.
|
Definition |
updateImpl(Definition definition) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<Definition> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchDefinitionException
uuid
- the uuidgroupId
- the group IDNoSuchDefinitionException
int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDjava.util.List<Definition> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition[] 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<Definition> findByGroupId(long groupId)
groupId
- the group IDjava.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)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
)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 cacheDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition[] 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 foundjava.util.List<Definition> filterFindByGroupId(long groupId)
groupId
- the group IDjava.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)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
)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 foundvoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDint filterCountByGroupId(long groupId)
groupId
- the group IDjava.util.List<Definition> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition 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 foundDefinition[] 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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDvoid cacheResult(Definition definition)
definition
- the definitionvoid cacheResult(java.util.List<Definition> definitions)
definitions
- the definitionsDefinition create(long definitionId)
definitionId
- the primary key for the new definitionDefinition remove(long definitionId) throws NoSuchDefinitionException
definitionId
- the primary key of the definitionNoSuchDefinitionException
- if a definition with the primary key could not be foundDefinition updateImpl(Definition definition)
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 foundDefinition 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 foundjava.util.List<Definition> findAll()
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)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
)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 cachevoid removeAll()
int countAll()