@ProviderType
public class KaleoDefinitionUtil
extends java.lang.Object
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoDefinitionPersistenceImpl
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
KaleoDefinitionPersistence
,
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoDefinitionPersistenceImpl
Constructor and Description |
---|
KaleoDefinitionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(KaleoDefinition kaleoDefinition)
Caches the kaleo definition in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KaleoDefinition> kaleoDefinitions)
Caches the kaleo definitions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KaleoDefinition kaleoDefinition) |
static int |
countAll()
Returns the number of kaleo definitions.
|
static int |
countByC_A(long companyId,
boolean active)
Returns the number of kaleo definitions where companyId = ? and active = ?.
|
static int |
countByC_N_A(long companyId,
java.lang.String name,
boolean active)
Returns the number of kaleo definitions where companyId = ? and name = ? and active = ?.
|
static int |
countByC_N_V(long companyId,
java.lang.String name,
int version)
Returns the number of kaleo definitions where companyId = ? and name = ? and version = ?.
|
static int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of kaleo definitions where companyId = ? and name = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of kaleo definitions where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static KaleoDefinition |
create(long kaleoDefinitionId)
Creates a new kaleo definition with the primary key.
|
static KaleoDefinition |
fetchByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ? and active = ?.
|
static KaleoDefinition |
fetchByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ? and active = ?.
|
static KaleoDefinition |
fetchByC_N_A_First(long companyId,
java.lang.String name,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ? and name = ? and active = ?.
|
static KaleoDefinition |
fetchByC_N_A_Last(long companyId,
java.lang.String name,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ? and name = ? and active = ?.
|
static KaleoDefinition |
fetchByC_N_First(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ? and name = ?.
|
static KaleoDefinition |
fetchByC_N_Last(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ? and name = ?.
|
static KaleoDefinition |
fetchByC_N_V(long companyId,
java.lang.String name,
int version)
Returns the kaleo definition where companyId = ? and name = ? and version = ? or returns
null if it could not be found. |
static KaleoDefinition |
fetchByC_N_V(long companyId,
java.lang.String name,
int version,
boolean retrieveFromCache)
Returns the kaleo definition where companyId = ? and name = ? and version = ? or returns
null if it could not be found, optionally using the finder cache. |
static KaleoDefinition |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ?.
|
static KaleoDefinition |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ?.
|
static KaleoDefinition |
fetchByPrimaryKey(long kaleoDefinitionId)
Returns the kaleo definition with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,KaleoDefinition> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<KaleoDefinition> |
findAll()
Returns all the kaleo definitions.
|
static java.util.List<KaleoDefinition> |
findAll(int start,
int end)
Returns a range of all the kaleo definitions.
|
static java.util.List<KaleoDefinition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns an ordered range of all the kaleo definitions.
|
static java.util.List<KaleoDefinition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo definitions.
|
static KaleoDefinition |
findByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ? and active = ?.
|
static KaleoDefinition |
findByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ? and active = ?.
|
static KaleoDefinition[] |
findByC_A_PrevAndNext(long kaleoDefinitionId,
long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the kaleo definitions before and after the current kaleo definition in the ordered set where companyId = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_A(long companyId,
boolean active)
Returns all the kaleo definitions where companyId = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_A(long companyId,
boolean active,
int start,
int end)
Returns a range of all the kaleo definitions where companyId = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns an ordered range of all the kaleo definitions where companyId = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo definitions where companyId = ? and active = ?.
|
static KaleoDefinition |
findByC_N_A_First(long companyId,
java.lang.String name,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ? and name = ? and active = ?.
|
static KaleoDefinition |
findByC_N_A_Last(long companyId,
java.lang.String name,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ? and name = ? and active = ?.
|
static KaleoDefinition[] |
findByC_N_A_PrevAndNext(long kaleoDefinitionId,
long companyId,
java.lang.String name,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the kaleo definitions before and after the current kaleo definition in the ordered set where companyId = ? and name = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_N_A(long companyId,
java.lang.String name,
boolean active)
Returns all the kaleo definitions where companyId = ? and name = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_N_A(long companyId,
java.lang.String name,
boolean active,
int start,
int end)
Returns a range of all the kaleo definitions where companyId = ? and name = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_N_A(long companyId,
java.lang.String name,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns an ordered range of all the kaleo definitions where companyId = ? and name = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_N_A(long companyId,
java.lang.String name,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo definitions where companyId = ? and name = ? and active = ?.
|
static KaleoDefinition |
findByC_N_First(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ? and name = ?.
|
static KaleoDefinition |
findByC_N_Last(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ? and name = ?.
|
static KaleoDefinition[] |
findByC_N_PrevAndNext(long kaleoDefinitionId,
long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the kaleo definitions before and after the current kaleo definition in the ordered set where companyId = ? and name = ?.
|
static KaleoDefinition |
findByC_N_V(long companyId,
java.lang.String name,
int version)
Returns the kaleo definition where companyId = ? and name = ? and version = ? or throws a
NoSuchDefinitionException if it could not be found. |
static java.util.List<KaleoDefinition> |
findByC_N(long companyId,
java.lang.String name)
Returns all the kaleo definitions where companyId = ? and name = ?.
|
static java.util.List<KaleoDefinition> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end)
Returns a range of all the kaleo definitions where companyId = ? and name = ?.
|
static java.util.List<KaleoDefinition> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns an ordered range of all the kaleo definitions where companyId = ? and name = ?.
|
static java.util.List<KaleoDefinition> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo definitions where companyId = ? and name = ?.
|
static KaleoDefinition |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ?.
|
static KaleoDefinition |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ?.
|
static KaleoDefinition[] |
findByCompanyId_PrevAndNext(long kaleoDefinitionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the kaleo definitions before and after the current kaleo definition in the ordered set where companyId = ?.
|
static java.util.List<KaleoDefinition> |
findByCompanyId(long companyId)
Returns all the kaleo definitions where companyId = ?.
|
static java.util.List<KaleoDefinition> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the kaleo definitions where companyId = ?.
|
static java.util.List<KaleoDefinition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns an ordered range of all the kaleo definitions where companyId = ?.
|
static java.util.List<KaleoDefinition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo definitions where companyId = ?.
|
static KaleoDefinition |
findByPrimaryKey(long kaleoDefinitionId)
Returns the kaleo definition with the primary key or throws a
NoSuchDefinitionException if it could not be found. |
static java.util.List<KaleoDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<KaleoDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<KaleoDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static KaleoDefinitionPersistence |
getPersistence() |
static KaleoDefinition |
remove(long kaleoDefinitionId)
Removes the kaleo definition with the primary key from the database.
|
static void |
removeAll()
Removes all the kaleo definitions from the database.
|
static void |
removeByC_A(long companyId,
boolean active)
Removes all the kaleo definitions where companyId = ? and active = ? from the database.
|
static void |
removeByC_N_A(long companyId,
java.lang.String name,
boolean active)
Removes all the kaleo definitions where companyId = ? and name = ? and active = ? from the database.
|
static KaleoDefinition |
removeByC_N_V(long companyId,
java.lang.String name,
int version)
Removes the kaleo definition where companyId = ? and name = ? and version = ? from the database.
|
static void |
removeByC_N(long companyId,
java.lang.String name)
Removes all the kaleo definitions where companyId = ? and name = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the kaleo definitions where companyId = ? from the database.
|
static KaleoDefinition |
update(KaleoDefinition kaleoDefinition) |
static KaleoDefinition |
update(KaleoDefinition kaleoDefinition,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KaleoDefinition |
updateImpl(KaleoDefinition kaleoDefinition) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(KaleoDefinition kaleoDefinition)
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<KaleoDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<KaleoDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<KaleoDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static KaleoDefinition update(KaleoDefinition kaleoDefinition)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static KaleoDefinition update(KaleoDefinition kaleoDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<KaleoDefinition> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)public static java.util.List<KaleoDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoDefinition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition[] findByCompanyId_PrevAndNext(long kaleoDefinitionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
kaleoDefinitionId
- the primary key of the current kaleo definitioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a kaleo 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<KaleoDefinition> findByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static java.util.List<KaleoDefinition> findByC_N(long companyId, java.lang.String name, 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 KaleoDefinitionModelImpl
. 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 namestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)public static java.util.List<KaleoDefinition> findByC_N(long companyId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 namestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoDefinition> findByC_N(long companyId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 namestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoDefinition findByC_N_First(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N_First(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition findByC_N_Last(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N_Last(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition[] findByC_N_PrevAndNext(long kaleoDefinitionId, long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
kaleoDefinitionId
- the primary key of the current kaleo definitioncompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a kaleo definition with the primary key could not be foundpublic static void removeByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static int countByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static java.util.List<KaleoDefinition> findByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static java.util.List<KaleoDefinition> findByC_A(long companyId, boolean active, 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 KaleoDefinitionModelImpl
. 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 IDactive
- the activestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)public static java.util.List<KaleoDefinition> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 IDactive
- the activestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoDefinition> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 IDactive
- the activestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoDefinition findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition[] findByC_A_PrevAndNext(long kaleoDefinitionId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
kaleoDefinitionId
- the primary key of the current kaleo definitioncompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a kaleo definition with the primary key could not be foundpublic static void removeByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static int countByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static KaleoDefinition findByC_N_V(long companyId, java.lang.String name, int version) throws NoSuchDefinitionException
NoSuchDefinitionException
if it could not be found.companyId
- the company IDname
- the nameversion
- the versionNoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N_V(long companyId, java.lang.String name, int version)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the nameversion
- the versionnull
if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N_V(long companyId, java.lang.String name, int version, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameversion
- the versionretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching kaleo definition could not be foundpublic static KaleoDefinition removeByC_N_V(long companyId, java.lang.String name, int version) throws NoSuchDefinitionException
companyId
- the company IDname
- the nameversion
- the versionNoSuchDefinitionException
public static int countByC_N_V(long companyId, java.lang.String name, int version)
companyId
- the company IDname
- the nameversion
- the versionpublic static java.util.List<KaleoDefinition> findByC_N_A(long companyId, java.lang.String name, boolean active)
companyId
- the company IDname
- the nameactive
- the activepublic static java.util.List<KaleoDefinition> findByC_N_A(long companyId, java.lang.String name, boolean active, 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 KaleoDefinitionModelImpl
. 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 nameactive
- the activestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)public static java.util.List<KaleoDefinition> findByC_N_A(long companyId, java.lang.String name, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 nameactive
- the activestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoDefinition> findByC_N_A(long companyId, java.lang.String name, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 nameactive
- the activestart
- the lower bound of the range of kaleo definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoDefinition findByC_N_A_First(long companyId, java.lang.String name, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDname
- the nameactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N_A_First(long companyId, java.lang.String name, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDname
- the nameactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition findByC_N_A_Last(long companyId, java.lang.String name, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDname
- the nameactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N_A_Last(long companyId, java.lang.String name, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDname
- the nameactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition[] findByC_N_A_PrevAndNext(long kaleoDefinitionId, long companyId, java.lang.String name, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
kaleoDefinitionId
- the primary key of the current kaleo definitioncompanyId
- the company IDname
- the nameactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a kaleo definition with the primary key could not be foundpublic static void removeByC_N_A(long companyId, java.lang.String name, boolean active)
companyId
- the company IDname
- the nameactive
- the activepublic static int countByC_N_A(long companyId, java.lang.String name, boolean active)
companyId
- the company IDname
- the nameactive
- the activepublic static void cacheResult(KaleoDefinition kaleoDefinition)
kaleoDefinition
- the kaleo definitionpublic static void cacheResult(java.util.List<KaleoDefinition> kaleoDefinitions)
kaleoDefinitions
- the kaleo definitionspublic static KaleoDefinition create(long kaleoDefinitionId)
kaleoDefinitionId
- the primary key for the new kaleo definitionpublic static KaleoDefinition remove(long kaleoDefinitionId) throws NoSuchDefinitionException
kaleoDefinitionId
- the primary key of the kaleo definitionNoSuchDefinitionException
- if a kaleo definition with the primary key could not be foundpublic static KaleoDefinition updateImpl(KaleoDefinition kaleoDefinition)
public static KaleoDefinition findByPrimaryKey(long kaleoDefinitionId) throws NoSuchDefinitionException
NoSuchDefinitionException
if it could not be found.kaleoDefinitionId
- the primary key of the kaleo definitionNoSuchDefinitionException
- if a kaleo definition with the primary key could not be foundpublic static KaleoDefinition fetchByPrimaryKey(long kaleoDefinitionId)
null
if it could not be found.kaleoDefinitionId
- the primary key of the kaleo definitionnull
if a kaleo definition with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,KaleoDefinition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<KaleoDefinition> findAll()
public static java.util.List<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)public static java.util.List<KaleoDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 definitionsend
- the upper bound of the range of kaleo definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> 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 KaleoDefinitionModelImpl
. 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 definitionsend
- the upper bound of the range of kaleo 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 java.util.Set<java.lang.String> getBadColumnNames()
public static KaleoDefinitionPersistence getPersistence()