@ProviderType
public class MeetupsEntryUtil
extends java.lang.Object
com.liferay.social.networking.service.persistence.impl.MeetupsEntryPersistenceImpl 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
MeetupsEntryPersistence,
com.liferay.social.networking.service.persistence.impl.MeetupsEntryPersistenceImpl| Constructor and Description |
|---|
MeetupsEntryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(java.util.List<MeetupsEntry> meetupsEntries)
Caches the meetups entries in the entity cache if it is enabled.
|
static void |
cacheResult(MeetupsEntry meetupsEntry)
Caches the meetups entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(MeetupsEntry meetupsEntry) |
static int |
countAll()
Returns the number of meetups entries.
|
static int |
countByCompanyId(long companyId)
Returns the number of meetups entries where companyId = ?.
|
static int |
countByUserId(long userId)
Returns the number of meetups entries where userId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static MeetupsEntry |
create(long meetupsEntryId)
Creates a new meetups entry with the primary key.
|
static MeetupsEntry |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the first meetups entry in the ordered set where companyId = ?.
|
static MeetupsEntry |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the last meetups entry in the ordered set where companyId = ?.
|
static MeetupsEntry |
fetchByPrimaryKey(long meetupsEntryId)
Returns the meetups entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,MeetupsEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static MeetupsEntry |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the first meetups entry in the ordered set where userId = ?.
|
static MeetupsEntry |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the last meetups entry in the ordered set where userId = ?.
|
static java.util.List<MeetupsEntry> |
findAll()
Returns all the meetups entries.
|
static java.util.List<MeetupsEntry> |
findAll(int start,
int end)
Returns a range of all the meetups entries.
|
static java.util.List<MeetupsEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns an ordered range of all the meetups entries.
|
static java.util.List<MeetupsEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the meetups entries.
|
static MeetupsEntry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the first meetups entry in the ordered set where companyId = ?.
|
static MeetupsEntry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the last meetups entry in the ordered set where companyId = ?.
|
static MeetupsEntry[] |
findByCompanyId_PrevAndNext(long meetupsEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the meetups entries before and after the current meetups entry in the ordered set where companyId = ?.
|
static java.util.List<MeetupsEntry> |
findByCompanyId(long companyId)
Returns all the meetups entries where companyId = ?.
|
static java.util.List<MeetupsEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the meetups entries where companyId = ?.
|
static java.util.List<MeetupsEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns an ordered range of all the meetups entries where companyId = ?.
|
static java.util.List<MeetupsEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the meetups entries where companyId = ?.
|
static MeetupsEntry |
findByPrimaryKey(long meetupsEntryId)
Returns the meetups entry with the primary key or throws a
NoSuchMeetupsEntryException if it could not be found. |
static MeetupsEntry |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the first meetups entry in the ordered set where userId = ?.
|
static MeetupsEntry |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the last meetups entry in the ordered set where userId = ?.
|
static MeetupsEntry[] |
findByUserId_PrevAndNext(long meetupsEntryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns the meetups entries before and after the current meetups entry in the ordered set where userId = ?.
|
static java.util.List<MeetupsEntry> |
findByUserId(long userId)
Returns all the meetups entries where userId = ?.
|
static java.util.List<MeetupsEntry> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the meetups entries where userId = ?.
|
static java.util.List<MeetupsEntry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
Returns an ordered range of all the meetups entries where userId = ?.
|
static java.util.List<MeetupsEntry> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the meetups entries where userId = ?.
|
static java.util.List<MeetupsEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<MeetupsEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<MeetupsEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator) |
static MeetupsEntryPersistence |
getPersistence() |
static MeetupsEntry |
remove(long meetupsEntryId)
Removes the meetups entry with the primary key from the database.
|
static void |
removeAll()
Removes all the meetups entries from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the meetups entries where companyId = ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the meetups entries where userId = ? from the database.
|
static MeetupsEntry |
update(MeetupsEntry meetupsEntry) |
static MeetupsEntry |
update(MeetupsEntry meetupsEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static MeetupsEntry |
updateImpl(MeetupsEntry meetupsEntry) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(MeetupsEntry meetupsEntry)
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.List<MeetupsEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<MeetupsEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<MeetupsEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static MeetupsEntry update(MeetupsEntry meetupsEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static MeetupsEntry update(MeetupsEntry meetupsEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<MeetupsEntry> findByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<MeetupsEntry> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from MeetupsEntryModelImpl. 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.
companyId - the company IDstart - the lower bound of the range of meetups entriesend - the upper bound of the range of meetups entries (not inclusive)public static java.util.List<MeetupsEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> 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 MeetupsEntryModelImpl. 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.
companyId - the company IDstart - the lower bound of the range of meetups entriesend - the upper bound of the range of meetups entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<MeetupsEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator, boolean retrieveFromCache)
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 MeetupsEntryModelImpl. 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.
companyId - the company IDstart - the lower bound of the range of meetups entriesend - the upper bound of the range of meetups entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static MeetupsEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator) throws NoSuchMeetupsEntryException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchMeetupsEntryException - if a matching meetups entry could not be foundpublic static MeetupsEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching meetups entry could not be foundpublic static MeetupsEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator) throws NoSuchMeetupsEntryException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchMeetupsEntryException - if a matching meetups entry could not be foundpublic static MeetupsEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching meetups entry could not be foundpublic static MeetupsEntry[] findByCompanyId_PrevAndNext(long meetupsEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator) throws NoSuchMeetupsEntryException
meetupsEntryId - the primary key of the current meetups entrycompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchMeetupsEntryException - if a meetups entry with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId - the company IDpublic static int countByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<MeetupsEntry> findByUserId(long userId)
userId - the user IDpublic static java.util.List<MeetupsEntry> findByUserId(long userId, 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 MeetupsEntryModelImpl. 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.
userId - the user IDstart - the lower bound of the range of meetups entriesend - the upper bound of the range of meetups entries (not inclusive)public static java.util.List<MeetupsEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> 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 MeetupsEntryModelImpl. 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.
userId - the user IDstart - the lower bound of the range of meetups entriesend - the upper bound of the range of meetups entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<MeetupsEntry> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator, boolean retrieveFromCache)
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 MeetupsEntryModelImpl. 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.
userId - the user IDstart - the lower bound of the range of meetups entriesend - the upper bound of the range of meetups entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static MeetupsEntry findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator) throws NoSuchMeetupsEntryException
userId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchMeetupsEntryException - if a matching meetups entry could not be foundpublic static MeetupsEntry fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
userId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching meetups entry could not be foundpublic static MeetupsEntry findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator) throws NoSuchMeetupsEntryException
userId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchMeetupsEntryException - if a matching meetups entry could not be foundpublic static MeetupsEntry fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator)
userId - the user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching meetups entry could not be foundpublic static MeetupsEntry[] findByUserId_PrevAndNext(long meetupsEntryId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator) throws NoSuchMeetupsEntryException
meetupsEntryId - the primary key of the current meetups entryuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchMeetupsEntryException - if a meetups entry with the primary key could not be foundpublic static void removeByUserId(long userId)
userId - the user IDpublic static int countByUserId(long userId)
userId - the user IDpublic static void cacheResult(MeetupsEntry meetupsEntry)
meetupsEntry - the meetups entrypublic static void cacheResult(java.util.List<MeetupsEntry> meetupsEntries)
meetupsEntries - the meetups entriespublic static MeetupsEntry create(long meetupsEntryId)
meetupsEntryId - the primary key for the new meetups entrypublic static MeetupsEntry remove(long meetupsEntryId) throws NoSuchMeetupsEntryException
meetupsEntryId - the primary key of the meetups entryNoSuchMeetupsEntryException - if a meetups entry with the primary key could not be foundpublic static MeetupsEntry updateImpl(MeetupsEntry meetupsEntry)
public static MeetupsEntry findByPrimaryKey(long meetupsEntryId) throws NoSuchMeetupsEntryException
NoSuchMeetupsEntryException if it could not be found.meetupsEntryId - the primary key of the meetups entryNoSuchMeetupsEntryException - if a meetups entry with the primary key could not be foundpublic static MeetupsEntry fetchByPrimaryKey(long meetupsEntryId)
null if it could not be found.meetupsEntryId - the primary key of the meetups entrynull if a meetups entry with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,MeetupsEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<MeetupsEntry> findAll()
public static java.util.List<MeetupsEntry> 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 MeetupsEntryModelImpl. 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 meetups entriesend - the upper bound of the range of meetups entries (not inclusive)public static java.util.List<MeetupsEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> 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 MeetupsEntryModelImpl. 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 meetups entriesend - the upper bound of the range of meetups entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<MeetupsEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MeetupsEntry> orderByComparator, boolean retrieveFromCache)
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 MeetupsEntryModelImpl. 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 meetups entriesend - the upper bound of the range of meetups entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static MeetupsEntryPersistence getPersistence()