public abstract class AbstractResultSummaryMapper<T extends ResultsSummary> extends BambooStAXMappingListHelperAbstractImpl<T,T>
BambooStAXMappingHelper.None
Modifier and Type | Field and Description |
---|---|
protected Plan |
buildable |
protected BuildResultsSummaryDao |
buildResultsSummaryDao |
protected BuildResultWarningSummaryMapper |
buildResultWarningSummaryMapper |
protected static String |
BUILDSUMMARY_XML_MARKED_FOR_DELETION |
protected Map<Long,Label> |
labelMap |
protected Project |
project |
protected VariableContextBaselineDao |
variableContextBaselineDao |
transactionOperations
Constructor and Description |
---|
AbstractResultSummaryMapper(org.hibernate.SessionFactory sessionFactory,
BuildResultsSummaryDao buildResultsSummaryDao,
VariableContextBaselineDao variableContextBaselineDao,
BuildResultWarningSummaryMapper buildResultWarningSummaryMapper,
Plan buildable,
Project project,
Map<Long,Label> labelMap,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
void |
afterImportListItem(org.codehaus.staxmate.in.SMInputCursor inputCursor,
List<T> list,
T buildResultsSummary,
long objectIndex,
org.hibernate.Session session)
Called after parser completes parsing all child nodes in list's element node.
|
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
T buildResultsSummary,
org.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
Export object properties.
|
List<Labelling> |
getLabels() |
protected void |
importProperties(T buildResultSummary,
org.codehaus.staxmate.in.SMInputCursor cursor,
org.hibernate.Session session)
Import properties to the object.
|
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, getXmlElementNodeName, getXmlRootNodeName, importListXml, importListXml, importListXmlInTransaction
createItemInstance, exportXml, exportXml, getSession, getSessionFactory, importXml, importXml, isShouldExport, saveBambooObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportXml, importXml
protected static final String BUILDSUMMARY_XML_MARKED_FOR_DELETION
protected final Plan buildable
protected final Project project
protected final BuildResultsSummaryDao buildResultsSummaryDao
protected final VariableContextBaselineDao variableContextBaselineDao
protected final BuildResultWarningSummaryMapper buildResultWarningSummaryMapper
public AbstractResultSummaryMapper(org.hibernate.SessionFactory sessionFactory, BuildResultsSummaryDao buildResultsSummaryDao, VariableContextBaselineDao variableContextBaselineDao, BuildResultWarningSummaryMapper buildResultWarningSummaryMapper, Plan buildable, Project project, Map<Long,Label> labelMap, org.springframework.transaction.support.TransactionOperations transactionOperations)
protected void exportProperties(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull T buildResultsSummary, @NotNull org.hibernate.Session session, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingHelperAbstractImpl
exportProperties
in class BambooStAXMappingHelperAbstractImpl<T extends ResultsSummary,T extends ResultsSummary>
outputElement
- the parent nodebuildResultsSummary
- object being exportedsession
- Hibernate session objectException
- when something went wrongprotected void importProperties(@NotNull T buildResultSummary, @NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingHelperAbstractImpl
importProperties
in class BambooStAXMappingHelperAbstractImpl<T extends ResultsSummary,T extends ResultsSummary>
buildResultSummary
- object being importedcursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session objectException
- when something went wrongpublic void afterImportListItem(@NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull List<T> list, @NotNull T buildResultsSummary, long objectIndex, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingListHelperAbstractImpl
afterImportListItem
in class BambooStAXMappingListHelperAbstractImpl<T extends ResultsSummary,T extends ResultsSummary>
inputCursor
- cursor pointing to the list's element opening nodelist
- list of elements being importedbuildResultsSummary
- object that has been importedobjectIndex
- one-based index of the object being parsedsession
- Hibernate session objectException
- when something went wrongCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.