public class HibBaseLineDaoImpl extends com.jamasoftware.contour.data.util.hibernate4.HibernateDaoSupport implements BaseLineDao
Constructor and Description |
---|
HibBaseLineDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteBaseLine(BaseLine baseLine)
Logically deletes a
BaseLine . |
void |
deleteBaseLineGroup(Integer scopeId,
Integer refId,
Integer projectId)
Deletes the "Baseline Group" that all have the given scope id and ref id This function logically deletes this
group and baseline from the database.
|
BaseLine |
getBaseLine(Integer baseLineId) |
List<BaseLine> |
getBaseLineListForProject(Integer projectId)
Gets a list of active
BaseLine s. |
List<Integer> |
getDocumentIds(Integer baselineId)
Gets ids of the documents that are assosciated with a baseline.
|
List<Integer> |
getFullBaseLineListForProjects(List<Integer> projectIds)
Gets a full list of
BaseLine s, including active AND inactive ones. |
int |
getNumberActiveBaseLinesForProject(Integer projectId)
Total number of active baselines for the project.
|
int |
getNumberBaseLines(Integer scopeId,
Integer refId,
boolean activeOnly)
Gets the number of
BaseLine s with the given scope and ref id, and that are marked active. |
int |
getNumberDocumentsChanged(Integer baseLineId)
|
int |
getNumberDocumentsItemTypeChanged(Integer baseLineId) |
List<Signature> |
getSignaturesForBaseLine(Integer baselineId)
|
void |
physicallyDeleteBaseLine(BaseLine baseLine)
Physically deletes this
BaseLine from the database. |
void |
saveBaseLine(BaseLine baseLine) |
public void deleteBaseLine(BaseLine baseLine)
BaseLineDao
BaseLine
. See BaseLineDao.physicallyDeleteBaseLine(BaseLine baseLine)
to completely
delete from
the database.deleteBaseLine
in interface BaseLineDao
baseLine
- A BaseLine
to mark inactivepublic void deleteBaseLineGroup(Integer scopeId, Integer refId, Integer projectId)
BaseLineDao
deleteBaseLineGroup
in interface BaseLineDao
public void physicallyDeleteBaseLine(BaseLine baseLine)
BaseLineDao
BaseLine
from the database. See BaseLineDao.deleteBaseLine(BaseLine)
for a logical
delete.physicallyDeleteBaseLine
in interface BaseLineDao
baseLine
- A BaseLine
to deletepublic BaseLine getBaseLine(Integer baseLineId)
getBaseLine
in interface BaseLineDao
public List<BaseLine> getBaseLineListForProject(Integer projectId)
BaseLineDao
BaseLine
s. See #getFullBaseLineListForProject(Integer)
for getting inactive
AND active baselines.getBaseLineListForProject
in interface BaseLineDao
projectId
- The id of a Project
Project
public List<Integer> getFullBaseLineListForProjects(List<Integer> projectIds)
BaseLineDao
BaseLine
s, including active AND inactive ones. See
BaseLineDao.getBaseLineListForProject(Integer)
for only getting active baselinesgetFullBaseLineListForProjects
in interface BaseLineDao
projectIds
- The id of a Project
Project
public void saveBaseLine(BaseLine baseLine)
saveBaseLine
in interface BaseLineDao
public List<Integer> getDocumentIds(Integer baselineId)
BaseLineDao
getDocumentIds
in interface BaseLineDao
baselineId
- the Id of the baselinepublic int getNumberDocumentsChanged(Integer baseLineId)
BaseLineDao
Document
s that were versioned by this BaseLine
that now have a more recent
Version
.getNumberDocumentsChanged
in interface BaseLineDao
baseLineId
- The id of a BaseLine
Document
that have been updated (that is, there exists a Version
with the
same original document id, and a later version number)public int getNumberDocumentsItemTypeChanged(Integer baseLineId)
getNumberDocumentsItemTypeChanged
in interface BaseLineDao
public int getNumberBaseLines(Integer scopeId, Integer refId, boolean activeOnly)
BaseLineDao
BaseLine
s with the given scope and ref id, and that are marked active.getNumberBaseLines
in interface BaseLineDao
scopeId
- The scope idrefId
- The ref idpublic int getNumberActiveBaseLinesForProject(Integer projectId)
BaseLineDao
getNumberActiveBaseLinesForProject
in interface BaseLineDao
public List<Signature> getSignaturesForBaseLine(Integer baselineId)
BaseLineDao
BaseLine
(and any signatures associated with a Revision
that uses the BaseLine.getSignaturesForBaseLine
in interface BaseLineDao
baselineId
- The id of the baseline to get signatures forCopyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.