|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.backlog.BacklogDao
@Service(value="gh-backlogDao") public class BacklogDao
Handles all database access for Backlog
objects.
Field Summary | |
---|---|
static java.lang.String |
SERVICE
|
Constructor Summary | |
---|---|
BacklogDao()
|
Method Summary | |
---|---|
void |
create(Backlog backlog)
The given Backlog instance is persisted into the database. |
void |
delete(Backlog backlog)
Delete the given Backlog record. |
void |
deleteAll(XProject xproject)
Delete all records for an XProject . |
java.util.SortedSet<Backlog> |
findBy(XProject xproject)
|
java.util.SortedSet<Backlog> |
findBy(XProject xproject,
Backlog.Status... statuses)
|
java.util.SortedSet<Backlog> |
findBy(XProject xproject,
Backlog.Type type)
|
java.util.SortedSet<Backlog> |
findByName(java.lang.String name)
|
java.util.SortedSet<Backlog> |
getAll()
|
Backlog |
getUnscheduled(XProject xproject)
|
Backlog |
load(java.lang.Long id)
Load a Backlog for the given ID. |
void |
save(Backlog backlog)
Saves an existing Backlog to the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVICE
Constructor Detail |
---|
public BacklogDao()
Method Detail |
---|
public Backlog load(java.lang.Long id)
Backlog
entity for the given ID or null if none is found
java.lang.IllegalArgumentException
- if either parameter is nullpublic void create(Backlog backlog)
Backlog
instance is persisted into the database. A new ID will be generated and added to the instance, so once this method
returns, expect the ID to be present, e.g. for consecutive save operations.
com.atlassian.jira.exception.DataAccessException
- If for any reason a record with the new ID already existspublic void save(Backlog backlog)
java.lang.IllegalArgumentException
- if the XProject has no ID
com.atlassian.jira.exception.DataAccessException
- if the record we're trying to save no longer existspublic void delete(Backlog backlog)
Backlog
record. If there is no such record, nothing will happen.
java.lang.IllegalArgumentException
- if backlog or its ID are nullpublic void deleteAll(XProject xproject)
XProject
. If there is no such record, nothing will happen.
java.lang.IllegalArgumentException
- if xproject or its ID is nullpublic java.util.SortedSet<Backlog> findBy(XProject xproject)
public java.util.SortedSet<Backlog> findBy(XProject xproject, Backlog.Type type)
public java.util.SortedSet<Backlog> findBy(XProject xproject, Backlog.Status... statuses)
public Backlog getUnscheduled(XProject xproject)
public java.util.SortedSet<Backlog> findByName(java.lang.String name)
public java.util.SortedSet<Backlog> getAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |