public class StatusUtil
extends java.lang.Object
com.liferay.chat.service.persistence.impl.StatusPersistenceImpl
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
StatusPersistence
Constructor and Description |
---|
StatusUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<Status> statuses)
Caches the statuses in the entity cache if it is enabled.
|
static void |
cacheResult(Status status)
Caches the status in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Status status) |
static int |
countAll()
Returns the number of statuses.
|
static int |
countByM_O(long modifiedDate,
boolean online)
Returns the number of statuses where modifiedDate = ? and online = ?.
|
static int |
countByModifiedDate(long modifiedDate)
Returns the number of statuses where modifiedDate = ?.
|
static int |
countByOnline(boolean online)
Returns the number of statuses where online = ?.
|
static int |
countByUserId(long userId)
Returns the number of statuses where userId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static Status |
create(long statusId)
Creates a new status with the primary key.
|
static Status |
fetchByM_O_First(long modifiedDate,
boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where modifiedDate = ? and online = ?.
|
static Status |
fetchByM_O_Last(long modifiedDate,
boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where modifiedDate = ? and online = ?.
|
static Status |
fetchByModifiedDate_First(long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where modifiedDate = ?.
|
static Status |
fetchByModifiedDate_Last(long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where modifiedDate = ?.
|
static Status |
fetchByOnline_First(boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where online = ?.
|
static Status |
fetchByOnline_Last(boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where online = ?.
|
static Status |
fetchByPrimaryKey(long statusId)
Returns the status with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Status> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static Status |
fetchByUserId(long userId)
Returns the status where userId = ? or returns
null if it could not be found. |
static Status |
fetchByUserId(long userId,
boolean useFinderCache)
Returns the status where userId = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<Status> |
findAll()
Returns all the statuses.
|
static java.util.List<Status> |
findAll(int start,
int end)
Returns a range of all the statuses.
|
static java.util.List<Status> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns an ordered range of all the statuses.
|
static java.util.List<Status> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the statuses.
|
static Status |
findByM_O_First(long modifiedDate,
boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where modifiedDate = ? and online = ?.
|
static Status |
findByM_O_Last(long modifiedDate,
boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where modifiedDate = ? and online = ?.
|
static Status[] |
findByM_O_PrevAndNext(long statusId,
long modifiedDate,
boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the statuses before and after the current status in the ordered set where modifiedDate = ? and online = ?.
|
static java.util.List<Status> |
findByM_O(long modifiedDate,
boolean online)
Returns all the statuses where modifiedDate = ? and online = ?.
|
static java.util.List<Status> |
findByM_O(long modifiedDate,
boolean online,
int start,
int end)
Returns a range of all the statuses where modifiedDate = ? and online = ?.
|
static java.util.List<Status> |
findByM_O(long modifiedDate,
boolean online,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns an ordered range of all the statuses where modifiedDate = ? and online = ?.
|
static java.util.List<Status> |
findByM_O(long modifiedDate,
boolean online,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the statuses where modifiedDate = ? and online = ?.
|
static Status |
findByModifiedDate_First(long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where modifiedDate = ?.
|
static Status |
findByModifiedDate_Last(long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where modifiedDate = ?.
|
static Status[] |
findByModifiedDate_PrevAndNext(long statusId,
long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the statuses before and after the current status in the ordered set where modifiedDate = ?.
|
static java.util.List<Status> |
findByModifiedDate(long modifiedDate)
Returns all the statuses where modifiedDate = ?.
|
static java.util.List<Status> |
findByModifiedDate(long modifiedDate,
int start,
int end)
Returns a range of all the statuses where modifiedDate = ?.
|
static java.util.List<Status> |
findByModifiedDate(long modifiedDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns an ordered range of all the statuses where modifiedDate = ?.
|
static java.util.List<Status> |
findByModifiedDate(long modifiedDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the statuses where modifiedDate = ?.
|
static Status |
findByOnline_First(boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where online = ?.
|
static Status |
findByOnline_Last(boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where online = ?.
|
static Status[] |
findByOnline_PrevAndNext(long statusId,
boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the statuses before and after the current status in the ordered set where online = ?.
|
static java.util.List<Status> |
findByOnline(boolean online)
Returns all the statuses where online = ?.
|
static java.util.List<Status> |
findByOnline(boolean online,
int start,
int end)
Returns a range of all the statuses where online = ?.
|
static java.util.List<Status> |
findByOnline(boolean online,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns an ordered range of all the statuses where online = ?.
|
static java.util.List<Status> |
findByOnline(boolean online,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the statuses where online = ?.
|
static Status |
findByPrimaryKey(long statusId)
Returns the status with the primary key or throws a
NoSuchStatusException if it could not be found. |
static Status |
findByUserId(long userId)
Returns the status where userId = ? or throws a
NoSuchStatusException if it could not be found. |
static java.util.List<Status> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<Status> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Status> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static StatusPersistence |
getPersistence() |
static Status |
remove(long statusId)
Removes the status with the primary key from the database.
|
static void |
removeAll()
Removes all the statuses from the database.
|
static void |
removeByM_O(long modifiedDate,
boolean online)
Removes all the statuses where modifiedDate = ? and online = ? from the database.
|
static void |
removeByModifiedDate(long modifiedDate)
Removes all the statuses where modifiedDate = ? from the database.
|
static void |
removeByOnline(boolean online)
Removes all the statuses where online = ? from the database.
|
static Status |
removeByUserId(long userId)
Removes the status where userId = ? from the database.
|
static Status |
update(Status status) |
static Status |
update(Status status,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Status |
updateImpl(Status status) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Status status)
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,Status> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<Status> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<Status> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<Status> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Status update(Status status)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static Status update(Status status, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static Status findByUserId(long userId) throws NoSuchStatusException
NoSuchStatusException
if it could not be found.userId
- the user IDNoSuchStatusException
- if a matching status could not be foundpublic static Status fetchByUserId(long userId)
null
if it could not be found. Uses the finder cache.userId
- the user IDnull
if a matching status could not be foundpublic static Status fetchByUserId(long userId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDuseFinderCache
- whether to use the finder cachenull
if a matching status could not be foundpublic static Status removeByUserId(long userId) throws NoSuchStatusException
userId
- the user IDNoSuchStatusException
public static int countByUserId(long userId)
userId
- the user IDpublic static java.util.List<Status> findByModifiedDate(long modifiedDate)
modifiedDate
- the modified datepublic static java.util.List<Status> findByModifiedDate(long modifiedDate, 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 StatusModelImpl
. 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.
modifiedDate
- the modified datestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)public static java.util.List<Status> findByModifiedDate(long modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> 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 StatusModelImpl
. 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.
modifiedDate
- the modified datestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Status> findByModifiedDate(long modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from StatusModelImpl
. 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.
modifiedDate
- the modified datestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Status findByModifiedDate_First(long modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
modifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a matching status could not be foundpublic static Status fetchByModifiedDate_First(long modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
modifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching status could not be foundpublic static Status findByModifiedDate_Last(long modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
modifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a matching status could not be foundpublic static Status fetchByModifiedDate_Last(long modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
modifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching status could not be foundpublic static Status[] findByModifiedDate_PrevAndNext(long statusId, long modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
statusId
- the primary key of the current statusmodifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a status with the primary key could not be foundpublic static void removeByModifiedDate(long modifiedDate)
modifiedDate
- the modified datepublic static int countByModifiedDate(long modifiedDate)
modifiedDate
- the modified datepublic static java.util.List<Status> findByOnline(boolean online)
online
- the onlinepublic static java.util.List<Status> findByOnline(boolean online, 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 StatusModelImpl
. 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.
online
- the onlinestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)public static java.util.List<Status> findByOnline(boolean online, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> 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 StatusModelImpl
. 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.
online
- the onlinestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Status> findByOnline(boolean online, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from StatusModelImpl
. 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.
online
- the onlinestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Status findByOnline_First(boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
online
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a matching status could not be foundpublic static Status fetchByOnline_First(boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
online
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching status could not be foundpublic static Status findByOnline_Last(boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
online
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a matching status could not be foundpublic static Status fetchByOnline_Last(boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
online
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching status could not be foundpublic static Status[] findByOnline_PrevAndNext(long statusId, boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
statusId
- the primary key of the current statusonline
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a status with the primary key could not be foundpublic static void removeByOnline(boolean online)
online
- the onlinepublic static int countByOnline(boolean online)
online
- the onlinepublic static java.util.List<Status> findByM_O(long modifiedDate, boolean online)
modifiedDate
- the modified dateonline
- the onlinepublic static java.util.List<Status> findByM_O(long modifiedDate, boolean online, 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 StatusModelImpl
. 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.
modifiedDate
- the modified dateonline
- the onlinestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)public static java.util.List<Status> findByM_O(long modifiedDate, boolean online, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> 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 StatusModelImpl
. 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.
modifiedDate
- the modified dateonline
- the onlinestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Status> findByM_O(long modifiedDate, boolean online, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from StatusModelImpl
. 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.
modifiedDate
- the modified dateonline
- the onlinestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Status findByM_O_First(long modifiedDate, boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
modifiedDate
- the modified dateonline
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a matching status could not be foundpublic static Status fetchByM_O_First(long modifiedDate, boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
modifiedDate
- the modified dateonline
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching status could not be foundpublic static Status findByM_O_Last(long modifiedDate, boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
modifiedDate
- the modified dateonline
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a matching status could not be foundpublic static Status fetchByM_O_Last(long modifiedDate, boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
modifiedDate
- the modified dateonline
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching status could not be foundpublic static Status[] findByM_O_PrevAndNext(long statusId, long modifiedDate, boolean online, com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator) throws NoSuchStatusException
statusId
- the primary key of the current statusmodifiedDate
- the modified dateonline
- the onlineorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStatusException
- if a status with the primary key could not be foundpublic static void removeByM_O(long modifiedDate, boolean online)
modifiedDate
- the modified dateonline
- the onlinepublic static int countByM_O(long modifiedDate, boolean online)
modifiedDate
- the modified dateonline
- the onlinepublic static void cacheResult(Status status)
status
- the statuspublic static void cacheResult(java.util.List<Status> statuses)
statuses
- the statusespublic static Status create(long statusId)
statusId
- the primary key for the new statuspublic static Status remove(long statusId) throws NoSuchStatusException
statusId
- the primary key of the statusNoSuchStatusException
- if a status with the primary key could not be foundpublic static Status findByPrimaryKey(long statusId) throws NoSuchStatusException
NoSuchStatusException
if it could not be found.statusId
- the primary key of the statusNoSuchStatusException
- if a status with the primary key could not be foundpublic static Status fetchByPrimaryKey(long statusId)
null
if it could not be found.statusId
- the primary key of the statusnull
if a status with the primary key could not be foundpublic static java.util.List<Status> findAll()
public static java.util.List<Status> 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 StatusModelImpl
. 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 statusesend
- the upper bound of the range of statuses (not inclusive)public static java.util.List<Status> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> 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 StatusModelImpl
. 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 statusesend
- the upper bound of the range of statuses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Status> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Status> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from StatusModelImpl
. 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 statusesend
- the upper bound of the range of statuses (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 java.util.Set<java.lang.String> getBadColumnNames()
public static StatusPersistence getPersistence()