public class ChainResultMapper extends AbstractResultSummaryMapper<ChainResultsSummary>
BambooStAXMappingHelper.None
buildable, buildResultsSummaryDao, buildResultWarningSummaryMapper, BUILDSUMMARY_XML_MARKED_FOR_DELETION, labelMap, project, variableContextBaselineDao
transactionOperations
Modifier | Constructor and Description |
---|---|
protected |
ChainResultMapper(org.hibernate.SessionFactory sessionFactory,
Chain chain,
BuildResultsSummaryDao buildResultsSummaryDao,
VariableContextBaselineDao variableContextBaselineDao,
BuildResultWarningSummaryMapper warningSummaryMapper,
ResultsSummaryManager resultsSummaryManager,
Map<Long,Label> labelMap,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
protected ChainResultsSummary |
createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
Creates empty instance of the imported object
|
<E extends ChainResultsSummary> |
exportListXml(org.hibernate.Session session,
org.codehaus.staxmate.out.SMOutputElement outputElement,
Iterable<E> iterable,
ExportDetailsBean exportDetailsBean)
Exports a collection to the XML.
|
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
ChainResultsSummary chainResult,
org.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
Export object properties.
|
protected void |
importProperties(ChainResultsSummary chainResult,
org.codehaus.staxmate.in.SMInputCursor inputCursor,
org.hibernate.Session session)
Import properties to the object.
|
afterImportListItem, getLabels
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, flushIfNeeded, getXmlElementNodeName, getXmlRootNodeName, importListXml, importListXml, importListXmlInTransaction
exportXml, exportXml, getSession, getSessionFactory, importXml, importXml, isShouldExport, saveBambooObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportXml, importXml
protected ChainResultMapper(org.hibernate.SessionFactory sessionFactory, Chain chain, BuildResultsSummaryDao buildResultsSummaryDao, VariableContextBaselineDao variableContextBaselineDao, BuildResultWarningSummaryMapper warningSummaryMapper, ResultsSummaryManager resultsSummaryManager, Map<Long,Label> labelMap, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
protected void exportProperties(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull ChainResultsSummary chainResult, @NotNull org.hibernate.Session session, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingHelperAbstractImpl
exportProperties
in class AbstractResultSummaryMapper<ChainResultsSummary>
outputElement
- the parent nodechainResult
- object being exportedsession
- Hibernate session objectException
- when something went wrongprotected void importProperties(@NotNull ChainResultsSummary chainResult, @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingHelperAbstractImpl
importProperties
in class AbstractResultSummaryMapper<ChainResultsSummary>
chainResult
- object being importedinputCursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session objectException
- when something went wrongpublic <E extends ChainResultsSummary> void exportListXml(@NotNull org.hibernate.Session session, @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull Iterable<E> iterable, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingListHelperAbstractImpl
exportListXml
in class BambooStAXMappingListHelperAbstractImpl<ChainResultsSummary,ChainResultsSummary>
session
- Hibernate session objectoutputElement
- parent node for collection root nodeiterable
- collection to be exportedException
- when something went wrong@NotNull protected ChainResultsSummary createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws Exception
BambooStAXMappingHelperAbstractImpl
createItemInstance
in class BambooStAXMappingHelperAbstractImpl<ChainResultsSummary,ChainResultsSummary>
inputCursor
- input cursor that points to the parent node containing object propertiesXMLStreamException
- when something went wrongException
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.