@ProviderType
public class KaleoDraftDefinitionUtil
extends java.lang.Object
com.liferay.portal.workflow.kaleo.designer.service.persistence.impl.KaleoDraftDefinitionPersistenceImpl
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
KaleoDraftDefinitionPersistence
,
com.liferay.portal.workflow.kaleo.designer.service.persistence.impl.KaleoDraftDefinitionPersistenceImpl
Constructor and Description |
---|
KaleoDraftDefinitionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(KaleoDraftDefinition kaleoDraftDefinition)
Caches the kaleo draft definition in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KaleoDraftDefinition> kaleoDraftDefinitions)
Caches the kaleo draft definitions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KaleoDraftDefinition kaleoDraftDefinition) |
static int |
countAll()
Returns the number of kaleo draft definitions.
|
static int |
countByC_N_V_D(long companyId,
java.lang.String name,
int version,
int draftVersion)
Returns the number of kaleo draft definitions where companyId = ? and name = ? and version = ? and draftVersion = ?.
|
static int |
countByC_N_V(long companyId,
java.lang.String name,
int version)
Returns the number of kaleo draft definitions where companyId = ? and name = ? and version = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of kaleo draft definitions where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static KaleoDraftDefinition |
create(long kaleoDraftDefinitionId)
Creates a new kaleo draft definition with the primary key.
|
static KaleoDraftDefinition |
fetchByC_N_V_D(long companyId,
java.lang.String name,
int version,
int draftVersion)
Returns the kaleo draft definition where companyId = ? and name = ? and version = ? and draftVersion = ? or returns
null if it could not be found. |
static KaleoDraftDefinition |
fetchByC_N_V_D(long companyId,
java.lang.String name,
int version,
int draftVersion,
boolean retrieveFromCache)
Returns the kaleo draft definition where companyId = ? and name = ? and version = ? and draftVersion = ? or returns
null if it could not be found, optionally using the finder cache. |
static KaleoDraftDefinition |
fetchByC_N_V_First(long companyId,
java.lang.String name,
int version,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the first kaleo draft definition in the ordered set where companyId = ? and name = ? and version = ?.
|
static KaleoDraftDefinition |
fetchByC_N_V_Last(long companyId,
java.lang.String name,
int version,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the last kaleo draft definition in the ordered set where companyId = ? and name = ? and version = ?.
|
static KaleoDraftDefinition |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the first kaleo draft definition in the ordered set where companyId = ?.
|
static KaleoDraftDefinition |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the last kaleo draft definition in the ordered set where companyId = ?.
|
static KaleoDraftDefinition |
fetchByPrimaryKey(long kaleoDraftDefinitionId)
Returns the kaleo draft definition with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,KaleoDraftDefinition> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<KaleoDraftDefinition> |
findAll()
Returns all the kaleo draft definitions.
|
static java.util.List<KaleoDraftDefinition> |
findAll(int start,
int end)
Returns a range of all the kaleo draft definitions.
|
static java.util.List<KaleoDraftDefinition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns an ordered range of all the kaleo draft definitions.
|
static java.util.List<KaleoDraftDefinition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo draft definitions.
|
static KaleoDraftDefinition |
findByC_N_V_D(long companyId,
java.lang.String name,
int version,
int draftVersion)
Returns the kaleo draft definition where companyId = ? and name = ? and version = ? and draftVersion = ? or throws a
NoSuchKaleoDraftDefinitionException if it could not be found. |
static KaleoDraftDefinition |
findByC_N_V_First(long companyId,
java.lang.String name,
int version,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the first kaleo draft definition in the ordered set where companyId = ? and name = ? and version = ?.
|
static KaleoDraftDefinition |
findByC_N_V_Last(long companyId,
java.lang.String name,
int version,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the last kaleo draft definition in the ordered set where companyId = ? and name = ? and version = ?.
|
static KaleoDraftDefinition[] |
findByC_N_V_PrevAndNext(long kaleoDraftDefinitionId,
long companyId,
java.lang.String name,
int version,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the kaleo draft definitions before and after the current kaleo draft definition in the ordered set where companyId = ? and name = ? and version = ?.
|
static java.util.List<KaleoDraftDefinition> |
findByC_N_V(long companyId,
java.lang.String name,
int version)
Returns all the kaleo draft definitions where companyId = ? and name = ? and version = ?.
|
static java.util.List<KaleoDraftDefinition> |
findByC_N_V(long companyId,
java.lang.String name,
int version,
int start,
int end)
Returns a range of all the kaleo draft definitions where companyId = ? and name = ? and version = ?.
|
static java.util.List<KaleoDraftDefinition> |
findByC_N_V(long companyId,
java.lang.String name,
int version,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns an ordered range of all the kaleo draft definitions where companyId = ? and name = ? and version = ?.
|
static java.util.List<KaleoDraftDefinition> |
findByC_N_V(long companyId,
java.lang.String name,
int version,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo draft definitions where companyId = ? and name = ? and version = ?.
|
static KaleoDraftDefinition |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the first kaleo draft definition in the ordered set where companyId = ?.
|
static KaleoDraftDefinition |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the last kaleo draft definition in the ordered set where companyId = ?.
|
static KaleoDraftDefinition[] |
findByCompanyId_PrevAndNext(long kaleoDraftDefinitionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns the kaleo draft definitions before and after the current kaleo draft definition in the ordered set where companyId = ?.
|
static java.util.List<KaleoDraftDefinition> |
findByCompanyId(long companyId)
Returns all the kaleo draft definitions where companyId = ?.
|
static java.util.List<KaleoDraftDefinition> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the kaleo draft definitions where companyId = ?.
|
static java.util.List<KaleoDraftDefinition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Returns an ordered range of all the kaleo draft definitions where companyId = ?.
|
static java.util.List<KaleoDraftDefinition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo draft definitions where companyId = ?.
|
static KaleoDraftDefinition |
findByPrimaryKey(long kaleoDraftDefinitionId)
Returns the kaleo draft definition with the primary key or throws a
NoSuchKaleoDraftDefinitionException if it could not be found. |
static java.util.List<KaleoDraftDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<KaleoDraftDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<KaleoDraftDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator) |
static KaleoDraftDefinitionPersistence |
getPersistence() |
static KaleoDraftDefinition |
remove(long kaleoDraftDefinitionId)
Removes the kaleo draft definition with the primary key from the database.
|
static void |
removeAll()
Removes all the kaleo draft definitions from the database.
|
static KaleoDraftDefinition |
removeByC_N_V_D(long companyId,
java.lang.String name,
int version,
int draftVersion)
Removes the kaleo draft definition where companyId = ? and name = ? and version = ? and draftVersion = ? from the database.
|
static void |
removeByC_N_V(long companyId,
java.lang.String name,
int version)
Removes all the kaleo draft definitions where companyId = ? and name = ? and version = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the kaleo draft definitions where companyId = ? from the database.
|
static KaleoDraftDefinition |
update(KaleoDraftDefinition kaleoDraftDefinition) |
static KaleoDraftDefinition |
update(KaleoDraftDefinition kaleoDraftDefinition,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KaleoDraftDefinition |
updateImpl(KaleoDraftDefinition kaleoDraftDefinition) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(KaleoDraftDefinition kaleoDraftDefinition)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<KaleoDraftDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<KaleoDraftDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<KaleoDraftDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static KaleoDraftDefinition update(KaleoDraftDefinition kaleoDraftDefinition)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static KaleoDraftDefinition update(KaleoDraftDefinition kaleoDraftDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<KaleoDraftDefinition> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<KaleoDraftDefinition> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)public static java.util.List<KaleoDraftDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoDraftDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoDraftDefinition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator) throws NoSuchKaleoDraftDefinitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoDraftDefinitionException
- if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator) throws NoSuchKaleoDraftDefinitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoDraftDefinitionException
- if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition[] findByCompanyId_PrevAndNext(long kaleoDraftDefinitionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator) throws NoSuchKaleoDraftDefinitionException
kaleoDraftDefinitionId
- the primary key of the current kaleo draft definitioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoDraftDefinitionException
- if a kaleo draft 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 java.util.List<KaleoDraftDefinition> findByC_N_V(long companyId, java.lang.String name, int version)
companyId
- the company IDname
- the nameversion
- the versionpublic static java.util.List<KaleoDraftDefinition> findByC_N_V(long companyId, java.lang.String name, int version, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the nameversion
- the versionstart
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)public static java.util.List<KaleoDraftDefinition> findByC_N_V(long companyId, java.lang.String name, int version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the nameversion
- the versionstart
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoDraftDefinition> findByC_N_V(long companyId, java.lang.String name, int version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the nameversion
- the versionstart
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoDraftDefinition findByC_N_V_First(long companyId, java.lang.String name, int version, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator) throws NoSuchKaleoDraftDefinitionException
companyId
- the company IDname
- the nameversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoDraftDefinitionException
- if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition fetchByC_N_V_First(long companyId, java.lang.String name, int version, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
companyId
- the company IDname
- the nameversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition findByC_N_V_Last(long companyId, java.lang.String name, int version, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator) throws NoSuchKaleoDraftDefinitionException
companyId
- the company IDname
- the nameversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoDraftDefinitionException
- if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition fetchByC_N_V_Last(long companyId, java.lang.String name, int version, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
companyId
- the company IDname
- the nameversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition[] findByC_N_V_PrevAndNext(long kaleoDraftDefinitionId, long companyId, java.lang.String name, int version, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator) throws NoSuchKaleoDraftDefinitionException
kaleoDraftDefinitionId
- the primary key of the current kaleo draft definitioncompanyId
- the company IDname
- the nameversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoDraftDefinitionException
- if a kaleo draft definition with the primary key could not be foundpublic static void removeByC_N_V(long companyId, java.lang.String name, int version)
companyId
- the company IDname
- the nameversion
- the versionpublic static int countByC_N_V(long companyId, java.lang.String name, int version)
companyId
- the company IDname
- the nameversion
- the versionpublic static KaleoDraftDefinition findByC_N_V_D(long companyId, java.lang.String name, int version, int draftVersion) throws NoSuchKaleoDraftDefinitionException
NoSuchKaleoDraftDefinitionException
if it could not be found.companyId
- the company IDname
- the nameversion
- the versiondraftVersion
- the draft versionNoSuchKaleoDraftDefinitionException
- if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition fetchByC_N_V_D(long companyId, java.lang.String name, int version, int draftVersion)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the nameversion
- the versiondraftVersion
- the draft versionnull
if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition fetchByC_N_V_D(long companyId, java.lang.String name, int version, int draftVersion, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameversion
- the versiondraftVersion
- the draft versionretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching kaleo draft definition could not be foundpublic static KaleoDraftDefinition removeByC_N_V_D(long companyId, java.lang.String name, int version, int draftVersion) throws NoSuchKaleoDraftDefinitionException
companyId
- the company IDname
- the nameversion
- the versiondraftVersion
- the draft versionNoSuchKaleoDraftDefinitionException
public static int countByC_N_V_D(long companyId, java.lang.String name, int version, int draftVersion)
companyId
- the company IDname
- the nameversion
- the versiondraftVersion
- the draft versionpublic static void cacheResult(KaleoDraftDefinition kaleoDraftDefinition)
kaleoDraftDefinition
- the kaleo draft definitionpublic static void cacheResult(java.util.List<KaleoDraftDefinition> kaleoDraftDefinitions)
kaleoDraftDefinitions
- the kaleo draft definitionspublic static KaleoDraftDefinition create(long kaleoDraftDefinitionId)
kaleoDraftDefinitionId
- the primary key for the new kaleo draft definitionpublic static KaleoDraftDefinition remove(long kaleoDraftDefinitionId) throws NoSuchKaleoDraftDefinitionException
kaleoDraftDefinitionId
- the primary key of the kaleo draft definitionNoSuchKaleoDraftDefinitionException
- if a kaleo draft definition with the primary key could not be foundpublic static KaleoDraftDefinition updateImpl(KaleoDraftDefinition kaleoDraftDefinition)
public static KaleoDraftDefinition findByPrimaryKey(long kaleoDraftDefinitionId) throws NoSuchKaleoDraftDefinitionException
NoSuchKaleoDraftDefinitionException
if it could not be found.kaleoDraftDefinitionId
- the primary key of the kaleo draft definitionNoSuchKaleoDraftDefinitionException
- if a kaleo draft definition with the primary key could not be foundpublic static KaleoDraftDefinition fetchByPrimaryKey(long kaleoDraftDefinitionId)
null
if it could not be found.kaleoDraftDefinitionId
- the primary key of the kaleo draft definitionnull
if a kaleo draft definition with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,KaleoDraftDefinition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<KaleoDraftDefinition> findAll()
public static java.util.List<KaleoDraftDefinition> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)public static java.util.List<KaleoDraftDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoDraftDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDraftDefinition> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoDraftDefinitionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo draft definitionsend
- the upper bound of the range of kaleo draft definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static KaleoDraftDefinitionPersistence getPersistence()