@ProviderType public interface KaleoDefinitionVersionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<KaleoDefinitionVersion>
Caching information and settings can be found in portal.properties
KaleoDefinitionVersionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(KaleoDefinitionVersion kaleoDefinitionVersion)
Caches the kaleo definition version in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<KaleoDefinitionVersion> kaleoDefinitionVersions)
Caches the kaleo definition versions in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of kaleo definition versions.
|
int |
countByC_N_V(long companyId,
java.lang.String name,
java.lang.String version)
Returns the number of kaleo definition versions where companyId = ? and name = ? and version = ?.
|
int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of kaleo definition versions where companyId = ? and name = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of kaleo definition versions where companyId = ?.
|
KaleoDefinitionVersion |
create(long kaleoDefinitionVersionId)
Creates a new kaleo definition version with the primary key.
|
KaleoDefinitionVersion |
fetchByC_N_First(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the first kaleo definition version in the ordered set where companyId = ? and name = ?.
|
KaleoDefinitionVersion |
fetchByC_N_Last(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the last kaleo definition version in the ordered set where companyId = ? and name = ?.
|
KaleoDefinitionVersion |
fetchByC_N_V(long companyId,
java.lang.String name,
java.lang.String version)
Returns the kaleo definition version where companyId = ? and name = ? and version = ? or returns
null if it could not be found. |
KaleoDefinitionVersion |
fetchByC_N_V(long companyId,
java.lang.String name,
java.lang.String version,
boolean useFinderCache)
Returns the kaleo definition version where companyId = ? and name = ? and version = ? or returns
null if it could not be found, optionally using the finder cache. |
KaleoDefinitionVersion |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the first kaleo definition version in the ordered set where companyId = ?.
|
KaleoDefinitionVersion |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the last kaleo definition version in the ordered set where companyId = ?.
|
KaleoDefinitionVersion |
fetchByPrimaryKey(long kaleoDefinitionVersionId)
Returns the kaleo definition version with the primary key or returns
null if it could not be found. |
java.util.List<KaleoDefinitionVersion> |
findAll()
Returns all the kaleo definition versions.
|
java.util.List<KaleoDefinitionVersion> |
findAll(int start,
int end)
Returns a range of all the kaleo definition versions.
|
java.util.List<KaleoDefinitionVersion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns an ordered range of all the kaleo definition versions.
|
java.util.List<KaleoDefinitionVersion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo definition versions.
|
KaleoDefinitionVersion |
findByC_N_First(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the first kaleo definition version in the ordered set where companyId = ? and name = ?.
|
KaleoDefinitionVersion |
findByC_N_Last(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the last kaleo definition version in the ordered set where companyId = ? and name = ?.
|
KaleoDefinitionVersion[] |
findByC_N_PrevAndNext(long kaleoDefinitionVersionId,
long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the kaleo definition versions before and after the current kaleo definition version in the ordered set where companyId = ? and name = ?.
|
KaleoDefinitionVersion |
findByC_N_V(long companyId,
java.lang.String name,
java.lang.String version)
Returns the kaleo definition version where companyId = ? and name = ? and version = ? or throws a
NoSuchDefinitionVersionException if it could not be found. |
java.util.List<KaleoDefinitionVersion> |
findByC_N(long companyId,
java.lang.String name)
Returns all the kaleo definition versions where companyId = ? and name = ?.
|
java.util.List<KaleoDefinitionVersion> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end)
Returns a range of all the kaleo definition versions where companyId = ? and name = ?.
|
java.util.List<KaleoDefinitionVersion> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns an ordered range of all the kaleo definition versions where companyId = ? and name = ?.
|
java.util.List<KaleoDefinitionVersion> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo definition versions where companyId = ? and name = ?.
|
KaleoDefinitionVersion |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the first kaleo definition version in the ordered set where companyId = ?.
|
KaleoDefinitionVersion |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the last kaleo definition version in the ordered set where companyId = ?.
|
KaleoDefinitionVersion[] |
findByCompanyId_PrevAndNext(long kaleoDefinitionVersionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns the kaleo definition versions before and after the current kaleo definition version in the ordered set where companyId = ?.
|
java.util.List<KaleoDefinitionVersion> |
findByCompanyId(long companyId)
Returns all the kaleo definition versions where companyId = ?.
|
java.util.List<KaleoDefinitionVersion> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the kaleo definition versions where companyId = ?.
|
java.util.List<KaleoDefinitionVersion> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
Returns an ordered range of all the kaleo definition versions where companyId = ?.
|
java.util.List<KaleoDefinitionVersion> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo definition versions where companyId = ?.
|
KaleoDefinitionVersion |
findByPrimaryKey(long kaleoDefinitionVersionId)
Returns the kaleo definition version with the primary key or throws a
NoSuchDefinitionVersionException if it could not be found. |
KaleoDefinitionVersion |
remove(long kaleoDefinitionVersionId)
Removes the kaleo definition version with the primary key from the database.
|
void |
removeAll()
Removes all the kaleo definition versions from the database.
|
KaleoDefinitionVersion |
removeByC_N_V(long companyId,
java.lang.String name,
java.lang.String version)
Removes the kaleo definition version where companyId = ? and name = ? and version = ? from the database.
|
void |
removeByC_N(long companyId,
java.lang.String name)
Removes all the kaleo definition versions where companyId = ? and name = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the kaleo definition versions where companyId = ? from the database.
|
KaleoDefinitionVersion |
updateImpl(KaleoDefinitionVersion kaleoDefinitionVersion) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<KaleoDefinitionVersion> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<KaleoDefinitionVersion> 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 KaleoDefinitionVersionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)java.util.List<KaleoDefinitionVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> 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 KaleoDefinitionVersionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<KaleoDefinitionVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> 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 KaleoDefinitionVersionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheKaleoDefinitionVersion findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundKaleoDefinitionVersion fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition version could not be foundKaleoDefinitionVersion findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundKaleoDefinitionVersion fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition version could not be foundKaleoDefinitionVersion[] findByCompanyId_PrevAndNext(long kaleoDefinitionVersionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
kaleoDefinitionVersionId
- the primary key of the current kaleo definition versioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionVersionException
- if a kaleo definition version with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDjava.util.List<KaleoDefinitionVersion> findByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namejava.util.List<KaleoDefinitionVersion> 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, then the query will include the default ORDER BY logic from KaleoDefinitionVersionModelImpl
.
companyId
- the company IDname
- the namestart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)java.util.List<KaleoDefinitionVersion> findByC_N(long companyId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> 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 KaleoDefinitionVersionModelImpl
.
companyId
- the company IDname
- the namestart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<KaleoDefinitionVersion> findByC_N(long companyId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> 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 KaleoDefinitionVersionModelImpl
.
companyId
- the company IDname
- the namestart
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheKaleoDefinitionVersion findByC_N_First(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundKaleoDefinitionVersion fetchByC_N_First(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition version could not be foundKaleoDefinitionVersion findByC_N_Last(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundKaleoDefinitionVersion fetchByC_N_Last(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo definition version could not be foundKaleoDefinitionVersion[] findByC_N_PrevAndNext(long kaleoDefinitionVersionId, long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
kaleoDefinitionVersionId
- the primary key of the current kaleo definition versioncompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDefinitionVersionException
- if a kaleo definition version with the primary key could not be foundvoid removeByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the nameint countByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the nameKaleoDefinitionVersion findByC_N_V(long companyId, java.lang.String name, java.lang.String version) throws NoSuchDefinitionVersionException
NoSuchDefinitionVersionException
if it could not be found.companyId
- the company IDname
- the nameversion
- the versionNoSuchDefinitionVersionException
- if a matching kaleo definition version could not be foundKaleoDefinitionVersion fetchByC_N_V(long companyId, java.lang.String name, java.lang.String 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 version could not be foundKaleoDefinitionVersion fetchByC_N_V(long companyId, java.lang.String name, java.lang.String 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 version could not be foundKaleoDefinitionVersion removeByC_N_V(long companyId, java.lang.String name, java.lang.String version) throws NoSuchDefinitionVersionException
companyId
- the company IDname
- the nameversion
- the versionNoSuchDefinitionVersionException
int countByC_N_V(long companyId, java.lang.String name, java.lang.String version)
companyId
- the company IDname
- the nameversion
- the versionvoid cacheResult(KaleoDefinitionVersion kaleoDefinitionVersion)
kaleoDefinitionVersion
- the kaleo definition versionvoid cacheResult(java.util.List<KaleoDefinitionVersion> kaleoDefinitionVersions)
kaleoDefinitionVersions
- the kaleo definition versionsKaleoDefinitionVersion create(long kaleoDefinitionVersionId)
kaleoDefinitionVersionId
- the primary key for the new kaleo definition versionKaleoDefinitionVersion remove(long kaleoDefinitionVersionId) throws NoSuchDefinitionVersionException
kaleoDefinitionVersionId
- the primary key of the kaleo definition versionNoSuchDefinitionVersionException
- if a kaleo definition version with the primary key could not be foundKaleoDefinitionVersion updateImpl(KaleoDefinitionVersion kaleoDefinitionVersion)
KaleoDefinitionVersion findByPrimaryKey(long kaleoDefinitionVersionId) throws NoSuchDefinitionVersionException
NoSuchDefinitionVersionException
if it could not be found.kaleoDefinitionVersionId
- the primary key of the kaleo definition versionNoSuchDefinitionVersionException
- if a kaleo definition version with the primary key could not be foundKaleoDefinitionVersion fetchByPrimaryKey(long kaleoDefinitionVersionId)
null
if it could not be found.kaleoDefinitionVersionId
- the primary key of the kaleo definition versionnull
if a kaleo definition version with the primary key could not be foundjava.util.List<KaleoDefinitionVersion> findAll()
java.util.List<KaleoDefinitionVersion> 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 KaleoDefinitionVersionModelImpl
.
start
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)java.util.List<KaleoDefinitionVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> 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 KaleoDefinitionVersionModelImpl
.
start
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<KaleoDefinitionVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> 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 KaleoDefinitionVersionModelImpl
.
start
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()