public class ReadingTimeEntryUtil
extends java.lang.Object
com.liferay.reading.time.service.persistence.impl.ReadingTimeEntryPersistenceImpl
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
ReadingTimeEntryPersistence
Constructor and Description |
---|
ReadingTimeEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ReadingTimeEntry> readingTimeEntries)
Caches the reading time entries in the entity cache if it is enabled.
|
static void |
cacheResult(ReadingTimeEntry readingTimeEntry)
Caches the reading time entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ReadingTimeEntry readingTimeEntry) |
static int |
countAll()
Returns the number of reading time entries.
|
static int |
countByG_C_C(long groupId,
long classNameId,
long classPK)
Returns the number of reading time entries where groupId = ? and classNameId = ? and classPK = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of reading time entries where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of reading time entries where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of reading time entries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ReadingTimeEntry |
create(long readingTimeEntryId)
Creates a new reading time entry with the primary key.
|
static ReadingTimeEntry |
fetchByG_C_C(long groupId,
long classNameId,
long classPK)
Returns the reading time entry where groupId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found. |
static ReadingTimeEntry |
fetchByG_C_C(long groupId,
long classNameId,
long classPK,
boolean useFinderCache)
Returns the reading time entry where groupId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static ReadingTimeEntry |
fetchByPrimaryKey(long readingTimeEntryId)
Returns the reading time entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ReadingTimeEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ReadingTimeEntry |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the first reading time entry in the ordered set where uuid = ? and companyId = ?.
|
static ReadingTimeEntry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the last reading time entry in the ordered set where uuid = ? and companyId = ?.
|
static ReadingTimeEntry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the first reading time entry in the ordered set where uuid = ?.
|
static ReadingTimeEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the reading time entry where uuid = ? and groupId = ? or returns
null if it could not be found. |
static ReadingTimeEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the reading time entry where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static ReadingTimeEntry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the last reading time entry in the ordered set where uuid = ?.
|
static java.util.List<ReadingTimeEntry> |
findAll()
Returns all the reading time entries.
|
static java.util.List<ReadingTimeEntry> |
findAll(int start,
int end)
Returns a range of all the reading time entries.
|
static java.util.List<ReadingTimeEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns an ordered range of all the reading time entries.
|
static java.util.List<ReadingTimeEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the reading time entries.
|
static ReadingTimeEntry |
findByG_C_C(long groupId,
long classNameId,
long classPK)
Returns the reading time entry where groupId = ? and classNameId = ? and classPK = ? or throws a
NoSuchEntryException if it could not be found. |
static ReadingTimeEntry |
findByPrimaryKey(long readingTimeEntryId)
Returns the reading time entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
static ReadingTimeEntry |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the first reading time entry in the ordered set where uuid = ? and companyId = ?.
|
static ReadingTimeEntry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the last reading time entry in the ordered set where uuid = ? and companyId = ?.
|
static ReadingTimeEntry[] |
findByUuid_C_PrevAndNext(long readingTimeEntryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the reading time entries before and after the current reading time entry in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ReadingTimeEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the reading time entries where uuid = ? and companyId = ?.
|
static java.util.List<ReadingTimeEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the reading time entries where uuid = ? and companyId = ?.
|
static java.util.List<ReadingTimeEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns an ordered range of all the reading time entries where uuid = ? and companyId = ?.
|
static java.util.List<ReadingTimeEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the reading time entries where uuid = ? and companyId = ?.
|
static ReadingTimeEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the first reading time entry in the ordered set where uuid = ?.
|
static ReadingTimeEntry |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the reading time entry where uuid = ? and groupId = ? or throws a
NoSuchEntryException if it could not be found. |
static ReadingTimeEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the last reading time entry in the ordered set where uuid = ?.
|
static ReadingTimeEntry[] |
findByUuid_PrevAndNext(long readingTimeEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns the reading time entries before and after the current reading time entry in the ordered set where uuid = ?.
|
static java.util.List<ReadingTimeEntry> |
findByUuid(java.lang.String uuid)
Returns all the reading time entries where uuid = ?.
|
static java.util.List<ReadingTimeEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the reading time entries where uuid = ?.
|
static java.util.List<ReadingTimeEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
Returns an ordered range of all the reading time entries where uuid = ?.
|
static java.util.List<ReadingTimeEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the reading time entries where uuid = ?.
|
static java.util.List<ReadingTimeEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ReadingTimeEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ReadingTimeEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) |
static ReadingTimeEntryPersistence |
getPersistence() |
static ReadingTimeEntry |
remove(long readingTimeEntryId)
Removes the reading time entry with the primary key from the database.
|
static void |
removeAll()
Removes all the reading time entries from the database.
|
static ReadingTimeEntry |
removeByG_C_C(long groupId,
long classNameId,
long classPK)
Removes the reading time entry where groupId = ? and classNameId = ? and classPK = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the reading time entries where uuid = ? and companyId = ? from the database.
|
static ReadingTimeEntry |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the reading time entry where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the reading time entries where uuid = ? from the database.
|
static ReadingTimeEntry |
update(ReadingTimeEntry readingTimeEntry) |
static ReadingTimeEntry |
update(ReadingTimeEntry readingTimeEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ReadingTimeEntry |
updateImpl(ReadingTimeEntry readingTimeEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ReadingTimeEntry readingTimeEntry)
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,ReadingTimeEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ReadingTimeEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ReadingTimeEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ReadingTimeEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ReadingTimeEntry update(ReadingTimeEntry readingTimeEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ReadingTimeEntry update(ReadingTimeEntry readingTimeEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ReadingTimeEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ReadingTimeEntry> findByUuid(java.lang.String uuid, 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 ReadingTimeEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time entries (not inclusive)public static java.util.List<ReadingTimeEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> 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 ReadingTimeEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ReadingTimeEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> 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 ReadingTimeEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ReadingTimeEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching reading time entry could not be foundpublic static ReadingTimeEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching reading time entry could not be foundpublic static ReadingTimeEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching reading time entry could not be foundpublic static ReadingTimeEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching reading time entry could not be foundpublic static ReadingTimeEntry[] findByUuid_PrevAndNext(long readingTimeEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) throws NoSuchEntryException
readingTimeEntryId
- the primary key of the current reading time entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a reading time entry with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static ReadingTimeEntry findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchEntryException
- if a matching reading time entry could not be foundpublic static ReadingTimeEntry fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching reading time entry could not be foundpublic static ReadingTimeEntry fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching reading time entry could not be foundpublic static ReadingTimeEntry removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchEntryException
uuid
- the uuidgroupId
- the group IDNoSuchEntryException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<ReadingTimeEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ReadingTimeEntry> findByUuid_C(java.lang.String uuid, 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 ReadingTimeEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time entries (not inclusive)public static java.util.List<ReadingTimeEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> 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 ReadingTimeEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ReadingTimeEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> 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 ReadingTimeEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ReadingTimeEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching reading time entry could not be foundpublic static ReadingTimeEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching reading time entry could not be foundpublic static ReadingTimeEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching reading time entry could not be foundpublic static ReadingTimeEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching reading time entry could not be foundpublic static ReadingTimeEntry[] findByUuid_C_PrevAndNext(long readingTimeEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) throws NoSuchEntryException
readingTimeEntryId
- the primary key of the current reading time entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a reading time entry with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static ReadingTimeEntry findByG_C_C(long groupId, long classNameId, long classPK) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
- if a matching reading time entry could not be foundpublic static ReadingTimeEntry fetchByG_C_C(long groupId, long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pknull
if a matching reading time entry could not be foundpublic static ReadingTimeEntry fetchByG_C_C(long groupId, long classNameId, long classPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cachenull
if a matching reading time entry could not be foundpublic static ReadingTimeEntry removeByG_C_C(long groupId, long classNameId, long classPK) throws NoSuchEntryException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
public static int countByG_C_C(long groupId, long classNameId, long classPK)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkpublic static void cacheResult(ReadingTimeEntry readingTimeEntry)
readingTimeEntry
- the reading time entrypublic static void cacheResult(java.util.List<ReadingTimeEntry> readingTimeEntries)
readingTimeEntries
- the reading time entriespublic static ReadingTimeEntry create(long readingTimeEntryId)
readingTimeEntryId
- the primary key for the new reading time entrypublic static ReadingTimeEntry remove(long readingTimeEntryId) throws NoSuchEntryException
readingTimeEntryId
- the primary key of the reading time entryNoSuchEntryException
- if a reading time entry with the primary key could not be foundpublic static ReadingTimeEntry updateImpl(ReadingTimeEntry readingTimeEntry)
public static ReadingTimeEntry findByPrimaryKey(long readingTimeEntryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.readingTimeEntryId
- the primary key of the reading time entryNoSuchEntryException
- if a reading time entry with the primary key could not be foundpublic static ReadingTimeEntry fetchByPrimaryKey(long readingTimeEntryId)
null
if it could not be found.readingTimeEntryId
- the primary key of the reading time entrynull
if a reading time entry with the primary key could not be foundpublic static java.util.List<ReadingTimeEntry> findAll()
public static java.util.List<ReadingTimeEntry> 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 ReadingTimeEntryModelImpl
.
start
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time entries (not inclusive)public static java.util.List<ReadingTimeEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> 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 ReadingTimeEntryModelImpl
.
start
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ReadingTimeEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> 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 ReadingTimeEntryModelImpl
.
start
- the lower bound of the range of reading time entriesend
- the upper bound of the range of reading time 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 ReadingTimeEntryPersistence getPersistence()