Class MBThreadFlagUtil

java.lang.Object
com.liferay.message.boards.service.persistence.MBThreadFlagUtil

public class MBThreadFlagUtil extends Object
The persistence utility for the message boards thread flag service. This utility wraps com.liferay.message.boards.service.persistence.impl.MBThreadFlagPersistenceImpl 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

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(MBThreadFlag mbThreadFlag)
    Caches the message boards thread flag in the entity cache if it is enabled.
    static void
    cacheResult(List<MBThreadFlag> mbThreadFlags)
    Caches the message boards thread flags in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(MBThreadFlag mbThreadFlag)
     
    static int
    Returns the number of message boards thread flags.
    static int
    countByThreadId(long threadId)
    Returns the number of message boards thread flags where threadId = ?.
    static int
    countByU_T(long userId, long threadId)
    Returns the number of message boards thread flags where userId = ? and threadId = ?.
    static int
    countByUserId(long userId)
    Returns the number of message boards thread flags where userId = ?.
    static int
    Returns the number of message boards thread flags where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of message boards thread flags where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of message boards thread flags where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    create(long threadFlagId)
    Creates a new message boards thread flag with the primary key.
    fetchByPrimaryKey(long threadFlagId)
    Returns the message boards thread flag with the primary key or returns null if it could not be found.
     
    fetchByThreadId_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the first message boards thread flag in the ordered set where threadId = ?.
    fetchByThreadId_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the last message boards thread flag in the ordered set where threadId = ?.
    fetchByU_T(long userId, long threadId)
    Returns the message boards thread flag where userId = ? and threadId = ? or returns null if it could not be found.
    fetchByU_T(long userId, long threadId, boolean useFinderCache)
    Returns the message boards thread flag where userId = ? and threadId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the first message boards thread flag in the ordered set where userId = ?.
    fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the last message boards thread flag in the ordered set where userId = ?.
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the first message boards thread flag in the ordered set where uuid = ?.
    fetchByUUID_G(String uuid, long groupId)
    Returns the message boards thread flag where uuid = ? and groupId = ? or returns null if it could not be found.
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the message boards thread flag where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the last message boards thread flag in the ordered set where uuid = ?.
    Returns all the message boards thread flags.
    findAll(int start, int end)
    Returns a range of all the message boards thread flags.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns an ordered range of all the message boards thread flags.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the message boards thread flags.
    findByPrimaryKey(long threadFlagId)
    Returns the message boards thread flag with the primary key or throws a NoSuchThreadFlagException if it could not be found.
    findByThreadId(long threadId)
    Returns all the message boards thread flags where threadId = ?.
    findByThreadId(long threadId, int start, int end)
    Returns a range of all the message boards thread flags where threadId = ?.
    findByThreadId(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns an ordered range of all the message boards thread flags where threadId = ?.
    findByThreadId(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the message boards thread flags where threadId = ?.
    findByThreadId_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the first message boards thread flag in the ordered set where threadId = ?.
    findByThreadId_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the last message boards thread flag in the ordered set where threadId = ?.
    static MBThreadFlag[]
    findByThreadId_PrevAndNext(long threadFlagId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where threadId = ?.
    findByU_T(long userId, long threadId)
    Returns the message boards thread flag where userId = ? and threadId = ? or throws a NoSuchThreadFlagException if it could not be found.
    findByUserId(long userId)
    Returns all the message boards thread flags where userId = ?.
    findByUserId(long userId, int start, int end)
    Returns a range of all the message boards thread flags where userId = ?.
    findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns an ordered range of all the message boards thread flags where userId = ?.
    findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the message boards thread flags where userId = ?.
    findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the first message boards thread flag in the ordered set where userId = ?.
    findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the last message boards thread flag in the ordered set where userId = ?.
    static MBThreadFlag[]
    findByUserId_PrevAndNext(long threadFlagId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where userId = ?.
    Returns all the message boards thread flags where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the message boards thread flags where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns an ordered range of all the message boards thread flags where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the message boards thread flags where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the message boards thread flags where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the message boards thread flags where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
    static MBThreadFlag[]
    findByUuid_C_PrevAndNext(long threadFlagId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the first message boards thread flag in the ordered set where uuid = ?.
    findByUUID_G(String uuid, long groupId)
    Returns the message boards thread flag where uuid = ? and groupId = ? or throws a NoSuchThreadFlagException if it could not be found.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the last message boards thread flag in the ordered set where uuid = ?.
    static MBThreadFlag[]
    findByUuid_PrevAndNext(long threadFlagId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
    Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ?.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
     
     
    remove(long threadFlagId)
    Removes the message boards thread flag with the primary key from the database.
    static void
    Removes all the message boards thread flags from the database.
    static void
    removeByThreadId(long threadId)
    Removes all the message boards thread flags where threadId = ? from the database.
    removeByU_T(long userId, long threadId)
    Removes the message boards thread flag where userId = ? and threadId = ? from the database.
    static void
    removeByUserId(long userId)
    Removes all the message boards thread flags where userId = ? from the database.
    static void
    Removes all the message boards thread flags where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the message boards thread flags where uuid = ? and companyId = ? from the database.
    removeByUUID_G(String uuid, long groupId)
    Removes the message boards thread flag where uuid = ? and groupId = ? from the database.
    static void
     
    update(MBThreadFlag mbThreadFlag)
     
    update(MBThreadFlag mbThreadFlag, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    updateImpl(MBThreadFlag mbThreadFlag)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MBThreadFlagUtil

      public MBThreadFlagUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(MBThreadFlag mbThreadFlag)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,MBThreadFlag> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<MBThreadFlag> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<MBThreadFlag> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<MBThreadFlag> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static MBThreadFlag update(MBThreadFlag mbThreadFlag)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static MBThreadFlag update(MBThreadFlag mbThreadFlag, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<MBThreadFlag> findByUuid(String uuid)
      Returns all the message boards thread flags where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching message boards thread flags
    • findByUuid

      public static List<MBThreadFlag> findByUuid(String uuid, int start, int end)
      Returns a range of all the message boards thread flags where uuid = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      Returns:
      the range of matching message boards thread flags
    • findByUuid

      public static List<MBThreadFlag> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns an ordered range of all the message boards thread flags where uuid = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching message boards thread flags
    • findByUuid

      public static List<MBThreadFlag> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the message boards thread flags where uuid = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching message boards thread flags
    • findByUuid_First

      public static MBThreadFlag findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the first message boards thread flag in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByUuid_First

      public static MBThreadFlag fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns the first message boards thread flag in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • findByUuid_Last

      public static MBThreadFlag findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the last message boards thread flag in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByUuid_Last

      public static MBThreadFlag fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns the last message boards thread flag in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • findByUuid_PrevAndNext

      public static MBThreadFlag[] findByUuid_PrevAndNext(long threadFlagId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ?.
      Parameters:
      threadFlagId - the primary key of the current message boards thread flag
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
      NoSuchThreadFlagException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the message boards thread flags where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of message boards thread flags where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching message boards thread flags
    • findByUUID_G

      public static MBThreadFlag findByUUID_G(String uuid, long groupId) throws NoSuchThreadFlagException
      Returns the message boards thread flag where uuid = ? and groupId = ? or throws a NoSuchThreadFlagException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByUUID_G

      public static MBThreadFlag fetchByUUID_G(String uuid, long groupId)
      Returns the message boards thread flag where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • fetchByUUID_G

      public static MBThreadFlag fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the message boards thread flag where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • removeByUUID_G

      public static MBThreadFlag removeByUUID_G(String uuid, long groupId) throws NoSuchThreadFlagException
      Removes the message boards thread flag where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the message boards thread flag that was removed
      Throws:
      NoSuchThreadFlagException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of message boards thread flags where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching message boards thread flags
    • findByUuid_C

      public static List<MBThreadFlag> findByUuid_C(String uuid, long companyId)
      Returns all the message boards thread flags where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching message boards thread flags
    • findByUuid_C

      public static List<MBThreadFlag> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the message boards thread flags where uuid = ? and companyId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      Returns:
      the range of matching message boards thread flags
    • findByUuid_C

      public static List<MBThreadFlag> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching message boards thread flags
    • findByUuid_C

      public static List<MBThreadFlag> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching message boards thread flags
    • findByUuid_C_First

      public static MBThreadFlag findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByUuid_C_First

      public static MBThreadFlag fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • findByUuid_C_Last

      public static MBThreadFlag findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByUuid_C_Last

      public static MBThreadFlag fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • findByUuid_C_PrevAndNext

      public static MBThreadFlag[] findByUuid_C_PrevAndNext(long threadFlagId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      threadFlagId - the primary key of the current message boards thread flag
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
      NoSuchThreadFlagException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the message boards thread flags where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of message boards thread flags where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching message boards thread flags
    • findByUserId

      public static List<MBThreadFlag> findByUserId(long userId)
      Returns all the message boards thread flags where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching message boards thread flags
    • findByUserId

      public static List<MBThreadFlag> findByUserId(long userId, int start, int end)
      Returns a range of all the message boards thread flags where userId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      Returns:
      the range of matching message boards thread flags
    • findByUserId

      public static List<MBThreadFlag> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns an ordered range of all the message boards thread flags where userId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching message boards thread flags
    • findByUserId

      public static List<MBThreadFlag> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the message boards thread flags where userId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching message boards thread flags
    • findByUserId_First

      public static MBThreadFlag findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the first message boards thread flag in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByUserId_First

      public static MBThreadFlag fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns the first message boards thread flag in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • findByUserId_Last

      public static MBThreadFlag findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the last message boards thread flag in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByUserId_Last

      public static MBThreadFlag fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns the last message boards thread flag in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • findByUserId_PrevAndNext

      public static MBThreadFlag[] findByUserId_PrevAndNext(long threadFlagId, long userId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where userId = ?.
      Parameters:
      threadFlagId - the primary key of the current message boards thread flag
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
      NoSuchThreadFlagException
    • removeByUserId

      public static void removeByUserId(long userId)
      Removes all the message boards thread flags where userId = ? from the database.
      Parameters:
      userId - the user ID
    • countByUserId

      public static int countByUserId(long userId)
      Returns the number of message boards thread flags where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the number of matching message boards thread flags
    • findByThreadId

      public static List<MBThreadFlag> findByThreadId(long threadId)
      Returns all the message boards thread flags where threadId = ?.
      Parameters:
      threadId - the thread ID
      Returns:
      the matching message boards thread flags
    • findByThreadId

      public static List<MBThreadFlag> findByThreadId(long threadId, int start, int end)
      Returns a range of all the message boards thread flags where threadId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      threadId - the thread ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      Returns:
      the range of matching message boards thread flags
    • findByThreadId

      public static List<MBThreadFlag> findByThreadId(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns an ordered range of all the message boards thread flags where threadId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      threadId - the thread ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching message boards thread flags
    • findByThreadId

      public static List<MBThreadFlag> findByThreadId(long threadId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the message boards thread flags where threadId = ?.

      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 MBThreadFlagModelImpl.

      Parameters:
      threadId - the thread ID
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching message boards thread flags
    • findByThreadId_First

      public static MBThreadFlag findByThreadId_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the first message boards thread flag in the ordered set where threadId = ?.
      Parameters:
      threadId - the thread ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByThreadId_First

      public static MBThreadFlag fetchByThreadId_First(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns the first message boards thread flag in the ordered set where threadId = ?.
      Parameters:
      threadId - the thread ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • findByThreadId_Last

      public static MBThreadFlag findByThreadId_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the last message boards thread flag in the ordered set where threadId = ?.
      Parameters:
      threadId - the thread ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByThreadId_Last

      public static MBThreadFlag fetchByThreadId_Last(long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns the last message boards thread flag in the ordered set where threadId = ?.
      Parameters:
      threadId - the thread ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • findByThreadId_PrevAndNext

      public static MBThreadFlag[] findByThreadId_PrevAndNext(long threadFlagId, long threadId, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
      Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where threadId = ?.
      Parameters:
      threadFlagId - the primary key of the current message boards thread flag
      threadId - the thread ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
      NoSuchThreadFlagException
    • removeByThreadId

      public static void removeByThreadId(long threadId)
      Removes all the message boards thread flags where threadId = ? from the database.
      Parameters:
      threadId - the thread ID
    • countByThreadId

      public static int countByThreadId(long threadId)
      Returns the number of message boards thread flags where threadId = ?.
      Parameters:
      threadId - the thread ID
      Returns:
      the number of matching message boards thread flags
    • findByU_T

      public static MBThreadFlag findByU_T(long userId, long threadId) throws NoSuchThreadFlagException
      Returns the message boards thread flag where userId = ? and threadId = ? or throws a NoSuchThreadFlagException if it could not be found.
      Parameters:
      userId - the user ID
      threadId - the thread ID
      Returns:
      the matching message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a matching message boards thread flag could not be found
      NoSuchThreadFlagException
    • fetchByU_T

      public static MBThreadFlag fetchByU_T(long userId, long threadId)
      Returns the message boards thread flag where userId = ? and threadId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      userId - the user ID
      threadId - the thread ID
      Returns:
      the matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • fetchByU_T

      public static MBThreadFlag fetchByU_T(long userId, long threadId, boolean useFinderCache)
      Returns the message boards thread flag where userId = ? and threadId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      userId - the user ID
      threadId - the thread ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching message boards thread flag, or null if a matching message boards thread flag could not be found
    • removeByU_T

      public static MBThreadFlag removeByU_T(long userId, long threadId) throws NoSuchThreadFlagException
      Removes the message boards thread flag where userId = ? and threadId = ? from the database.
      Parameters:
      userId - the user ID
      threadId - the thread ID
      Returns:
      the message boards thread flag that was removed
      Throws:
      NoSuchThreadFlagException
    • countByU_T

      public static int countByU_T(long userId, long threadId)
      Returns the number of message boards thread flags where userId = ? and threadId = ?.
      Parameters:
      userId - the user ID
      threadId - the thread ID
      Returns:
      the number of matching message boards thread flags
    • cacheResult

      public static void cacheResult(MBThreadFlag mbThreadFlag)
      Caches the message boards thread flag in the entity cache if it is enabled.
      Parameters:
      mbThreadFlag - the message boards thread flag
    • cacheResult

      public static void cacheResult(List<MBThreadFlag> mbThreadFlags)
      Caches the message boards thread flags in the entity cache if it is enabled.
      Parameters:
      mbThreadFlags - the message boards thread flags
    • create

      public static MBThreadFlag create(long threadFlagId)
      Creates a new message boards thread flag with the primary key. Does not add the message boards thread flag to the database.
      Parameters:
      threadFlagId - the primary key for the new message boards thread flag
      Returns:
      the new message boards thread flag
    • remove

      public static MBThreadFlag remove(long threadFlagId) throws NoSuchThreadFlagException
      Removes the message boards thread flag with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      threadFlagId - the primary key of the message boards thread flag
      Returns:
      the message boards thread flag that was removed
      Throws:
      NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
      NoSuchThreadFlagException
    • updateImpl

      public static MBThreadFlag updateImpl(MBThreadFlag mbThreadFlag)
    • findByPrimaryKey

      public static MBThreadFlag findByPrimaryKey(long threadFlagId) throws NoSuchThreadFlagException
      Returns the message boards thread flag with the primary key or throws a NoSuchThreadFlagException if it could not be found.
      Parameters:
      threadFlagId - the primary key of the message boards thread flag
      Returns:
      the message boards thread flag
      Throws:
      NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
      NoSuchThreadFlagException
    • fetchByPrimaryKey

      public static MBThreadFlag fetchByPrimaryKey(long threadFlagId)
      Returns the message boards thread flag with the primary key or returns null if it could not be found.
      Parameters:
      threadFlagId - the primary key of the message boards thread flag
      Returns:
      the message boards thread flag, or null if a message boards thread flag with the primary key could not be found
    • findAll

      public static List<MBThreadFlag> findAll()
      Returns all the message boards thread flags.
      Returns:
      the message boards thread flags
    • findAll

      public static List<MBThreadFlag> findAll(int start, int end)
      Returns a range of all the message boards thread flags.

      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 MBThreadFlagModelImpl.

      Parameters:
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      Returns:
      the range of message boards thread flags
    • findAll

      public static List<MBThreadFlag> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator)
      Returns an ordered range of all the message boards thread flags.

      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 MBThreadFlagModelImpl.

      Parameters:
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of message boards thread flags
    • findAll

      public static List<MBThreadFlag> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThreadFlag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the message boards thread flags.

      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 MBThreadFlagModelImpl.

      Parameters:
      start - the lower bound of the range of message boards thread flags
      end - the upper bound of the range of message boards thread flags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of message boards thread flags
    • removeAll

      public static void removeAll()
      Removes all the message boards thread flags from the database.
    • countAll

      public static int countAll()
      Returns the number of message boards thread flags.
      Returns:
      the number of message boards thread flags
    • getPersistence

      public static MBThreadFlagPersistence getPersistence()
    • setPersistence

      public static void setPersistence(MBThreadFlagPersistence persistence)