public abstract class AbstractResultSummaryMapper<T extends ResultsSummary> extends BambooStAXMappingListHelperAbstractImpl<T>
BambooStAXMappingHelper.None
Modifier and Type | Field and Description |
---|---|
protected Plan |
buildable |
protected BuildResultsSummaryDao |
buildResultsSummaryDao |
protected static String |
BUILDSUMMARY_XML_MARKED_FOR_DELETION |
transactionOperations
Constructor and Description |
---|
AbstractResultSummaryMapper(org.hibernate.SessionFactory sessionFactory,
BuildResultsSummaryDao buildResultsSummaryDao,
Plan buildable,
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.
|
<E extends T> |
exportListXml(org.hibernate.Session session,
org.codehaus.staxmate.out.SMOutputElement outputElement,
Iterable<E> chainResultsSummaryIterable,
ExportDetailsBean exportDetailsBean)
Exports a collection to the XML.
|
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, 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 BuildResultsSummaryDao buildResultsSummaryDao
public AbstractResultSummaryMapper(org.hibernate.SessionFactory sessionFactory, BuildResultsSummaryDao buildResultsSummaryDao, Plan buildable, 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>
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>
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 <E extends T> void exportListXml(@NotNull org.hibernate.Session session, @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull Iterable<E> chainResultsSummaryIterable, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingListHelperAbstractImpl
exportListXml
in class BambooStAXMappingListHelperAbstractImpl<T extends ResultsSummary>
session
- Hibernate session objectoutputElement
- parent node for collection root nodechainResultsSummaryIterable
- collection to be exportedException
- 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>
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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.