|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T> com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<ExtendedBuildResultsSummary> com.atlassian.bamboo.migration.stream.BuildResultSummaryMapper
public class BuildResultSummaryMapper
Constructor Summary | |
---|---|
BuildResultSummaryMapper(net.sf.hibernate.SessionFactory sessionFactory,
BuildResultsSummaryDao buildResultsSummaryDao,
Project project,
Build build,
java.util.Map<java.lang.Long,Label> labelMap,
java.util.Map<java.lang.Long,Author> authorMap)
|
Method Summary | |
---|---|
void |
afterImportListItem(org.codehaus.staxmate.in.SMInputCursor inputCursor,
java.util.List<ExtendedBuildResultsSummary> list,
ExtendedBuildResultsSummary buildResultsSummary,
long objectIndex,
net.sf.hibernate.Session session)
Called after parser completes parsing all child nodes in list's element node. |
protected ExtendedBuildResultsSummary |
createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
Creates empty instance of the imported object |
void |
exportListXml(net.sf.hibernate.Session session,
org.codehaus.staxmate.out.SMOutputElement outputElement,
java.lang.Iterable<ExtendedBuildResultsSummary> extendedBuildResultsSummaryIterable)
Exports a collection to the XML. |
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
ExtendedBuildResultsSummary buildResultsSummary,
net.sf.hibernate.Session session)
Export object properties. |
java.util.List<Labelling> |
getLabels()
|
java.lang.String |
getXmlElementNodeName()
|
java.lang.String |
getXmlRootNodeName()
Returns local name of the XML parent node that will contain exported/imported object's properties |
protected void |
importProperties(ExtendedBuildResultsSummary buildResultSummary,
org.codehaus.staxmate.in.SMInputCursor cursor,
net.sf.hibernate.Session session)
Import properties to the object. |
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl |
---|
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, importListXml, importListXml, setListImportStrategy |
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl |
---|
commitClearSession, commitSession, exportXml, exportXml, getSession, getSessionFactory, importXml, importXml, saveBambooObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper |
---|
exportXml, importXml |
Constructor Detail |
---|
public BuildResultSummaryMapper(net.sf.hibernate.SessionFactory sessionFactory, BuildResultsSummaryDao buildResultsSummaryDao, Project project, Build build, java.util.Map<java.lang.Long,Label> labelMap, java.util.Map<java.lang.Long,Author> authorMap)
Method Detail |
---|
protected void exportProperties(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull ExtendedBuildResultsSummary buildResultsSummary, @NotNull net.sf.hibernate.Session session) throws java.lang.Exception
BambooStAXMappingHelperAbstractImpl
exportProperties
in class BambooStAXMappingHelperAbstractImpl<ExtendedBuildResultsSummary>
outputElement
- the parent nodebuildResultsSummary
- object being exportedsession
- Hibernate session object
java.lang.Exception
- when something went wrongprotected void importProperties(@NotNull ExtendedBuildResultsSummary buildResultSummary, @NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull net.sf.hibernate.Session session) throws java.lang.Exception
BambooStAXMappingHelperAbstractImpl
importProperties
in class BambooStAXMappingHelperAbstractImpl<ExtendedBuildResultsSummary>
buildResultSummary
- object being importedcursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session object
java.lang.Exception
- when something went wrong@NotNull public java.lang.String getXmlRootNodeName()
BambooStAXMappingHelper
public void afterImportListItem(@NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull java.util.List<ExtendedBuildResultsSummary> list, @NotNull ExtendedBuildResultsSummary buildResultsSummary, long objectIndex, @NotNull net.sf.hibernate.Session session) throws java.lang.Exception
BambooStAXMappingListHelperAbstractImpl
afterImportListItem
in class BambooStAXMappingListHelperAbstractImpl<ExtendedBuildResultsSummary>
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 object
java.lang.Exception
- when something went wrong@NotNull public java.lang.String getXmlElementNodeName()
public java.util.List<Labelling> getLabels()
@NotNull protected ExtendedBuildResultsSummary createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws java.lang.Exception
BambooStAXMappingHelperAbstractImpl
createItemInstance
in class BambooStAXMappingHelperAbstractImpl<ExtendedBuildResultsSummary>
inputCursor
- input cursor that points to the parent node containing object properties
javax.xml.stream.XMLStreamException
- when something went wrong
java.lang.Exception
public void exportListXml(@NotNull net.sf.hibernate.Session session, @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull java.lang.Iterable<ExtendedBuildResultsSummary> extendedBuildResultsSummaryIterable) throws java.lang.Exception
BambooStAXMappingListHelperAbstractImpl
exportListXml
in class BambooStAXMappingListHelperAbstractImpl<ExtendedBuildResultsSummary>
session
- Hibernate session objectoutputElement
- parent node for collection root nodeextendedBuildResultsSummaryIterable
- collection to be exported
java.lang.Exception
- when something went wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |