com.atlassian.bamboo.migration.stream
Class JiraIssuesMapper
java.lang.Object
com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T>
com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<LinkedJiraIssue>
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)
|
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 |
JiraIssuesMapper
public JiraIssuesMapper(net.sf.hibernate.SessionFactory sessionFactory)
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 nodelist
- list of elements being importedobject
- object that has been importedobjectIndex
- one-based index of the object being parsedsession
- Hibernate session object
- Throws:
java.lang.Exception
- when something went wrong
Copyright © 2011 Atlassian. All Rights Reserved.