public interface UserDocDAO extends PersistentObjectDAO<UserDoc>
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(long docId,
long userId)
This method deletes an userdoc by the alternate key.
|
boolean |
deleteByDocId(long docId)
This method deletes all userdocs by the document id.
|
boolean |
deleteByUserId(long userId)
This method deletes all userdocs by the user id.
|
boolean |
exists(long docId,
long userId)
Check if an userdoc exists.
|
List<UserDoc> |
findByDocId(long docId)
Selects all userdocs for a given doc.
|
UserDoc |
findByMinDate(long userId)
Selects the oldest userdoc for a given user.
|
List<UserDoc> |
findByUserId(long userId)
Selects all userdocs for a given user.
|
int |
getCount(long userId)
Select the count of userdocs for an user.
|
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, storeint getCount(long userId)
boolean delete(long docId,
long userId)
boolean deleteByDocId(long docId)
boolean deleteByUserId(long userId)
UserDoc findByMinDate(long userId)
boolean exists(long docId,
long userId)
docId - ID of the documentuserId - Copyright © 2008-2014 Logical Objects. All Rights Reserved.