com.atlassian.bamboo.migration.stream
Class JiraIssuesMapper

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

public class JiraIssuesMapper
extends BambooStAXMappingListHelperAbstractImpl<LinkedJiraIssue>


Constructor Summary
JiraIssuesMapper(net.sf.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 void afterImportListItem(org.codehaus.staxmate.in.SMInputCursor cursor, java.util.List<LinkedJiraIssue> list, LinkedJiraIssue object, long objectIndex, net.sf.hibernate.Session session)
          Called after parser completes parsing all child nodes in list's element node.
protected  LinkedJiraIssue createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
          Creates empty instance of the imported object
 java.lang.String getXmlElementNodeName()
           
 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
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, importListXml, importListXml, setListImportStrategy
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
commitClearSession, commitSession, exportProperties, exportXml, exportXml, getSession, getSessionFactory, importProperties, 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

JiraIssuesMapper

public JiraIssuesMapper(net.sf.hibernate.SessionFactory sessionFactory)
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

Returns:
local name of the XML parent node

getXmlElementNodeName

@NotNull
public java.lang.String getXmlElementNodeName()

createItemInstance

@NotNull
protected LinkedJiraIssue 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<LinkedJiraIssue>
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

afterImportListItem

public void afterImportListItem(@NotNull
                                org.codehaus.staxmate.in.SMInputCursor cursor,
                                @NotNull
                                java.util.List<LinkedJiraIssue> list,
                                @NotNull
                                LinkedJiraIssue object,
                                long objectIndex,
                                @NotNull
                                net.sf.hibernate.Session session)
                         throws java.lang.Exception
Description copied from class: BambooStAXMappingListHelperAbstractImpl
Called after parser completes parsing all child nodes in list's element node.

Overrides:
afterImportListItem in class BambooStAXMappingListHelperAbstractImpl<LinkedJiraIssue>
Parameters:
cursor - cursor pointing to the list's element opening node
list - list of elements being imported
object - object that has been imported
objectIndex - one-based index of the object being parsed
session - Hibernate session object
Throws:
java.lang.Exception - when something went wrong


Copyright © 2010 Atlassian. All Rights Reserved.