public class MBThreadFlagUtil
extends java.lang.Object
com.liferay.portlet.messageboards.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
MBThreadFlagPersistence
Constructor and Description |
---|
MBThreadFlagUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<MBThreadFlag> mbThreadFlags)
Caches the message boards thread flags in the entity cache if it is enabled.
|
static void |
cacheResult(MBThreadFlag mbThreadFlag)
Caches the message boards thread flag in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(MBThreadFlag mbThreadFlag) |
static int |
countAll()
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 |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of message boards thread flags where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of message boards thread flags where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of message boards thread flags where uuid = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static MBThreadFlag |
create(long threadFlagId)
Creates a new message boards thread flag with the primary key.
|
static MBThreadFlag |
fetchByPrimaryKey(long threadFlagId)
Returns the message boards thread flag with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,MBThreadFlag> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static MBThreadFlag |
fetchByThreadId_First(long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where threadId = ?.
|
static MBThreadFlag |
fetchByThreadId_Last(long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where threadId = ?.
|
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. |
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. |
static MBThreadFlag |
fetchByUserId_First(long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where userId = ?.
|
static MBThreadFlag |
fetchByUserId_Last(long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where userId = ?.
|
static MBThreadFlag |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
|
static MBThreadFlag |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
|
static MBThreadFlag |
fetchByUuid_First(java.lang.String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ?.
|
static MBThreadFlag |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the message boards thread flag where uuid = ? and groupId = ? or returns
null if it could not be found. |
static MBThreadFlag |
fetchByUUID_G(java.lang.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. |
static MBThreadFlag |
fetchByUuid_Last(java.lang.String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ?.
|
static java.util.List<MBThreadFlag> |
findAll()
Returns all the message boards thread flags.
|
static java.util.List<MBThreadFlag> |
findAll(int start,
int end)
Returns a range of all the message boards thread flags.
|
static java.util.List<MBThreadFlag> |
findAll(int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns an ordered range of all the message boards thread flags.
|
static java.util.List<MBThreadFlag> |
findAll(int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the message boards thread flags.
|
static MBThreadFlag |
findByPrimaryKey(long threadFlagId)
Returns the message boards thread flag with the primary key or throws a
NoSuchThreadFlagException if it could not be found. |
static MBThreadFlag |
findByThreadId_First(long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where threadId = ?.
|
static MBThreadFlag |
findByThreadId_Last(long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where threadId = ?.
|
static MBThreadFlag[] |
findByThreadId_PrevAndNext(long threadFlagId,
long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where threadId = ?.
|
static java.util.List<MBThreadFlag> |
findByThreadId(long threadId)
Returns all the message boards thread flags where threadId = ?.
|
static java.util.List<MBThreadFlag> |
findByThreadId(long threadId,
int start,
int end)
Returns a range of all the message boards thread flags where threadId = ?.
|
static java.util.List<MBThreadFlag> |
findByThreadId(long threadId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns an ordered range of all the message boards thread flags where threadId = ?.
|
static java.util.List<MBThreadFlag> |
findByThreadId(long threadId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the message boards thread flags where threadId = ?.
|
static MBThreadFlag |
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. |
static MBThreadFlag |
findByUserId_First(long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where userId = ?.
|
static MBThreadFlag |
findByUserId_Last(long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where userId = ?.
|
static MBThreadFlag[] |
findByUserId_PrevAndNext(long threadFlagId,
long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where userId = ?.
|
static java.util.List<MBThreadFlag> |
findByUserId(long userId)
Returns all the message boards thread flags where userId = ?.
|
static java.util.List<MBThreadFlag> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the message boards thread flags where userId = ?.
|
static java.util.List<MBThreadFlag> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns an ordered range of all the message boards thread flags where userId = ?.
|
static java.util.List<MBThreadFlag> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the message boards thread flags where userId = ?.
|
static MBThreadFlag |
findByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
|
static MBThreadFlag |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
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,
java.lang.String uuid,
long companyId,
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 = ?.
|
static java.util.List<MBThreadFlag> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the message boards thread flags where uuid = ? and companyId = ?.
|
static java.util.List<MBThreadFlag> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the message boards thread flags where uuid = ? and companyId = ?.
|
static java.util.List<MBThreadFlag> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.
|
static java.util.List<MBThreadFlag> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.
|
static MBThreadFlag |
findByUuid_First(java.lang.String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ?.
|
static MBThreadFlag |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the message boards thread flag where uuid = ? and groupId = ? or throws a
NoSuchThreadFlagException if it could not be found. |
static MBThreadFlag |
findByUuid_Last(java.lang.String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ?.
|
static MBThreadFlag[] |
findByUuid_PrevAndNext(long threadFlagId,
java.lang.String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ?.
|
static java.util.List<MBThreadFlag> |
findByUuid(java.lang.String uuid)
Returns all the message boards thread flags where uuid = ?.
|
static java.util.List<MBThreadFlag> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the message boards thread flags where uuid = ?.
|
static java.util.List<MBThreadFlag> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns an ordered range of all the message boards thread flags where uuid = ?.
|
static java.util.List<MBThreadFlag> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the message boards thread flags where uuid = ?.
|
static java.util.List<MBThreadFlag> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<MBThreadFlag> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<MBThreadFlag> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static MBThreadFlagPersistence |
getPersistence() |
static MBThreadFlag |
remove(long threadFlagId)
Removes the message boards thread flag with the primary key from the database.
|
static void |
removeAll()
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.
|
static MBThreadFlag |
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 |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the message boards thread flags where uuid = ? and companyId = ? from the database.
|
static MBThreadFlag |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the message boards thread flag where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the message boards thread flags where uuid = ? from the database.
|
static MBThreadFlag |
update(MBThreadFlag mbThreadFlag) |
static MBThreadFlag |
update(MBThreadFlag mbThreadFlag,
ServiceContext serviceContext) |
static MBThreadFlag |
updateImpl(MBThreadFlag mbThreadFlag) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(MBThreadFlag mbThreadFlag)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.Map<java.io.Serializable,MBThreadFlag> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<MBThreadFlag> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<MBThreadFlag> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static java.util.List<MBThreadFlag> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<MBThreadFlag> orderByComparator)
public static MBThreadFlag update(MBThreadFlag mbThreadFlag)
public static MBThreadFlag update(MBThreadFlag mbThreadFlag, ServiceContext serviceContext)
public static java.util.List<MBThreadFlag> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<MBThreadFlag> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)public static java.util.List<MBThreadFlag> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MBThreadFlag> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of message boards thread flagsend
- 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 cachepublic static MBThreadFlag findByUuid_First(java.lang.String uuid, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByUuid_First(java.lang.String uuid, OrderByComparator<MBThreadFlag> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching message boards thread flag could not be foundpublic static MBThreadFlag findByUuid_Last(java.lang.String uuid, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByUuid_Last(java.lang.String uuid, OrderByComparator<MBThreadFlag> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching message boards thread flag could not be foundpublic static MBThreadFlag[] findByUuid_PrevAndNext(long threadFlagId, java.lang.String uuid, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
threadFlagId
- the primary key of the current message boards thread flaguuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static MBThreadFlag findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchThreadFlagException
NoSuchThreadFlagException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching message boards thread flag could not be foundpublic static MBThreadFlag removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchThreadFlagException
uuid
- the uuidgroupId
- the group IDNoSuchThreadFlagException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<MBThreadFlag> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<MBThreadFlag> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)public static java.util.List<MBThreadFlag> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MBThreadFlag> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of message boards thread flagsend
- 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 cachepublic static MBThreadFlag findByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator<MBThreadFlag> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching message boards thread flag could not be foundpublic static MBThreadFlag findByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator<MBThreadFlag> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching message boards thread flag could not be foundpublic static MBThreadFlag[] findByUuid_C_PrevAndNext(long threadFlagId, java.lang.String uuid, long companyId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
threadFlagId
- the primary key of the current message boards thread flaguuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<MBThreadFlag> findByUserId(long userId)
userId
- the user IDpublic static java.util.List<MBThreadFlag> 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, then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
.
userId
- the user IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)public static java.util.List<MBThreadFlag> findByUserId(long userId, int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
userId
- the user IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MBThreadFlag> findByUserId(long userId, int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
userId
- the user IDstart
- the lower bound of the range of message boards thread flagsend
- 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 cachepublic static MBThreadFlag findByUserId_First(long userId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByUserId_First(long userId, OrderByComparator<MBThreadFlag> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching message boards thread flag could not be foundpublic static MBThreadFlag findByUserId_Last(long userId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByUserId_Last(long userId, OrderByComparator<MBThreadFlag> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching message boards thread flag could not be foundpublic static MBThreadFlag[] findByUserId_PrevAndNext(long threadFlagId, long userId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
threadFlagId
- the primary key of the current message boards thread flaguserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a message boards thread flag 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 java.util.List<MBThreadFlag> findByThreadId(long threadId)
threadId
- the thread IDpublic static java.util.List<MBThreadFlag> findByThreadId(long threadId, 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 MBThreadFlagModelImpl
.
threadId
- the thread IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)public static java.util.List<MBThreadFlag> findByThreadId(long threadId, int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
threadId
- the thread IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MBThreadFlag> findByThreadId(long threadId, int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
threadId
- the thread IDstart
- the lower bound of the range of message boards thread flagsend
- 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 cachepublic static MBThreadFlag findByThreadId_First(long threadId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
threadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByThreadId_First(long threadId, OrderByComparator<MBThreadFlag> orderByComparator)
threadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching message boards thread flag could not be foundpublic static MBThreadFlag findByThreadId_Last(long threadId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
threadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByThreadId_Last(long threadId, OrderByComparator<MBThreadFlag> orderByComparator)
threadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching message boards thread flag could not be foundpublic static MBThreadFlag[] findByThreadId_PrevAndNext(long threadFlagId, long threadId, OrderByComparator<MBThreadFlag> orderByComparator) throws NoSuchThreadFlagException
threadFlagId
- the primary key of the current message boards thread flagthreadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be foundpublic static void removeByThreadId(long threadId)
threadId
- the thread IDpublic static int countByThreadId(long threadId)
threadId
- the thread IDpublic static MBThreadFlag findByU_T(long userId, long threadId) throws NoSuchThreadFlagException
NoSuchThreadFlagException
if it could not be found.userId
- the user IDthreadId
- the thread IDNoSuchThreadFlagException
- if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByU_T(long userId, long threadId)
null
if it could not be found. Uses the finder cache.userId
- the user IDthreadId
- the thread IDnull
if a matching message boards thread flag could not be foundpublic static MBThreadFlag fetchByU_T(long userId, long threadId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDthreadId
- the thread IDuseFinderCache
- whether to use the finder cachenull
if a matching message boards thread flag could not be foundpublic static MBThreadFlag removeByU_T(long userId, long threadId) throws NoSuchThreadFlagException
userId
- the user IDthreadId
- the thread IDNoSuchThreadFlagException
public static int countByU_T(long userId, long threadId)
userId
- the user IDthreadId
- the thread IDpublic static void cacheResult(MBThreadFlag mbThreadFlag)
mbThreadFlag
- the message boards thread flagpublic static void cacheResult(java.util.List<MBThreadFlag> mbThreadFlags)
mbThreadFlags
- the message boards thread flagspublic static MBThreadFlag create(long threadFlagId)
threadFlagId
- the primary key for the new message boards thread flagpublic static MBThreadFlag remove(long threadFlagId) throws NoSuchThreadFlagException
threadFlagId
- the primary key of the message boards thread flagNoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be foundpublic static MBThreadFlag updateImpl(MBThreadFlag mbThreadFlag)
public static MBThreadFlag findByPrimaryKey(long threadFlagId) throws NoSuchThreadFlagException
NoSuchThreadFlagException
if it could not be found.threadFlagId
- the primary key of the message boards thread flagNoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be foundpublic static MBThreadFlag fetchByPrimaryKey(long threadFlagId)
null
if it could not be found.threadFlagId
- the primary key of the message boards thread flagnull
if a message boards thread flag with the primary key could not be foundpublic static java.util.List<MBThreadFlag> findAll()
public static java.util.List<MBThreadFlag> 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 MBThreadFlagModelImpl
.
start
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)public static java.util.List<MBThreadFlag> findAll(int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
start
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MBThreadFlag> findAll(int start, int end, OrderByComparator<MBThreadFlag> 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 MBThreadFlagModelImpl
.
start
- the lower bound of the range of message boards thread flagsend
- 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 cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static MBThreadFlagPersistence getPersistence()