public class TestResultPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.TestResult>
implements com.qti.slayer.service.persistence.TestResultPersistence
Caching information and settings can be found in portal.properties
TestResultPersistence
,
TestResultUtil
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_UOLID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_USERID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_UOLID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UOLID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID |
Constructor and Description |
---|
TestResultPersistenceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Initializes the test result persistence.
|
void |
cacheResult(java.util.List<com.qti.slayer.model.TestResult> testResults)
Caches the test results in the entity cache if it is enabled.
|
void |
cacheResult(com.qti.slayer.model.TestResult testResult)
Caches the test result in the entity cache if it is enabled.
|
void |
clearCache()
Clears the cache for all test results.
|
void |
clearCache(java.util.List<com.qti.slayer.model.TestResult> testResults) |
void |
clearCache(com.qti.slayer.model.TestResult testResult)
Clears the cache for the test result.
|
int |
countAll()
Returns the number of test results.
|
int |
countByUolId(long uolId)
Returns the number of test results where uolId = ?.
|
int |
countByUserId(long userId)
Returns the number of test results where userId = ?.
|
com.qti.slayer.model.TestResult |
create(com.qti.slayer.service.persistence.TestResultPK testResultPK)
Creates a new test result with the primary key.
|
void |
destroy() |
com.qti.slayer.model.TestResult |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the test result with the primary key or returns
null if it could not be found. |
com.qti.slayer.model.TestResult |
fetchByPrimaryKey(com.qti.slayer.service.persistence.TestResultPK testResultPK)
Returns the test result with the primary key or returns
null if it could not be found. |
com.qti.slayer.model.TestResult |
fetchByUolId_First(long uolId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first test result in the ordered set where uolId = ?.
|
com.qti.slayer.model.TestResult |
fetchByUolId_Last(long uolId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last test result in the ordered set where uolId = ?.
|
com.qti.slayer.model.TestResult |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first test result in the ordered set where userId = ?.
|
com.qti.slayer.model.TestResult |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last test result in the ordered set where userId = ?.
|
java.util.List<com.qti.slayer.model.TestResult> |
findAll()
Returns all the test results.
|
java.util.List<com.qti.slayer.model.TestResult> |
findAll(int start,
int end)
Returns a range of all the test results.
|
java.util.List<com.qti.slayer.model.TestResult> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the test results.
|
com.qti.slayer.model.TestResult |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the test result with the primary key or throws a
NoSuchModelException if it could not be found. |
com.qti.slayer.model.TestResult |
findByPrimaryKey(com.qti.slayer.service.persistence.TestResultPK testResultPK)
Returns the test result with the primary key or throws a
NoSuchTestResultException if it could not be found. |
com.qti.slayer.model.TestResult |
findByUolId_First(long uolId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first test result in the ordered set where uolId = ?.
|
com.qti.slayer.model.TestResult |
findByUolId_Last(long uolId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last test result in the ordered set where uolId = ?.
|
com.qti.slayer.model.TestResult[] |
findByUolId_PrevAndNext(com.qti.slayer.service.persistence.TestResultPK testResultPK,
long uolId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the test results before and after the current test result in the ordered set where uolId = ?.
|
java.util.List<com.qti.slayer.model.TestResult> |
findByUolId(long uolId)
Returns all the test results where uolId = ?.
|
java.util.List<com.qti.slayer.model.TestResult> |
findByUolId(long uolId,
int start,
int end)
Returns a range of all the test results where uolId = ?.
|
java.util.List<com.qti.slayer.model.TestResult> |
findByUolId(long uolId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the test results where uolId = ?.
|
com.qti.slayer.model.TestResult |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first test result in the ordered set where userId = ?.
|
com.qti.slayer.model.TestResult |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last test result in the ordered set where userId = ?.
|
com.qti.slayer.model.TestResult[] |
findByUserId_PrevAndNext(com.qti.slayer.service.persistence.TestResultPK testResultPK,
long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the test results before and after the current test result in the ordered set where userId = ?.
|
java.util.List<com.qti.slayer.model.TestResult> |
findByUserId(long userId)
Returns all the test results where userId = ?.
|
java.util.List<com.qti.slayer.model.TestResult> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the test results where userId = ?.
|
java.util.List<com.qti.slayer.model.TestResult> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the test results where userId = ?.
|
com.qti.slayer.model.TestResult |
remove(java.io.Serializable primaryKey)
Removes the test result with the primary key from the database.
|
com.qti.slayer.model.TestResult |
remove(com.qti.slayer.service.persistence.TestResultPK testResultPK)
Removes the test result with the primary key from the database.
|
void |
removeAll()
Removes all the test results from the database.
|
void |
removeByUolId(long uolId)
Removes all the test results where uolId = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the test results where userId = ? from the database.
|
com.qti.slayer.model.TestResult |
updateImpl(com.qti.slayer.model.TestResult testResult,
boolean merge) |
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
public static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UOLID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UOLID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UOLID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public void cacheResult(com.qti.slayer.model.TestResult testResult)
cacheResult
in interface com.qti.slayer.service.persistence.TestResultPersistence
testResult
- the test resultpublic void cacheResult(java.util.List<com.qti.slayer.model.TestResult> testResults)
cacheResult
in interface com.qti.slayer.service.persistence.TestResultPersistence
testResults
- the test resultspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.TestResult>
clearCache
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.TestResult>
public void clearCache(com.qti.slayer.model.TestResult testResult)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.TestResult>
clearCache
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.TestResult>
public void clearCache(java.util.List<com.qti.slayer.model.TestResult> testResults)
clearCache
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.TestResult>
clearCache
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.TestResult>
public com.qti.slayer.model.TestResult create(com.qti.slayer.service.persistence.TestResultPK testResultPK)
create
in interface com.qti.slayer.service.persistence.TestResultPersistence
testResultPK
- the primary key for the new test resultpublic com.qti.slayer.model.TestResult remove(com.qti.slayer.service.persistence.TestResultPK testResultPK) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
remove
in interface com.qti.slayer.service.persistence.TestResultPersistence
testResultPK
- the primary key of the test resultcom.qti.slayer.NoSuchTestResultException
- if a test result with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult remove(java.io.Serializable primaryKey) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
remove
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.TestResult>
remove
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.TestResult>
primaryKey
- the primary key of the test resultcom.qti.slayer.NoSuchTestResultException
- if a test result with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult updateImpl(com.qti.slayer.model.TestResult testResult, boolean merge) throws com.liferay.portal.kernel.exception.SystemException
updateImpl
in interface com.qti.slayer.service.persistence.TestResultPersistence
updateImpl
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.TestResult>
com.liferay.portal.kernel.exception.SystemException
public com.qti.slayer.model.TestResult findByPrimaryKey(java.io.Serializable primaryKey) throws com.liferay.portal.NoSuchModelException, com.liferay.portal.kernel.exception.SystemException
NoSuchModelException
if it could not be found.findByPrimaryKey
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.TestResult>
findByPrimaryKey
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.TestResult>
primaryKey
- the primary key of the test resultcom.liferay.portal.NoSuchModelException
- if a test result with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult findByPrimaryKey(com.qti.slayer.service.persistence.TestResultPK testResultPK) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
NoSuchTestResultException
if it could not be found.findByPrimaryKey
in interface com.qti.slayer.service.persistence.TestResultPersistence
testResultPK
- the primary key of the test resultcom.qti.slayer.NoSuchTestResultException
- if a test result with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult fetchByPrimaryKey(java.io.Serializable primaryKey) throws com.liferay.portal.kernel.exception.SystemException
null
if it could not be found.fetchByPrimaryKey
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.TestResult>
fetchByPrimaryKey
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.TestResult>
primaryKey
- the primary key of the test resultnull
if a test result with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult fetchByPrimaryKey(com.qti.slayer.service.persistence.TestResultPK testResultPK) throws com.liferay.portal.kernel.exception.SystemException
null
if it could not be found.fetchByPrimaryKey
in interface com.qti.slayer.service.persistence.TestResultPersistence
testResultPK
- the primary key of the test resultnull
if a test result with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findByUserId(long userId) throws com.liferay.portal.kernel.exception.SystemException
findByUserId
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findByUserId(long userId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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.
findByUserId
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDstart
- the lower bound of the range of test resultsend
- the upper bound of the range of test results (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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.
findByUserId
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDstart
- the lower bound of the range of test resultsend
- the upper bound of the range of test results (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
findByUserId_First
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchTestResultException
- if a matching test result could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
fetchByUserId_First
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching test result could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
findByUserId_Last
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchTestResultException
- if a matching test result could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
fetchByUserId_Last
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching test result could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult[] findByUserId_PrevAndNext(com.qti.slayer.service.persistence.TestResultPK testResultPK, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
findByUserId_PrevAndNext
in interface com.qti.slayer.service.persistence.TestResultPersistence
testResultPK
- the primary key of the current test resultuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchTestResultException
- if a test result with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findByUolId(long uolId) throws com.liferay.portal.kernel.exception.SystemException
findByUolId
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findByUolId(long uolId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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.
findByUolId
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDstart
- the lower bound of the range of test resultsend
- the upper bound of the range of test results (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findByUolId(long uolId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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.
findByUolId
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDstart
- the lower bound of the range of test resultsend
- the upper bound of the range of test results (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult findByUolId_First(long uolId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
findByUolId_First
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchTestResultException
- if a matching test result could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult fetchByUolId_First(long uolId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
fetchByUolId_First
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching test result could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult findByUolId_Last(long uolId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
findByUolId_Last
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchTestResultException
- if a matching test result could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult fetchByUolId_Last(long uolId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
fetchByUolId_Last
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching test result could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.TestResult[] findByUolId_PrevAndNext(com.qti.slayer.service.persistence.TestResultPK testResultPK, long uolId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchTestResultException, com.liferay.portal.kernel.exception.SystemException
findByUolId_PrevAndNext
in interface com.qti.slayer.service.persistence.TestResultPersistence
testResultPK
- the primary key of the current test resultuolId
- the uol IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchTestResultException
- if a test result with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findAll() throws com.liferay.portal.kernel.exception.SystemException
findAll
in interface com.qti.slayer.service.persistence.TestResultPersistence
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findAll(int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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.
findAll
in interface com.qti.slayer.service.persistence.TestResultPersistence
start
- the lower bound of the range of test resultsend
- the upper bound of the range of test results (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.TestResult> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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.
findAll
in interface com.qti.slayer.service.persistence.TestResultPersistence
start
- the lower bound of the range of test resultsend
- the upper bound of the range of test results (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic void removeByUserId(long userId) throws com.liferay.portal.kernel.exception.SystemException
removeByUserId
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic void removeByUolId(long uolId) throws com.liferay.portal.kernel.exception.SystemException
removeByUolId
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic void removeAll() throws com.liferay.portal.kernel.exception.SystemException
removeAll
in interface com.qti.slayer.service.persistence.TestResultPersistence
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic int countByUserId(long userId) throws com.liferay.portal.kernel.exception.SystemException
countByUserId
in interface com.qti.slayer.service.persistence.TestResultPersistence
userId
- the user IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic int countByUolId(long uolId) throws com.liferay.portal.kernel.exception.SystemException
countByUolId
in interface com.qti.slayer.service.persistence.TestResultPersistence
uolId
- the uol IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic int countAll() throws com.liferay.portal.kernel.exception.SystemException
countAll
in interface com.qti.slayer.service.persistence.TestResultPersistence
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()