public class AssignmentPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.Assignment>
implements com.qti.slayer.service.persistence.AssignmentPersistence
Caching information and settings can be found in portal.properties
AssignmentPersistence
,
AssignmentUtil
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_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_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_USERID |
Constructor and Description |
---|
AssignmentPersistenceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Initializes the assignment persistence.
|
void |
cacheResult(com.qti.slayer.model.Assignment assignment)
Caches the assignment in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<com.qti.slayer.model.Assignment> assignments)
Caches the assignments in the entity cache if it is enabled.
|
void |
clearCache()
Clears the cache for all assignments.
|
void |
clearCache(com.qti.slayer.model.Assignment assignment)
Clears the cache for the assignment.
|
void |
clearCache(java.util.List<com.qti.slayer.model.Assignment> assignments) |
int |
countAll()
Returns the number of assignments.
|
int |
countByUserId(long userId)
Returns the number of assignments where userId = ?.
|
com.qti.slayer.model.Assignment |
create(com.qti.slayer.service.persistence.AssignmentPK assignmentPK)
Creates a new assignment with the primary key.
|
void |
destroy() |
com.qti.slayer.model.Assignment |
fetchByPrimaryKey(com.qti.slayer.service.persistence.AssignmentPK assignmentPK)
Returns the assignment with the primary key or returns
null if it could not be found. |
com.qti.slayer.model.Assignment |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the assignment with the primary key or returns
null if it could not be found. |
com.qti.slayer.model.Assignment |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first assignment in the ordered set where userId = ?.
|
com.qti.slayer.model.Assignment |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last assignment in the ordered set where userId = ?.
|
java.util.List<com.qti.slayer.model.Assignment> |
findAll()
Returns all the assignments.
|
java.util.List<com.qti.slayer.model.Assignment> |
findAll(int start,
int end)
Returns a range of all the assignments.
|
java.util.List<com.qti.slayer.model.Assignment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the assignments.
|
com.qti.slayer.model.Assignment |
findByPrimaryKey(com.qti.slayer.service.persistence.AssignmentPK assignmentPK)
Returns the assignment with the primary key or throws a
NoSuchAssignmentException if it could not be found. |
com.qti.slayer.model.Assignment |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the assignment with the primary key or throws a
NoSuchModelException if it could not be found. |
com.qti.slayer.model.Assignment |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first assignment in the ordered set where userId = ?.
|
com.qti.slayer.model.Assignment |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last assignment in the ordered set where userId = ?.
|
com.qti.slayer.model.Assignment[] |
findByUserId_PrevAndNext(com.qti.slayer.service.persistence.AssignmentPK assignmentPK,
long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the assignments before and after the current assignment in the ordered set where userId = ?.
|
java.util.List<com.qti.slayer.model.Assignment> |
findByUserId(long userId)
Returns all the assignments where userId = ?.
|
java.util.List<com.qti.slayer.model.Assignment> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the assignments where userId = ?.
|
java.util.List<com.qti.slayer.model.Assignment> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the assignments where userId = ?.
|
com.qti.slayer.model.Assignment |
remove(com.qti.slayer.service.persistence.AssignmentPK assignmentPK)
Removes the assignment with the primary key from the database.
|
com.qti.slayer.model.Assignment |
remove(java.io.Serializable primaryKey)
Removes the assignment with the primary key from the database.
|
void |
removeAll()
Removes all the assignments from the database.
|
void |
removeByUserId(long userId)
Removes all the assignments where userId = ? from the database.
|
com.qti.slayer.model.Assignment |
updateImpl(com.qti.slayer.model.Assignment assignment,
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_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.Assignment assignment)
cacheResult
in interface com.qti.slayer.service.persistence.AssignmentPersistence
assignment
- the assignmentpublic void cacheResult(java.util.List<com.qti.slayer.model.Assignment> assignments)
cacheResult
in interface com.qti.slayer.service.persistence.AssignmentPersistence
assignments
- the assignmentspublic 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.Assignment>
clearCache
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.Assignment>
public void clearCache(com.qti.slayer.model.Assignment assignment)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.Assignment>
clearCache
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.Assignment>
public void clearCache(java.util.List<com.qti.slayer.model.Assignment> assignments)
clearCache
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.Assignment>
clearCache
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.Assignment>
public com.qti.slayer.model.Assignment create(com.qti.slayer.service.persistence.AssignmentPK assignmentPK)
create
in interface com.qti.slayer.service.persistence.AssignmentPersistence
assignmentPK
- the primary key for the new assignmentpublic com.qti.slayer.model.Assignment remove(com.qti.slayer.service.persistence.AssignmentPK assignmentPK) throws com.qti.slayer.NoSuchAssignmentException, com.liferay.portal.kernel.exception.SystemException
remove
in interface com.qti.slayer.service.persistence.AssignmentPersistence
assignmentPK
- the primary key of the assignmentcom.qti.slayer.NoSuchAssignmentException
- if a assignment with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment remove(java.io.Serializable primaryKey) throws com.qti.slayer.NoSuchAssignmentException, com.liferay.portal.kernel.exception.SystemException
remove
in interface com.liferay.portal.service.persistence.BasePersistence<com.qti.slayer.model.Assignment>
remove
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.Assignment>
primaryKey
- the primary key of the assignmentcom.qti.slayer.NoSuchAssignmentException
- if a assignment with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment updateImpl(com.qti.slayer.model.Assignment assignment, boolean merge) throws com.liferay.portal.kernel.exception.SystemException
updateImpl
in interface com.qti.slayer.service.persistence.AssignmentPersistence
updateImpl
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.Assignment>
com.liferay.portal.kernel.exception.SystemException
public com.qti.slayer.model.Assignment 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.Assignment>
findByPrimaryKey
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.Assignment>
primaryKey
- the primary key of the assignmentcom.liferay.portal.NoSuchModelException
- if a assignment with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment findByPrimaryKey(com.qti.slayer.service.persistence.AssignmentPK assignmentPK) throws com.qti.slayer.NoSuchAssignmentException, com.liferay.portal.kernel.exception.SystemException
NoSuchAssignmentException
if it could not be found.findByPrimaryKey
in interface com.qti.slayer.service.persistence.AssignmentPersistence
assignmentPK
- the primary key of the assignmentcom.qti.slayer.NoSuchAssignmentException
- if a assignment with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment 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.Assignment>
fetchByPrimaryKey
in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.qti.slayer.model.Assignment>
primaryKey
- the primary key of the assignmentnull
if a assignment with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment fetchByPrimaryKey(com.qti.slayer.service.persistence.AssignmentPK assignmentPK) throws com.liferay.portal.kernel.exception.SystemException
null
if it could not be found.fetchByPrimaryKey
in interface com.qti.slayer.service.persistence.AssignmentPersistence
assignmentPK
- the primary key of the assignmentnull
if a assignment 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.Assignment> findByUserId(long userId) throws com.liferay.portal.kernel.exception.SystemException
findByUserId
in interface com.qti.slayer.service.persistence.AssignmentPersistence
userId
- the user IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.Assignment> 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.AssignmentPersistence
userId
- the user IDstart
- the lower bound of the range of assignmentsend
- the upper bound of the range of assignments (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.Assignment> 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.AssignmentPersistence
userId
- the user IDstart
- the lower bound of the range of assignmentsend
- the upper bound of the range of assignments (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.Assignment findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchAssignmentException, com.liferay.portal.kernel.exception.SystemException
findByUserId_First
in interface com.qti.slayer.service.persistence.AssignmentPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchAssignmentException
- if a matching assignment could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment 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.AssignmentPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching assignment could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchAssignmentException, com.liferay.portal.kernel.exception.SystemException
findByUserId_Last
in interface com.qti.slayer.service.persistence.AssignmentPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchAssignmentException
- if a matching assignment could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment 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.AssignmentPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching assignment could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic com.qti.slayer.model.Assignment[] findByUserId_PrevAndNext(com.qti.slayer.service.persistence.AssignmentPK assignmentPK, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.qti.slayer.NoSuchAssignmentException, com.liferay.portal.kernel.exception.SystemException
findByUserId_PrevAndNext
in interface com.qti.slayer.service.persistence.AssignmentPersistence
assignmentPK
- the primary key of the current assignmentuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)com.qti.slayer.NoSuchAssignmentException
- if a assignment 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.Assignment> findAll() throws com.liferay.portal.kernel.exception.SystemException
findAll
in interface com.qti.slayer.service.persistence.AssignmentPersistence
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.Assignment> 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.AssignmentPersistence
start
- the lower bound of the range of assignmentsend
- the upper bound of the range of assignments (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic java.util.List<com.qti.slayer.model.Assignment> 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.AssignmentPersistence
start
- the lower bound of the range of assignmentsend
- the upper bound of the range of assignments (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.AssignmentPersistence
userId
- the user 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.AssignmentPersistence
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.AssignmentPersistence
userId
- the user 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.AssignmentPersistence
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()