|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.jagzilla.BaseQuery
net.sf.jagzilla.SystemQueryHibernateImpl
an implementation which will use hibernate to implement methods.
| Field Summary |
| Fields inherited from class net.sf.jagzilla.BaseQuery |
eventHandler, hibernateProperties, session, sessionFactory |
| Constructor Summary | |
SystemQueryHibernateImpl()
|
|
SystemQueryHibernateImpl(java.util.Properties p)
|
|
| Method Summary | |
void |
addCc(int bugId,
int profileId)
adds a profile to the cc list of a bug. |
void |
finalize()
|
java.util.List |
getAllComponents()
gets a list of all components in the system regardless of which product they belong to. |
BugQuery |
getBugQuery()
gets an instance of the BugQuery with transport configuration of actual implementation. |
java.util.List |
getComponentNames(java.lang.String product)
gets a list of component names. |
java.util.List |
getComponents(java.lang.String product)
gets all components for a product. |
java.util.List |
getMilestoneNames(java.lang.String product)
gets a list of milestone names for the given product. |
java.util.List |
getMilestones(java.lang.String product)
gets all milestones for a given product. |
java.util.List |
getProductNames()
gets a List of strings of product names in database. |
java.util.List |
getProducts()
gets a List of Products in database. |
Profile |
getProfile(int userId)
gets the profile for a given user id. |
java.util.List |
getProfiles()
gets all profiles in database. |
int |
getUserId(java.lang.String login)
gets the id of the user given it's login. |
java.util.List |
getVersionNames(java.lang.String product)
gets a list of version names for a given product |
java.util.List |
getVersions(java.lang.String product)
gets all versions for a given product. |
void |
removeCc(int bugId,
int profileId)
removes a profile from the cc list of a bug. |
| Methods inherited from class net.sf.jagzilla.BaseQuery |
bugExists, componentExists, continueIfProductExists, continueIfResolutionExists, continueIfStatusExists, continueIfUsersExists, getEventHandler, getFieldId, getNewSession, locateBug, locateComponent, locateProduct, locateProfile, milestoneExists, priorityExists, productExists, queryCountValue, resolutionExists, setHibernateProperties, severityExists, statusExists, userExists, versionExists |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SystemQueryHibernateImpl(java.util.Properties p)
throws HibernateException
public SystemQueryHibernateImpl()
throws HibernateException
| Method Detail |
public java.util.List getProducts()
throws JagzillaException
SystemQuery
getProducts in interface SystemQueryJagzillaException - if an error occursProduct,
Product
public java.util.List getProductNames()
throws JagzillaException
SystemQuery
getProductNames in interface SystemQueryJagzillaException - if an error occurs
public java.util.List getComponents(java.lang.String product)
throws JagzillaException,
NoSuchProductException
SystemQuery
getComponents in interface SystemQueryproduct - the product for which components are queried
NoSuchProductException - if the product specified in product cannot be found
JagzillaException - if an error occursComponent,
Component
public java.util.List getComponentNames(java.lang.String product)
throws JagzillaException
SystemQuery
getComponentNames in interface SystemQueryproduct -
JagzillaException
public java.util.List getVersions(java.lang.String product)
throws JagzillaException
SystemQuery
getVersions in interface SystemQueryproduct - to query versions from
JagzillaException - if an error occursVersion,
Version
public java.util.List getVersionNames(java.lang.String product)
throws JagzillaException
SystemQuery
getVersionNames in interface SystemQueryproduct -
JagzillaException
public java.util.List getMilestones(java.lang.String product)
throws JagzillaException
SystemQuery
getMilestones in interface SystemQueryproduct - to query milestones from
JagzillaException - if an error occursMilestone
public java.util.List getMilestoneNames(java.lang.String product)
throws JagzillaException
SystemQuery
getMilestoneNames in interface SystemQueryproduct -
JagzillaException
public java.util.List getProfiles()
throws JagzillaException
SystemQuery
getProfiles in interface SystemQueryJagzillaException - if an error occursProfile
public Profile getProfile(int userId)
throws JagzillaException
SystemQuery
getProfile in interface SystemQueryuserId -
JagzillaException - if an error occursProfilepublic void finalize()
public java.util.List getAllComponents()
throws JagzillaException
SystemQuery
getAllComponents in interface SystemQueryJagzillaExceptionComponent
public int getUserId(java.lang.String login)
throws JagzillaException,
NoSuchProfileException,
InconsistencyException
SystemQuery
getUserId in interface SystemQuerylogin - the user login to search
JagzillaException - if an error occurs
InconsistencyException - if there is more than one user with the specified login
NoSuchProfileException - if there is no user with the specified login
public void addCc(int bugId,
int profileId)
throws JagzillaException,
NoSuchBugException,
NoSuchProfileException
SystemQuery
addCc in interface SystemQuerybugId - id of the bugprofileId - id of the profile to be added to the cclist
NoSuchProfileException - if the profile id cannot be found
JagzillaException - if an error occurs
NoSuchBugException - if the bug cannot be found
public void removeCc(int bugId,
int profileId)
throws JagzillaException,
NoSuchBugException,
NoSuchProfileException
SystemQuery
removeCc in interface SystemQuerybugId - id of the bugprofileId - id of the profile to be added to the cclist
NoSuchProfileException - if the profile id cannot be found
NoSuchBugException - if the bug cannot be found
JagzillaException - if an error occurs
public BugQuery getBugQuery()
throws JagzillaException
SystemQuery
getBugQuery in interface SystemQueryJagzillaException - if an error occursBugQuery
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||