public class CTEntryUtil
extends java.lang.Object
com.liferay.change.tracking.service.persistence.impl.CTEntryPersistenceImpl
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
CTEntryPersistence
Constructor and Description |
---|
CTEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CTEntry ctEntry)
Caches the ct entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTEntry> ctEntries)
Caches the ct entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CTEntry ctEntry) |
static int |
countAll()
Returns the number of ct entries.
|
static int |
countByC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK)
Returns the number of ct entries where ctCollectionId = ? and modelClassNameId = ? and modelClassPK = ?.
|
static int |
countByC_MCNI(long ctCollectionId,
long modelClassNameId)
Returns the number of ct entries where ctCollectionId = ? and modelClassNameId = ?.
|
static int |
countByCTCollectionId(long ctCollectionId)
Returns the number of ct entries where ctCollectionId = ?.
|
static int |
countByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK)
Returns the number of ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static int |
countByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long[] modelClassPKs)
Returns the number of ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = any ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CTEntry |
create(long ctEntryId)
Creates a new ct entry with the primary key.
|
static CTEntry |
fetchByC_MCNI_First(long ctCollectionId,
long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where ctCollectionId = ? and modelClassNameId = ?.
|
static CTEntry |
fetchByC_MCNI_Last(long ctCollectionId,
long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where ctCollectionId = ? and modelClassNameId = ?.
|
static CTEntry |
fetchByC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK)
Returns the ct entry where ctCollectionId = ? and modelClassNameId = ? and modelClassPK = ? or returns
null if it could not be found. |
static CTEntry |
fetchByC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK,
boolean useFinderCache)
Returns the ct entry where ctCollectionId = ? and modelClassNameId = ? and modelClassPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static CTEntry |
fetchByCTCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where ctCollectionId = ?.
|
static CTEntry |
fetchByCTCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where ctCollectionId = ?.
|
static CTEntry |
fetchByNotC_MCNI_MCPK_First(long ctCollectionId,
long modelClassNameId,
long modelClassPK,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static CTEntry |
fetchByNotC_MCNI_MCPK_Last(long ctCollectionId,
long modelClassNameId,
long modelClassPK,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static CTEntry |
fetchByPrimaryKey(long ctEntryId)
Returns the ct entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CTEntry> |
findAll()
Returns all the ct entries.
|
static java.util.List<CTEntry> |
findAll(int start,
int end)
Returns a range of all the ct entries.
|
static java.util.List<CTEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns an ordered range of all the ct entries.
|
static java.util.List<CTEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct entries.
|
static CTEntry |
findByC_MCNI_First(long ctCollectionId,
long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where ctCollectionId = ? and modelClassNameId = ?.
|
static CTEntry |
findByC_MCNI_Last(long ctCollectionId,
long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where ctCollectionId = ? and modelClassNameId = ?.
|
static CTEntry |
findByC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK)
Returns the ct entry where ctCollectionId = ? and modelClassNameId = ? and modelClassPK = ? or throws a
NoSuchEntryException if it could not be found. |
static CTEntry[] |
findByC_MCNI_PrevAndNext(long ctEntryId,
long ctCollectionId,
long modelClassNameId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the ct entries before and after the current ct entry in the ordered set where ctCollectionId = ? and modelClassNameId = ?.
|
static java.util.List<CTEntry> |
findByC_MCNI(long ctCollectionId,
long modelClassNameId)
Returns all the ct entries where ctCollectionId = ? and modelClassNameId = ?.
|
static java.util.List<CTEntry> |
findByC_MCNI(long ctCollectionId,
long modelClassNameId,
int start,
int end)
Returns a range of all the ct entries where ctCollectionId = ? and modelClassNameId = ?.
|
static java.util.List<CTEntry> |
findByC_MCNI(long ctCollectionId,
long modelClassNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns an ordered range of all the ct entries where ctCollectionId = ? and modelClassNameId = ?.
|
static java.util.List<CTEntry> |
findByC_MCNI(long ctCollectionId,
long modelClassNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct entries where ctCollectionId = ? and modelClassNameId = ?.
|
static CTEntry |
findByCTCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where ctCollectionId = ?.
|
static CTEntry |
findByCTCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where ctCollectionId = ?.
|
static CTEntry[] |
findByCTCollectionId_PrevAndNext(long ctEntryId,
long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the ct entries before and after the current ct entry in the ordered set where ctCollectionId = ?.
|
static java.util.List<CTEntry> |
findByCTCollectionId(long ctCollectionId)
Returns all the ct entries where ctCollectionId = ?.
|
static java.util.List<CTEntry> |
findByCTCollectionId(long ctCollectionId,
int start,
int end)
Returns a range of all the ct entries where ctCollectionId = ?.
|
static java.util.List<CTEntry> |
findByCTCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns an ordered range of all the ct entries where ctCollectionId = ?.
|
static java.util.List<CTEntry> |
findByCTCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct entries where ctCollectionId = ?.
|
static CTEntry |
findByNotC_MCNI_MCPK_First(long ctCollectionId,
long modelClassNameId,
long modelClassPK,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the first ct entry in the ordered set where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static CTEntry |
findByNotC_MCNI_MCPK_Last(long ctCollectionId,
long modelClassNameId,
long modelClassPK,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the last ct entry in the ordered set where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static CTEntry[] |
findByNotC_MCNI_MCPK_PrevAndNext(long ctEntryId,
long ctCollectionId,
long modelClassNameId,
long modelClassPK,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns the ct entries before and after the current ct entry in the ordered set where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static java.util.List<CTEntry> |
findByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK)
Returns all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static java.util.List<CTEntry> |
findByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long[] modelClassPKs)
Returns all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = any ?.
|
static java.util.List<CTEntry> |
findByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long[] modelClassPKs,
int start,
int end)
Returns a range of all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = any ?.
|
static java.util.List<CTEntry> |
findByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long[] modelClassPKs,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns an ordered range of all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = any ?.
|
static java.util.List<CTEntry> |
findByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long[] modelClassPKs,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?, optionally using the finder cache.
|
static java.util.List<CTEntry> |
findByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK,
int start,
int end)
Returns a range of all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static java.util.List<CTEntry> |
findByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
Returns an ordered range of all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static java.util.List<CTEntry> |
findByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ?.
|
static CTEntry |
findByPrimaryKey(long ctEntryId)
Returns the ct entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static java.util.List<CTEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) |
static CTEntryPersistence |
getPersistence() |
static CTEntry |
remove(long ctEntryId)
Removes the ct entry with the primary key from the database.
|
static void |
removeAll()
Removes all the ct entries from the database.
|
static CTEntry |
removeByC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK)
Removes the ct entry where ctCollectionId = ? and modelClassNameId = ? and modelClassPK = ? from the database.
|
static void |
removeByC_MCNI(long ctCollectionId,
long modelClassNameId)
Removes all the ct entries where ctCollectionId = ? and modelClassNameId = ? from the database.
|
static void |
removeByCTCollectionId(long ctCollectionId)
Removes all the ct entries where ctCollectionId = ? from the database.
|
static void |
removeByNotC_MCNI_MCPK(long ctCollectionId,
long modelClassNameId,
long modelClassPK)
Removes all the ct entries where ctCollectionId ≠ ? and modelClassNameId = ? and modelClassPK = ? from the database.
|
static CTEntry |
update(CTEntry ctEntry) |
static CTEntry |
update(CTEntry ctEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CTEntry |
updateImpl(CTEntry ctEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTEntry ctEntry)
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,CTEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTEntry update(CTEntry ctEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTEntry update(CTEntry ctEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTEntry> findByCTCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDpublic static java.util.List<CTEntry> findByCTCollectionId(long ctCollectionId, 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)public static java.util.List<CTEntry> findByCTCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTEntry> findByCTCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTEntry findByCTCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByCTCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry could not be foundpublic static CTEntry findByCTCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByCTCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry could not be foundpublic static CTEntry[] findByCTCollectionId_PrevAndNext(long ctEntryId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctEntryId
- the primary key of the current ct entryctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a ct entry with the primary key could not be foundpublic static void removeByCTCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDpublic static int countByCTCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDpublic static java.util.List<CTEntry> findByC_MCNI(long ctCollectionId, long modelClassNameId)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDpublic static java.util.List<CTEntry> findByC_MCNI(long ctCollectionId, long modelClassNameId, 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)public static java.util.List<CTEntry> findByC_MCNI(long ctCollectionId, long modelClassNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTEntry> findByC_MCNI(long ctCollectionId, long modelClassNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTEntry findByC_MCNI_First(long ctCollectionId, long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByC_MCNI_First(long ctCollectionId, long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry could not be foundpublic static CTEntry findByC_MCNI_Last(long ctCollectionId, long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByC_MCNI_Last(long ctCollectionId, long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry could not be foundpublic static CTEntry[] findByC_MCNI_PrevAndNext(long ctEntryId, long ctCollectionId, long modelClassNameId, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctEntryId
- the primary key of the current ct entryctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a ct entry with the primary key could not be foundpublic static void removeByC_MCNI(long ctCollectionId, long modelClassNameId)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDpublic static int countByC_MCNI(long ctCollectionId, long modelClassNameId)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDpublic static CTEntry findByC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkNoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK)
null
if it could not be found. Uses the finder cache.ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pknull
if a matching ct entry could not be foundpublic static CTEntry fetchByC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkuseFinderCache
- whether to use the finder cachenull
if a matching ct entry could not be foundpublic static CTEntry removeByC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK) throws NoSuchEntryException
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkNoSuchEntryException
public static int countByC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkpublic static java.util.List<CTEntry> findByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkpublic static java.util.List<CTEntry> findByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK, 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)public static java.util.List<CTEntry> findByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTEntry> findByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTEntry findByNotC_MCNI_MCPK_First(long ctCollectionId, long modelClassNameId, long modelClassPK, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByNotC_MCNI_MCPK_First(long ctCollectionId, long modelClassNameId, long modelClassPK, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry could not be foundpublic static CTEntry findByNotC_MCNI_MCPK_Last(long ctCollectionId, long modelClassNameId, long modelClassPK, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ct entry could not be foundpublic static CTEntry fetchByNotC_MCNI_MCPK_Last(long ctCollectionId, long modelClassNameId, long modelClassPK, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct entry could not be foundpublic static CTEntry[] findByNotC_MCNI_MCPK_PrevAndNext(long ctEntryId, long ctCollectionId, long modelClassNameId, long modelClassPK, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> orderByComparator) throws NoSuchEntryException
ctEntryId
- the primary key of the current ct entryctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a ct entry with the primary key could not be foundpublic static java.util.List<CTEntry> findByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long[] modelClassPKs)
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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPKs
- the model class pkspublic static java.util.List<CTEntry> findByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long[] modelClassPKs, 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPKs
- the model class pksstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)public static java.util.List<CTEntry> findByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long[] modelClassPKs, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPKs
- the model class pksstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTEntry> findByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long[] modelClassPKs, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkstart
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkpublic static int countByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long modelClassPK)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPK
- the model class pkpublic static int countByNotC_MCNI_MCPK(long ctCollectionId, long modelClassNameId, long[] modelClassPKs)
ctCollectionId
- the ct collection IDmodelClassNameId
- the model class name IDmodelClassPKs
- the model class pkspublic static void cacheResult(CTEntry ctEntry)
ctEntry
- the ct entrypublic static void cacheResult(java.util.List<CTEntry> ctEntries)
ctEntries
- the ct entriespublic static CTEntry create(long ctEntryId)
ctEntryId
- the primary key for the new ct entrypublic static CTEntry remove(long ctEntryId) throws NoSuchEntryException
ctEntryId
- the primary key of the ct entryNoSuchEntryException
- if a ct entry with the primary key could not be foundpublic static CTEntry findByPrimaryKey(long ctEntryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.ctEntryId
- the primary key of the ct entryNoSuchEntryException
- if a ct entry with the primary key could not be foundpublic static CTEntry fetchByPrimaryKey(long ctEntryId)
null
if it could not be found.ctEntryId
- the primary key of the ct entrynull
if a ct entry with the primary key could not be foundpublic static java.util.List<CTEntry> findAll()
public static java.util.List<CTEntry> 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 CTEntryModelImpl
.
start
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)public static java.util.List<CTEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
start
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTEntry> 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 CTEntryModelImpl
.
start
- the lower bound of the range of ct entriesend
- the upper bound of the range of ct entries (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 CTEntryPersistence getPersistence()