@ProviderType public interface StatusPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Status>
Caching information and settings can be found in portal.properties
StatusUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<Status> statuses)
Caches the statuses in the entity cache if it is enabled.
|
void |
cacheResult(Status status)
Caches the status in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of statuses.
|
int |
countByM_O(long modifiedDate,
boolean online)
Returns the number of statuses where modifiedDate = ? and online = ?.
|
int |
countByModifiedDate(long modifiedDate)
Returns the number of statuses where modifiedDate = ?.
|
int |
countByOnline(boolean online)
Returns the number of statuses where online = ?.
|
int |
countByUserId(long userId)
Returns the number of statuses where userId = ?.
|
Status |
create(long statusId)
Creates a new status with the primary key.
|
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 = ?.
|
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 = ?.
|
Status |
fetchByModifiedDate_First(long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where modifiedDate = ?.
|
Status |
fetchByModifiedDate_Last(long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where modifiedDate = ?.
|
Status |
fetchByOnline_First(boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where online = ?.
|
Status |
fetchByOnline_Last(boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where online = ?.
|
Status |
fetchByPrimaryKey(long statusId)
Returns the status with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,Status> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
Status |
fetchByUserId(long userId)
Returns the status where userId = ? or returns
null if it could not be found. |
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. |
java.util.List<Status> |
findAll()
Returns all the statuses.
|
java.util.List<Status> |
findAll(int start,
int end)
Returns a range of all the statuses.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<Status> |
findByM_O(long modifiedDate,
boolean online)
Returns all the statuses where modifiedDate = ? and online = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
Status |
findByModifiedDate_First(long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where modifiedDate = ?.
|
Status |
findByModifiedDate_Last(long modifiedDate,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where modifiedDate = ?.
|
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 = ?.
|
java.util.List<Status> |
findByModifiedDate(long modifiedDate)
Returns all the statuses where modifiedDate = ?.
|
java.util.List<Status> |
findByModifiedDate(long modifiedDate,
int start,
int end)
Returns a range of all the statuses where modifiedDate = ?.
|
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 = ?.
|
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 = ?.
|
Status |
findByOnline_First(boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the first status in the ordered set where online = ?.
|
Status |
findByOnline_Last(boolean online,
com.liferay.portal.kernel.util.OrderByComparator<Status> orderByComparator)
Returns the last status in the ordered set where online = ?.
|
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 = ?.
|
java.util.List<Status> |
findByOnline(boolean online)
Returns all the statuses where online = ?.
|
java.util.List<Status> |
findByOnline(boolean online,
int start,
int end)
Returns a range of all the statuses where online = ?.
|
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 = ?.
|
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 = ?.
|
Status |
findByPrimaryKey(long statusId)
Returns the status with the primary key or throws a
NoSuchStatusException if it could not be found. |
Status |
findByUserId(long userId)
Returns the status where userId = ? or throws a
NoSuchStatusException if it could not be found. |
java.util.Set<java.lang.String> |
getBadColumnNames() |
Status |
remove(long statusId)
Removes the status with the primary key from the database.
|
void |
removeAll()
Removes all the statuses from the database.
|
void |
removeByM_O(long modifiedDate,
boolean online)
Removes all the statuses where modifiedDate = ? and online = ? from the database.
|
void |
removeByModifiedDate(long modifiedDate)
Removes all the statuses where modifiedDate = ? from the database.
|
void |
removeByOnline(boolean online)
Removes all the statuses where online = ? from the database.
|
Status |
removeByUserId(long userId)
Removes the status where userId = ? from the database.
|
Status |
updateImpl(Status status) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.Map<java.io.Serializable,Status> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
StatusUtil
to access the status persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<Status>
Status findByUserId(long userId) throws NoSuchStatusException
NoSuchStatusException
if it could not be found.userId
- the user IDNoSuchStatusException
- if a matching status could not be foundStatus 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 foundStatus 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 foundStatus removeByUserId(long userId) throws NoSuchStatusException
userId
- the user IDNoSuchStatusException
int countByUserId(long userId)
userId
- the user IDjava.util.List<Status> findByModifiedDate(long modifiedDate)
modifiedDate
- the modified datejava.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, then the query will include the default ORDER BY logic from StatusModelImpl
.
modifiedDate
- the modified datestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)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, then the query will include the default ORDER BY logic from StatusModelImpl
.
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
)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, then the query will include the default ORDER BY logic from StatusModelImpl
.
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 cacheStatus 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 foundStatus 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 foundStatus 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 foundStatus 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 foundStatus[] 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 foundvoid removeByModifiedDate(long modifiedDate)
modifiedDate
- the modified dateint countByModifiedDate(long modifiedDate)
modifiedDate
- the modified datejava.util.List<Status> findByOnline(boolean online)
online
- the onlinejava.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, then the query will include the default ORDER BY logic from StatusModelImpl
.
online
- the onlinestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)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, then the query will include the default ORDER BY logic from StatusModelImpl
.
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
)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, then the query will include the default ORDER BY logic from StatusModelImpl
.
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 cacheStatus 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 foundStatus 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 foundStatus 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 foundStatus 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 foundStatus[] 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 foundvoid removeByOnline(boolean online)
online
- the onlineint countByOnline(boolean online)
online
- the onlinejava.util.List<Status> findByM_O(long modifiedDate, boolean online)
modifiedDate
- the modified dateonline
- the onlinejava.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, then the query will include the default ORDER BY logic from StatusModelImpl
.
modifiedDate
- the modified dateonline
- the onlinestart
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)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, then the query will include the default ORDER BY logic from StatusModelImpl
.
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
)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, then the query will include the default ORDER BY logic from StatusModelImpl
.
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 cacheStatus 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 foundStatus 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 foundStatus 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 foundStatus 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 foundStatus[] 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 foundvoid removeByM_O(long modifiedDate, boolean online)
modifiedDate
- the modified dateonline
- the onlineint countByM_O(long modifiedDate, boolean online)
modifiedDate
- the modified dateonline
- the onlinevoid cacheResult(Status status)
status
- the statusvoid cacheResult(java.util.List<Status> statuses)
statuses
- the statusesStatus create(long statusId)
statusId
- the primary key for the new statusStatus remove(long statusId) throws NoSuchStatusException
statusId
- the primary key of the statusNoSuchStatusException
- if a status with the primary key could not be foundStatus 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 foundStatus 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 foundjava.util.List<Status> findAll()
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, then the query will include the default ORDER BY logic from StatusModelImpl
.
start
- the lower bound of the range of statusesend
- the upper bound of the range of statuses (not inclusive)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, then the query will include the default ORDER BY logic from StatusModelImpl
.
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
)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, then the query will include the default ORDER BY logic from StatusModelImpl
.
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 cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<Status>