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
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 |
countByC_S_A(long companyId,
java.lang.String scope,
boolean active)
Returns the number of kaleo definitions where companyId = ? and scope = ? and active = ?.
|
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(long companyId,
java.lang.String name,
boolean active)
Returns the kaleo definition where companyId = ? and name = ? and active = ? or returns
null if it could not be found. |
static KaleoDefinition |
fetchByC_N_A(long companyId,
java.lang.String name,
boolean active,
boolean useFinderCache)
Returns the kaleo definition where companyId = ? and name = ? and active = ? or returns
null if it could not be found, optionally using the finder cache. |
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 useFinderCache)
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 |
fetchByC_N(long companyId,
java.lang.String name)
Returns the kaleo definition where companyId = ? and name = ? or returns
null if it could not be found. |
static KaleoDefinition |
fetchByC_N(long companyId,
java.lang.String name,
boolean useFinderCache)
Returns the kaleo definition where companyId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static KaleoDefinition |
fetchByC_S_A_First(long companyId,
java.lang.String scope,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ? and scope = ? and active = ?.
|
static KaleoDefinition |
fetchByC_S_A_Last(long companyId,
java.lang.String scope,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ? and scope = ? and active = ?.
|
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 useFinderCache)
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 useFinderCache)
Returns an ordered range of all the kaleo definitions where companyId = ? and active = ?.
|
static KaleoDefinition |
findByC_N_A(long companyId,
java.lang.String name,
boolean active)
Returns the kaleo definition where companyId = ? and name = ? and active = ? or throws a
NoSuchDefinitionException if it could not be found. |
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 KaleoDefinition |
findByC_N(long companyId,
java.lang.String name)
Returns the kaleo definition where companyId = ? and name = ? or throws a
NoSuchDefinitionException if it could not be found. |
static KaleoDefinition |
findByC_S_A_First(long companyId,
java.lang.String scope,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the first kaleo definition in the ordered set where companyId = ? and scope = ? and active = ?.
|
static KaleoDefinition |
findByC_S_A_Last(long companyId,
java.lang.String scope,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
Returns the last kaleo definition in the ordered set where companyId = ? and scope = ? and active = ?.
|
static KaleoDefinition[] |
findByC_S_A_PrevAndNext(long kaleoDefinitionId,
long companyId,
java.lang.String scope,
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 scope = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_S_A(long companyId,
java.lang.String scope,
boolean active)
Returns all the kaleo definitions where companyId = ? and scope = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_S_A(long companyId,
java.lang.String scope,
boolean active,
int start,
int end)
Returns a range of all the kaleo definitions where companyId = ? and scope = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_S_A(long companyId,
java.lang.String scope,
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 scope = ? and active = ?.
|
static java.util.List<KaleoDefinition> |
findByC_S_A(long companyId,
java.lang.String scope,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo definitions where companyId = ? and scope = ? and active = ?.
|
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 useFinderCache)
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 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 KaleoDefinition |
removeByC_N_A(long companyId,
java.lang.String name,
boolean active)
Removes the kaleo definition 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 KaleoDefinition |
removeByC_N(long companyId,
java.lang.String name)
Removes the kaleo definition where companyId = ? and name = ? from the database.
|
static void |
removeByC_S_A(long companyId,
java.lang.String scope,
boolean active)
Removes all the kaleo definitions where companyId = ? and scope = ? and active = ? 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.Map<java.io.Serializable,KaleoDefinition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
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, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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
)useFinderCache
- whether to use 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 KaleoDefinition findByC_N(long companyId, java.lang.String name) throws NoSuchDefinitionException
NoSuchDefinitionException
if it could not be found.companyId
- the company IDname
- the nameNoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N(long companyId, java.lang.String name)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the namenull
if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N(long companyId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching kaleo definition could not be foundpublic static KaleoDefinition removeByC_N(long companyId, java.lang.String name) throws NoSuchDefinitionException
companyId
- the company IDname
- the nameNoSuchDefinitionException
public 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, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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
)useFinderCache
- whether to use 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 useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameversion
- the versionuseFinderCache
- whether to use 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 KaleoDefinition findByC_N_A(long companyId, java.lang.String name, boolean active) throws NoSuchDefinitionException
NoSuchDefinitionException
if it could not be found.companyId
- the company IDname
- the nameactive
- the activeNoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N_A(long companyId, java.lang.String name, boolean active)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the nameactive
- the activenull
if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_N_A(long companyId, java.lang.String name, boolean active, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameactive
- the activeuseFinderCache
- whether to use the finder cachenull
if a matching kaleo definition could not be foundpublic static KaleoDefinition removeByC_N_A(long companyId, java.lang.String name, boolean active) throws NoSuchDefinitionException
companyId
- the company IDname
- the nameactive
- the activeNoSuchDefinitionException
public static int countByC_N_A(long companyId, java.lang.String name, boolean active)
companyId
- the company IDname
- the nameactive
- the activepublic static java.util.List<KaleoDefinition> findByC_S_A(long companyId, java.lang.String scope, boolean active)
companyId
- the company IDscope
- the scopeactive
- the activepublic static java.util.List<KaleoDefinition> findByC_S_A(long companyId, java.lang.String scope, 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, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
companyId
- the company IDscope
- the scopeactive
- 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_S_A(long companyId, java.lang.String scope, 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, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
companyId
- the company IDscope
- the scopeactive
- 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_S_A(long companyId, java.lang.String scope, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
companyId
- the company IDscope
- the scopeactive
- 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
)useFinderCache
- whether to use the finder cachepublic static KaleoDefinition findByC_S_A_First(long companyId, java.lang.String scope, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDscope
- the scopeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_S_A_First(long companyId, java.lang.String scope, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDscope
- the scopeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition findByC_S_A_Last(long companyId, java.lang.String scope, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
companyId
- the company IDscope
- the scopeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionException
- if a matching kaleo definition could not be foundpublic static KaleoDefinition fetchByC_S_A_Last(long companyId, java.lang.String scope, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
companyId
- the company IDscope
- the scopeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition could not be foundpublic static KaleoDefinition[] findByC_S_A_PrevAndNext(long kaleoDefinitionId, long companyId, java.lang.String scope, boolean active, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator) throws NoSuchDefinitionException
kaleoDefinitionId
- the primary key of the current kaleo definitioncompanyId
- the company IDscope
- the scopeactive
- 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_S_A(long companyId, java.lang.String scope, boolean active)
companyId
- the company IDscope
- the scopeactive
- the activepublic static int countByC_S_A(long companyId, java.lang.String scope, boolean active)
companyId
- the company IDscope
- the scopeactive
- 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.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, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KaleoDefinitionModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static KaleoDefinitionPersistence getPersistence()