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