com.atlassian.bamboo.migration.stream
Class PlanResultKeyListMapper

java.lang.Object
  extended by com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T>
      extended by com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<PlanResultKey>
          extended by com.atlassian.bamboo.migration.stream.PlanResultKeyListMapper
All Implemented Interfaces:
BambooStAXMappingHelper<PlanResultKey>

public class PlanResultKeyListMapper
extends BambooStAXMappingListHelperAbstractImpl<PlanResultKey>


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
BambooStAXMappingHelper.None
 
Constructor Summary
PlanResultKeyListMapper(net.sf.hibernate.SessionFactory sessionFactory, java.lang.String rootNodeName)
           
 
Method Summary
protected  PlanResultKey createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
          Creates empty instance of the imported object
protected  void exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement, PlanResultKey planResultKey, net.sf.hibernate.Session session, ExportDetailsBean exportDetailsBean)
          Export object properties.
 java.lang.String getXmlRootNodeName()
          Returns local name of the XML parent node that will contain exported/imported object's properties
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl
afterImportListItem, beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, getXmlElementNodeName, importListXml, importListXml
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
commitClearSession, commitSession, exportXml, exportXml, getSession, getSessionFactory, importProperties, importXml, importXml, isShouldExport, 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

PlanResultKeyListMapper

public PlanResultKeyListMapper(net.sf.hibernate.SessionFactory sessionFactory,
                               @NotNull
                               java.lang.String rootNodeName)
Method Detail

getXmlRootNodeName

@NotNull
public java.lang.String getXmlRootNodeName()
Description copied from interface: BambooStAXMappingHelper
Returns local name of the XML parent node that will contain exported/imported object's properties

Specified by:
getXmlRootNodeName in interface BambooStAXMappingHelper<PlanResultKey>
Overrides:
getXmlRootNodeName in class BambooStAXMappingListHelperAbstractImpl<PlanResultKey>
Returns:
local name of the XML parent node

createItemInstance

@NotNull
protected PlanResultKey createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
                                    throws java.lang.Exception
Description copied from class: BambooStAXMappingHelperAbstractImpl
Creates empty instance of the imported object

Specified by:
createItemInstance in class BambooStAXMappingHelperAbstractImpl<PlanResultKey>
Parameters:
inputCursor - input cursor that points to the parent node containing object properties
Returns:
empty instance of the imported object
Throws:
javax.xml.stream.XMLStreamException - when something went wrong
java.lang.Exception

exportProperties

protected void exportProperties(@NotNull
                                org.codehaus.staxmate.out.SMOutputElement outputElement,
                                @NotNull
                                PlanResultKey planResultKey,
                                @NotNull
                                net.sf.hibernate.Session session,
                                ExportDetailsBean exportDetailsBean)
                         throws java.lang.Exception
Description copied from class: BambooStAXMappingHelperAbstractImpl
Export object properties. Implementing classed should override this method to export custom properties.

Overrides:
exportProperties in class BambooStAXMappingHelperAbstractImpl<PlanResultKey>
Parameters:
outputElement - the parent node
planResultKey - object being exported
session - Hibernate session object
Throws:
java.lang.Exception - when something went wrong


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.