@ProviderType public interface KaleoConditionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<KaleoCondition>
Caching information and settings can be found in portal.properties
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoConditionPersistenceImpl
,
KaleoConditionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(KaleoCondition kaleoCondition)
Caches the kaleo condition in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<KaleoCondition> kaleoConditions)
Caches the kaleo conditions in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of kaleo conditions.
|
int |
countByCompanyId(long companyId)
Returns the number of kaleo conditions where companyId = ?.
|
int |
countByKaleoDefinitionId(long kaleoDefinitionId)
Returns the number of kaleo conditions where kaleoDefinitionId = ?.
|
int |
countByKaleoNodeId(long kaleoNodeId)
Returns the number of kaleo conditions where kaleoNodeId = ?.
|
KaleoCondition |
create(long kaleoConditionId)
Creates a new kaleo condition with the primary key.
|
KaleoCondition |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the first kaleo condition in the ordered set where companyId = ?.
|
KaleoCondition |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the last kaleo condition in the ordered set where companyId = ?.
|
KaleoCondition |
fetchByKaleoDefinitionId_First(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the first kaleo condition in the ordered set where kaleoDefinitionId = ?.
|
KaleoCondition |
fetchByKaleoDefinitionId_Last(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the last kaleo condition in the ordered set where kaleoDefinitionId = ?.
|
KaleoCondition |
fetchByKaleoNodeId(long kaleoNodeId)
Returns the kaleo condition where kaleoNodeId = ? or returns
null if it could not be found. |
KaleoCondition |
fetchByKaleoNodeId(long kaleoNodeId,
boolean retrieveFromCache)
Returns the kaleo condition where kaleoNodeId = ? or returns
null if it could not be found, optionally using the finder cache. |
KaleoCondition |
fetchByPrimaryKey(long kaleoConditionId)
Returns the kaleo condition with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,KaleoCondition> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<KaleoCondition> |
findAll()
Returns all the kaleo conditions.
|
java.util.List<KaleoCondition> |
findAll(int start,
int end)
Returns a range of all the kaleo conditions.
|
java.util.List<KaleoCondition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns an ordered range of all the kaleo conditions.
|
java.util.List<KaleoCondition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo conditions.
|
KaleoCondition |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the first kaleo condition in the ordered set where companyId = ?.
|
KaleoCondition |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the last kaleo condition in the ordered set where companyId = ?.
|
KaleoCondition[] |
findByCompanyId_PrevAndNext(long kaleoConditionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the kaleo conditions before and after the current kaleo condition in the ordered set where companyId = ?.
|
java.util.List<KaleoCondition> |
findByCompanyId(long companyId)
Returns all the kaleo conditions where companyId = ?.
|
java.util.List<KaleoCondition> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the kaleo conditions where companyId = ?.
|
java.util.List<KaleoCondition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns an ordered range of all the kaleo conditions where companyId = ?.
|
java.util.List<KaleoCondition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo conditions where companyId = ?.
|
KaleoCondition |
findByKaleoDefinitionId_First(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the first kaleo condition in the ordered set where kaleoDefinitionId = ?.
|
KaleoCondition |
findByKaleoDefinitionId_Last(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the last kaleo condition in the ordered set where kaleoDefinitionId = ?.
|
KaleoCondition[] |
findByKaleoDefinitionId_PrevAndNext(long kaleoConditionId,
long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns the kaleo conditions before and after the current kaleo condition in the ordered set where kaleoDefinitionId = ?.
|
java.util.List<KaleoCondition> |
findByKaleoDefinitionId(long kaleoDefinitionId)
Returns all the kaleo conditions where kaleoDefinitionId = ?.
|
java.util.List<KaleoCondition> |
findByKaleoDefinitionId(long kaleoDefinitionId,
int start,
int end)
Returns a range of all the kaleo conditions where kaleoDefinitionId = ?.
|
java.util.List<KaleoCondition> |
findByKaleoDefinitionId(long kaleoDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
Returns an ordered range of all the kaleo conditions where kaleoDefinitionId = ?.
|
java.util.List<KaleoCondition> |
findByKaleoDefinitionId(long kaleoDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo conditions where kaleoDefinitionId = ?.
|
KaleoCondition |
findByKaleoNodeId(long kaleoNodeId)
Returns the kaleo condition where kaleoNodeId = ? or throws a
NoSuchConditionException if it could not be found. |
KaleoCondition |
findByPrimaryKey(long kaleoConditionId)
Returns the kaleo condition with the primary key or throws a
NoSuchConditionException if it could not be found. |
KaleoCondition |
remove(long kaleoConditionId)
Removes the kaleo condition with the primary key from the database.
|
void |
removeAll()
Removes all the kaleo conditions from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the kaleo conditions where companyId = ? from the database.
|
void |
removeByKaleoDefinitionId(long kaleoDefinitionId)
Removes all the kaleo conditions where kaleoDefinitionId = ? from the database.
|
KaleoCondition |
removeByKaleoNodeId(long kaleoNodeId)
Removes the kaleo condition where kaleoNodeId = ? from the database.
|
KaleoCondition |
updateImpl(KaleoCondition kaleoCondition) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<KaleoCondition> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<KaleoCondition> 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 KaleoConditionModelImpl
. 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 conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)java.util.List<KaleoCondition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> 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 KaleoConditionModelImpl
. 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 conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<KaleoCondition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> 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 KaleoConditionModelImpl
. 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 conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheKaleoCondition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchConditionException
- if a matching kaleo condition could not be foundKaleoCondition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo condition could not be foundKaleoCondition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchConditionException
- if a matching kaleo condition could not be foundKaleoCondition fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo condition could not be foundKaleoCondition[] findByCompanyId_PrevAndNext(long kaleoConditionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException
kaleoConditionId
- the primary key of the current kaleo conditioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchConditionException
- if a kaleo condition with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDjava.util.List<KaleoCondition> findByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDjava.util.List<KaleoCondition> findByKaleoDefinitionId(long kaleoDefinitionId, 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 KaleoConditionModelImpl
. 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.
kaleoDefinitionId
- the kaleo definition IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)java.util.List<KaleoCondition> findByKaleoDefinitionId(long kaleoDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> 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 KaleoConditionModelImpl
. 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.
kaleoDefinitionId
- the kaleo definition IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<KaleoCondition> findByKaleoDefinitionId(long kaleoDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> 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 KaleoConditionModelImpl
. 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.
kaleoDefinitionId
- the kaleo definition IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheKaleoCondition findByKaleoDefinitionId_First(long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException
kaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchConditionException
- if a matching kaleo condition could not be foundKaleoCondition fetchByKaleoDefinitionId_First(long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
kaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo condition could not be foundKaleoCondition findByKaleoDefinitionId_Last(long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException
kaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchConditionException
- if a matching kaleo condition could not be foundKaleoCondition fetchByKaleoDefinitionId_Last(long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator)
kaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo condition could not be foundKaleoCondition[] findByKaleoDefinitionId_PrevAndNext(long kaleoConditionId, long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException
kaleoConditionId
- the primary key of the current kaleo conditionkaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchConditionException
- if a kaleo condition with the primary key could not be foundvoid removeByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDint countByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDKaleoCondition findByKaleoNodeId(long kaleoNodeId) throws NoSuchConditionException
NoSuchConditionException
if it could not be found.kaleoNodeId
- the kaleo node IDNoSuchConditionException
- if a matching kaleo condition could not be foundKaleoCondition fetchByKaleoNodeId(long kaleoNodeId)
null
if it could not be found. Uses the finder cache.kaleoNodeId
- the kaleo node IDnull
if a matching kaleo condition could not be foundKaleoCondition fetchByKaleoNodeId(long kaleoNodeId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.kaleoNodeId
- the kaleo node IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching kaleo condition could not be foundKaleoCondition removeByKaleoNodeId(long kaleoNodeId) throws NoSuchConditionException
kaleoNodeId
- the kaleo node IDNoSuchConditionException
int countByKaleoNodeId(long kaleoNodeId)
kaleoNodeId
- the kaleo node IDvoid cacheResult(KaleoCondition kaleoCondition)
kaleoCondition
- the kaleo conditionvoid cacheResult(java.util.List<KaleoCondition> kaleoConditions)
kaleoConditions
- the kaleo conditionsKaleoCondition create(long kaleoConditionId)
kaleoConditionId
- the primary key for the new kaleo conditionKaleoCondition remove(long kaleoConditionId) throws NoSuchConditionException
kaleoConditionId
- the primary key of the kaleo conditionNoSuchConditionException
- if a kaleo condition with the primary key could not be foundKaleoCondition updateImpl(KaleoCondition kaleoCondition)
KaleoCondition findByPrimaryKey(long kaleoConditionId) throws NoSuchConditionException
NoSuchConditionException
if it could not be found.kaleoConditionId
- the primary key of the kaleo conditionNoSuchConditionException
- if a kaleo condition with the primary key could not be foundKaleoCondition fetchByPrimaryKey(long kaleoConditionId)
null
if it could not be found.kaleoConditionId
- the primary key of the kaleo conditionnull
if a kaleo condition with the primary key could not be foundjava.util.Map<java.io.Serializable,KaleoCondition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<KaleoCondition>
java.util.List<KaleoCondition> findAll()
java.util.List<KaleoCondition> 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 KaleoConditionModelImpl
. 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 conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)java.util.List<KaleoCondition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> 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 KaleoConditionModelImpl
. 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 conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<KaleoCondition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> 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 KaleoConditionModelImpl
. 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 conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()