@ProviderType public interface MBThreadFlagPersistence extends BasePersistence<MBThreadFlag>
Caching information and settings can be found in portal.properties
MBThreadFlagPersistenceImpl
,
MBThreadFlagUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(List<MBThreadFlag> mbThreadFlags)
Caches the message boards thread flags in the entity cache if it is enabled.
|
void |
cacheResult(MBThreadFlag mbThreadFlag)
Caches the message boards thread flag in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of message boards thread flags.
|
int |
countByThreadId(long threadId)
Returns the number of message boards thread flags where threadId = ?.
|
int |
countByU_T(long userId,
long threadId)
Returns the number of message boards thread flags where userId = ? and threadId = ?.
|
int |
countByUserId(long userId)
Returns the number of message boards thread flags where userId = ?.
|
int |
countByUuid_C(String uuid,
long companyId)
Returns the number of message boards thread flags where uuid = ? and companyId = ?.
|
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of message boards thread flags where uuid = ? and groupId = ?.
|
int |
countByUuid(String uuid)
Returns the number of message boards thread flags where uuid = ?.
|
MBThreadFlag |
create(long threadFlagId)
Creates a new message boards thread flag with the primary key.
|
MBThreadFlag |
fetchByPrimaryKey(long threadFlagId)
Returns the message boards thread flag with the primary key or returns
null if it could not be found. |
Map<Serializable,MBThreadFlag> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
MBThreadFlag |
fetchByThreadId_First(long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where threadId = ?.
|
MBThreadFlag |
fetchByThreadId_Last(long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where threadId = ?.
|
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. |
MBThreadFlag |
fetchByU_T(long userId,
long threadId,
boolean retrieveFromCache)
Returns the message boards thread flag where userId = ? and threadId = ? or returns
null if it could not be found, optionally using the finder cache. |
MBThreadFlag |
fetchByUserId_First(long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where userId = ?.
|
MBThreadFlag |
fetchByUserId_Last(long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where userId = ?.
|
MBThreadFlag |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
|
MBThreadFlag |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
|
MBThreadFlag |
fetchByUuid_First(String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ?.
|
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. |
MBThreadFlag |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the message boards thread flag where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
MBThreadFlag |
fetchByUuid_Last(String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ?.
|
List<MBThreadFlag> |
findAll()
Returns all the message boards thread flags.
|
List<MBThreadFlag> |
findAll(int start,
int end)
Returns a range of all the message boards thread flags.
|
List<MBThreadFlag> |
findAll(int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns an ordered range of all the message boards thread flags.
|
List<MBThreadFlag> |
findAll(int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the message boards thread flags.
|
MBThreadFlag |
findByPrimaryKey(long threadFlagId)
Returns the message boards thread flag with the primary key or throws a
NoSuchThreadFlagException if it could not be found. |
MBThreadFlag |
findByThreadId_First(long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where threadId = ?.
|
MBThreadFlag |
findByThreadId_Last(long threadId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where threadId = ?.
|
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 = ?.
|
List<MBThreadFlag> |
findByThreadId(long threadId)
Returns all the message boards thread flags where threadId = ?.
|
List<MBThreadFlag> |
findByThreadId(long threadId,
int start,
int end)
Returns a range of all the message boards thread flags where threadId = ?.
|
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 = ?.
|
List<MBThreadFlag> |
findByThreadId(long threadId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the message boards thread flags where threadId = ?.
|
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. |
MBThreadFlag |
findByUserId_First(long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where userId = ?.
|
MBThreadFlag |
findByUserId_Last(long userId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where userId = ?.
|
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 = ?.
|
List<MBThreadFlag> |
findByUserId(long userId)
Returns all the message boards thread flags where userId = ?.
|
List<MBThreadFlag> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the message boards thread flags where userId = ?.
|
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 = ?.
|
List<MBThreadFlag> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the message boards thread flags where userId = ?.
|
MBThreadFlag |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
|
MBThreadFlag |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
|
MBThreadFlag[] |
findByUuid_C_PrevAndNext(long threadFlagId,
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 = ?.
|
List<MBThreadFlag> |
findByUuid_C(String uuid,
long companyId)
Returns all the message boards thread flags where uuid = ? and companyId = ?.
|
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 = ?.
|
List<MBThreadFlag> |
findByUuid_C(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 = ?.
|
List<MBThreadFlag> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.
|
MBThreadFlag |
findByUuid_First(String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ?.
|
MBThreadFlag |
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. |
MBThreadFlag |
findByUuid_Last(String uuid,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ?.
|
MBThreadFlag[] |
findByUuid_PrevAndNext(long threadFlagId,
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 = ?.
|
List<MBThreadFlag> |
findByUuid(String uuid)
Returns all the message boards thread flags where uuid = ?.
|
List<MBThreadFlag> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the message boards thread flags where uuid = ?.
|
List<MBThreadFlag> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator)
Returns an ordered range of all the message boards thread flags where uuid = ?.
|
List<MBThreadFlag> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<MBThreadFlag> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the message boards thread flags where uuid = ?.
|
Set<String> |
getBadColumnNames() |
MBThreadFlag |
remove(long threadFlagId)
Removes the message boards thread flag with the primary key from the database.
|
void |
removeAll()
Removes all the message boards thread flags from the database.
|
void |
removeByThreadId(long threadId)
Removes all the message boards thread flags where threadId = ? from the database.
|
MBThreadFlag |
removeByU_T(long userId,
long threadId)
Removes the message boards thread flag where userId = ? and threadId = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the message boards thread flags where userId = ? from the database.
|
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the message boards thread flags where uuid = ? and companyId = ? from the database.
|
MBThreadFlag |
removeByUUID_G(String uuid,
long groupId)
Removes the message boards thread flag where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(String uuid)
Removes all the message boards thread flags where uuid = ? from the database.
|
MBThreadFlag |
updateImpl(MBThreadFlag mbThreadFlag) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<MBThreadFlag> findByUuid(String uuid)
uuid
- the uuidList<MBThreadFlag> findByUuid(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)List<MBThreadFlag> findByUuid(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)List<MBThreadFlag> findByUuid(String uuid, int start, int end, OrderByComparator<MBThreadFlag> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cacheMBThreadFlag findByUuid_First(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 foundMBThreadFlag fetchByUuid_First(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 foundMBThreadFlag findByUuid_Last(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 foundMBThreadFlag fetchByUuid_Last(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 foundMBThreadFlag[] findByUuid_PrevAndNext(long threadFlagId, 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 foundvoid removeByUuid(String uuid)
uuid
- the uuidint countByUuid(String uuid)
uuid
- the uuidMBThreadFlag findByUUID_G(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 foundMBThreadFlag fetchByUUID_G(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 foundMBThreadFlag fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching message boards thread flag could not be foundMBThreadFlag removeByUUID_G(String uuid, long groupId) throws NoSuchThreadFlagException
uuid
- the uuidgroupId
- the group IDNoSuchThreadFlagException
int countByUUID_G(String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDList<MBThreadFlag> findByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDList<MBThreadFlag> findByUuid_C(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)List<MBThreadFlag> findByUuid_C(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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)List<MBThreadFlag> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<MBThreadFlag> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cacheMBThreadFlag findByUuid_C_First(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 foundMBThreadFlag fetchByUuid_C_First(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 foundMBThreadFlag findByUuid_C_Last(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 foundMBThreadFlag fetchByUuid_C_Last(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 foundMBThreadFlag[] findByUuid_C_PrevAndNext(long threadFlagId, 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 foundvoid removeByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDList<MBThreadFlag> findByUserId(long userId)
userId
- the user IDList<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of 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
)List<MBThreadFlag> findByUserId(long userId, int start, int end, OrderByComparator<MBThreadFlag> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of 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
)retrieveFromCache
- whether to retrieve from the finder cacheMBThreadFlag 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 foundMBThreadFlag 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 foundMBThreadFlag 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 foundMBThreadFlag 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 foundMBThreadFlag[] 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 foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDList<MBThreadFlag> findByThreadId(long threadId)
threadId
- the thread IDList<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)List<MBThreadFlag> findByThreadId(long threadId, int start, int end, OrderByComparator<MBThreadFlag> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cacheMBThreadFlag 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 foundMBThreadFlag 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 foundMBThreadFlag 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 foundMBThreadFlag 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 foundMBThreadFlag[] 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 foundvoid removeByThreadId(long threadId)
threadId
- the thread IDint countByThreadId(long threadId)
threadId
- the thread IDMBThreadFlag 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 foundMBThreadFlag 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 foundMBThreadFlag fetchByU_T(long userId, long threadId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDthreadId
- the thread IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching message boards thread flag could not be foundMBThreadFlag removeByU_T(long userId, long threadId) throws NoSuchThreadFlagException
userId
- the user IDthreadId
- the thread IDNoSuchThreadFlagException
int countByU_T(long userId, long threadId)
userId
- the user IDthreadId
- the thread IDvoid cacheResult(MBThreadFlag mbThreadFlag)
mbThreadFlag
- the message boards thread flagvoid cacheResult(List<MBThreadFlag> mbThreadFlags)
mbThreadFlags
- the message boards thread flagsMBThreadFlag create(long threadFlagId)
threadFlagId
- the primary key for the new message boards thread flagMBThreadFlag 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 foundMBThreadFlag updateImpl(MBThreadFlag mbThreadFlag)
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 foundMBThreadFlag 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 foundMap<Serializable,MBThreadFlag> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<MBThreadFlag>
List<MBThreadFlag> findAll()
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of 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
)List<MBThreadFlag> findAll(int start, int end, OrderByComparator<MBThreadFlag> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of 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
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
Set<String> getBadColumnNames()
getBadColumnNames
in interface BasePersistence<MBThreadFlag>