Class KaleoDefinitionVersionUtil
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoDefinitionVersionPersistenceImpl
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(KaleoDefinitionVersion kaleoDefinitionVersion) Caches the kaleo definition version in the entity cache if it is enabled.static void
cacheResult
(List<KaleoDefinitionVersion> kaleoDefinitionVersions) Caches the kaleo definition versions in the entity cache if it is enabled.static void
static void
clearCache
(KaleoDefinitionVersion kaleoDefinitionVersion) static int
countAll()
Returns the number of kaleo definition versions.static int
countByC_N
(long companyId, String name) Returns the number of kaleo definition versions where companyId = ? and name = ?.static int
countByC_N_V
(long companyId, String name, String version) Returns the number of kaleo definition versions where companyId = ? and name = ? and version = ?.static int
countByCompanyId
(long companyId) Returns the number of kaleo definition versions where companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static KaleoDefinitionVersion
create
(long kaleoDefinitionVersionId) Creates a new kaleo definition version with the primary key.static KaleoDefinitionVersion
fetchByC_N_First
(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the first kaleo definition version in the ordered set where companyId = ? and name = ?.static KaleoDefinitionVersion
fetchByC_N_Last
(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the last kaleo definition version in the ordered set where companyId = ? and name = ?.static KaleoDefinitionVersion
fetchByC_N_V
(long companyId, String name, String version) Returns the kaleo definition version where companyId = ? and name = ? and version = ? or returnsnull
if it could not be found.static KaleoDefinitionVersion
fetchByC_N_V
(long companyId, String name, String version, boolean useFinderCache) Returns the kaleo definition version where companyId = ? and name = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.static KaleoDefinitionVersion
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the first kaleo definition version in the ordered set where companyId = ?.static KaleoDefinitionVersion
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the last kaleo definition version in the ordered set where companyId = ?.static KaleoDefinitionVersion
fetchByPrimaryKey
(long kaleoDefinitionVersionId) Returns the kaleo definition version with the primary key or returnsnull
if it could not be found.static Map<Serializable,
KaleoDefinitionVersion> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<KaleoDefinitionVersion>
findAll()
Returns all the kaleo definition versions.static List<KaleoDefinitionVersion>
findAll
(int start, int end) Returns a range of all the kaleo definition versions.static List<KaleoDefinitionVersion>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns an ordered range of all the kaleo definition versions.static List<KaleoDefinitionVersion>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo definition versions.static List<KaleoDefinitionVersion>
Returns all the kaleo definition versions where companyId = ? and name = ?.static List<KaleoDefinitionVersion>
Returns a range of all the kaleo definition versions where companyId = ? and name = ?.static List<KaleoDefinitionVersion>
findByC_N
(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns an ordered range of all the kaleo definition versions where companyId = ? and name = ?.static List<KaleoDefinitionVersion>
findByC_N
(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo definition versions where companyId = ? and name = ?.static KaleoDefinitionVersion
findByC_N_First
(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the first kaleo definition version in the ordered set where companyId = ? and name = ?.static KaleoDefinitionVersion
findByC_N_Last
(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the last kaleo definition version in the ordered set where companyId = ? and name = ?.static KaleoDefinitionVersion[]
findByC_N_PrevAndNext
(long kaleoDefinitionVersionId, long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the kaleo definition versions before and after the current kaleo definition version in the ordered set where companyId = ? and name = ?.static KaleoDefinitionVersion
findByC_N_V
(long companyId, String name, String version) Returns the kaleo definition version where companyId = ? and name = ? and version = ? or throws aNoSuchDefinitionVersionException
if it could not be found.static List<KaleoDefinitionVersion>
findByCompanyId
(long companyId) Returns all the kaleo definition versions where companyId = ?.static List<KaleoDefinitionVersion>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the kaleo definition versions where companyId = ?.static List<KaleoDefinitionVersion>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns an ordered range of all the kaleo definition versions where companyId = ?.static List<KaleoDefinitionVersion>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo definition versions where companyId = ?.static KaleoDefinitionVersion
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the first kaleo definition version in the ordered set where companyId = ?.static KaleoDefinitionVersion
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the last kaleo definition version in the ordered set where companyId = ?.static KaleoDefinitionVersion[]
findByCompanyId_PrevAndNext
(long kaleoDefinitionVersionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the kaleo definition versions before and after the current kaleo definition version in the ordered set where companyId = ?.static KaleoDefinitionVersion
findByPrimaryKey
(long kaleoDefinitionVersionId) Returns the kaleo definition version with the primary key or throws aNoSuchDefinitionVersionException
if it could not be found.static List<KaleoDefinitionVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<KaleoDefinitionVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<KaleoDefinitionVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) static KaleoDefinitionVersion
remove
(long kaleoDefinitionVersionId) Removes the kaleo definition version with the primary key from the database.static void
Removes all the kaleo definition versions from the database.static void
removeByC_N
(long companyId, String name) Removes all the kaleo definition versions where companyId = ? and name = ? from the database.static KaleoDefinitionVersion
removeByC_N_V
(long companyId, String name, String version) Removes the kaleo definition version where companyId = ? and name = ? and version = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the kaleo definition versions where companyId = ? from the database.static void
setPersistence
(KaleoDefinitionVersionPersistence persistence) static KaleoDefinitionVersion
update
(KaleoDefinitionVersion kaleoDefinitionVersion) static KaleoDefinitionVersion
update
(KaleoDefinitionVersion kaleoDefinitionVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static KaleoDefinitionVersion
updateImpl
(KaleoDefinitionVersion kaleoDefinitionVersion)
-
Constructor Details
-
KaleoDefinitionVersionUtil
public KaleoDefinitionVersionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,KaleoDefinitionVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<KaleoDefinitionVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<KaleoDefinitionVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<KaleoDefinitionVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static KaleoDefinitionVersion update(KaleoDefinitionVersion kaleoDefinitionVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCompanyId
Returns all the kaleo definition versions where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching kaleo definition versions
-
findByCompanyId
Returns a range of all the kaleo definition versions where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)- Returns:
- the range of matching kaleo definition versions
-
findByCompanyId
public static List<KaleoDefinitionVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns an ordered range of all the kaleo definition versions where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching kaleo definition versions
-
findByCompanyId
public static List<KaleoDefinitionVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo definition versions where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching kaleo definition versions
-
findByCompanyId_First
public static KaleoDefinitionVersion findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException Returns the first kaleo definition version in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kaleo definition version
- Throws:
NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundNoSuchDefinitionVersionException
-
fetchByCompanyId_First
public static KaleoDefinitionVersion fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the first kaleo definition version in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kaleo definition version, or
null
if a matching kaleo definition version could not be found
-
findByCompanyId_Last
public static KaleoDefinitionVersion findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException Returns the last kaleo definition version in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kaleo definition version
- Throws:
NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundNoSuchDefinitionVersionException
-
fetchByCompanyId_Last
public static KaleoDefinitionVersion fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the last kaleo definition version in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kaleo definition version, or
null
if a matching kaleo definition version could not be found
-
findByCompanyId_PrevAndNext
public static KaleoDefinitionVersion[] findByCompanyId_PrevAndNext(long kaleoDefinitionVersionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException Returns the kaleo definition versions before and after the current kaleo definition version in the ordered set where companyId = ?.- Parameters:
kaleoDefinitionVersionId
- the primary key of the current kaleo definition versioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kaleo definition version
- Throws:
NoSuchDefinitionVersionException
- if a kaleo definition version with the primary key could not be foundNoSuchDefinitionVersionException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the kaleo definition versions where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of kaleo definition versions where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching kaleo definition versions
-
findByC_N
Returns all the kaleo definition versions where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching kaleo definition versions
-
findByC_N
public static List<KaleoDefinitionVersion> findByC_N(long companyId, String name, int start, int end) Returns a range of all the kaleo definition versions where companyId = ? and name = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)- Returns:
- the range of matching kaleo definition versions
-
findByC_N
public static List<KaleoDefinitionVersion> findByC_N(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns an ordered range of all the kaleo definition versions where companyId = ? and name = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching kaleo definition versions
-
findByC_N
public static List<KaleoDefinitionVersion> findByC_N(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo definition versions where companyId = ? and name = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching kaleo definition versions
-
findByC_N_First
public static KaleoDefinitionVersion findByC_N_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException Returns the first kaleo definition version in the ordered set where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kaleo definition version
- Throws:
NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundNoSuchDefinitionVersionException
-
fetchByC_N_First
public static KaleoDefinitionVersion fetchByC_N_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the first kaleo definition version in the ordered set where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kaleo definition version, or
null
if a matching kaleo definition version could not be found
-
findByC_N_Last
public static KaleoDefinitionVersion findByC_N_Last(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException Returns the last kaleo definition version in the ordered set where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kaleo definition version
- Throws:
NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundNoSuchDefinitionVersionException
-
fetchByC_N_Last
public static KaleoDefinitionVersion fetchByC_N_Last(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns the last kaleo definition version in the ordered set where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kaleo definition version, or
null
if a matching kaleo definition version could not be found
-
findByC_N_PrevAndNext
public static KaleoDefinitionVersion[] findByC_N_PrevAndNext(long kaleoDefinitionVersionId, long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException Returns the kaleo definition versions before and after the current kaleo definition version in the ordered set where companyId = ? and name = ?.- Parameters:
kaleoDefinitionVersionId
- the primary key of the current kaleo definition versioncompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kaleo definition version
- Throws:
NoSuchDefinitionVersionException
- if a kaleo definition version with the primary key could not be foundNoSuchDefinitionVersionException
-
removeByC_N
Removes all the kaleo definition versions where companyId = ? and name = ? from the database.- Parameters:
companyId
- the company IDname
- the name
-
countByC_N
Returns the number of kaleo definition versions where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the number of matching kaleo definition versions
-
findByC_N_V
public static KaleoDefinitionVersion findByC_N_V(long companyId, String name, String version) throws NoSuchDefinitionVersionException Returns the kaleo definition version where companyId = ? and name = ? and version = ? or throws aNoSuchDefinitionVersionException
if it could not be found.- Parameters:
companyId
- the company IDname
- the nameversion
- the version- Returns:
- the matching kaleo definition version
- Throws:
NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundNoSuchDefinitionVersionException
-
fetchByC_N_V
Returns the kaleo definition version where companyId = ? and name = ? and version = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDname
- the nameversion
- the version- Returns:
- the matching kaleo definition version, or
null
if a matching kaleo definition version could not be found
-
fetchByC_N_V
public static KaleoDefinitionVersion fetchByC_N_V(long companyId, String name, String version, boolean useFinderCache) Returns the kaleo definition version where companyId = ? and name = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDname
- the nameversion
- the versionuseFinderCache
- whether to use the finder cache- Returns:
- the matching kaleo definition version, or
null
if a matching kaleo definition version could not be found
-
removeByC_N_V
public static KaleoDefinitionVersion removeByC_N_V(long companyId, String name, String version) throws NoSuchDefinitionVersionException Removes the kaleo definition version where companyId = ? and name = ? and version = ? from the database.- Parameters:
companyId
- the company IDname
- the nameversion
- the version- Returns:
- the kaleo definition version that was removed
- Throws:
NoSuchDefinitionVersionException
-
countByC_N_V
Returns the number of kaleo definition versions where companyId = ? and name = ? and version = ?.- Parameters:
companyId
- the company IDname
- the nameversion
- the version- Returns:
- the number of matching kaleo definition versions
-
cacheResult
Caches the kaleo definition version in the entity cache if it is enabled.- Parameters:
kaleoDefinitionVersion
- the kaleo definition version
-
cacheResult
Caches the kaleo definition versions in the entity cache if it is enabled.- Parameters:
kaleoDefinitionVersions
- the kaleo definition versions
-
create
Creates a new kaleo definition version with the primary key. Does not add the kaleo definition version to the database.- Parameters:
kaleoDefinitionVersionId
- the primary key for the new kaleo definition version- Returns:
- the new kaleo definition version
-
remove
public static KaleoDefinitionVersion remove(long kaleoDefinitionVersionId) throws NoSuchDefinitionVersionException Removes the kaleo definition version with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
kaleoDefinitionVersionId
- the primary key of the kaleo definition version- Returns:
- the kaleo definition version that was removed
- Throws:
NoSuchDefinitionVersionException
- if a kaleo definition version with the primary key could not be foundNoSuchDefinitionVersionException
-
updateImpl
-
findByPrimaryKey
public static KaleoDefinitionVersion findByPrimaryKey(long kaleoDefinitionVersionId) throws NoSuchDefinitionVersionException Returns the kaleo definition version with the primary key or throws aNoSuchDefinitionVersionException
if it could not be found.- Parameters:
kaleoDefinitionVersionId
- the primary key of the kaleo definition version- Returns:
- the kaleo definition version
- Throws:
NoSuchDefinitionVersionException
- if a kaleo definition version with the primary key could not be foundNoSuchDefinitionVersionException
-
fetchByPrimaryKey
Returns the kaleo definition version with the primary key or returnsnull
if it could not be found.- Parameters:
kaleoDefinitionVersionId
- the primary key of the kaleo definition version- Returns:
- the kaleo definition version, or
null
if a kaleo definition version with the primary key could not be found
-
findAll
Returns all the kaleo definition versions.- Returns:
- the kaleo definition versions
-
findAll
Returns a range of all the kaleo definition versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
start
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)- Returns:
- the range of kaleo definition versions
-
findAll
public static List<KaleoDefinitionVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) Returns an ordered range of all the kaleo definition versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
start
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of kaleo definition versions
-
findAll
public static List<KaleoDefinitionVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo definition versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoDefinitionVersionModelImpl
.- Parameters:
start
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of kaleo definition versions
-
removeAll
public static void removeAll()Removes all the kaleo definition versions from the database. -
countAll
public static int countAll()Returns the number of kaleo definition versions.- Returns:
- the number of kaleo definition versions
-
getPersistence
-
setPersistence
-