public class JiraIssuesMapper extends BambooStAXMappingListHelperAbstractImpl<LinkedJiraIssue,LinkedJiraIssue>
BambooStAXMappingHelper.None
transactionOperations
Constructor and Description |
---|
JiraIssuesMapper(org.hibernate.SessionFactory sessionFactory,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
void |
afterImportListItem(org.codehaus.staxmate.in.SMInputCursor cursor,
List<LinkedJiraIssue> list,
LinkedJiraIssue object,
long objectIndex,
org.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
|
String |
getXmlElementNodeName()
Returns local name of list element node
|
String |
getXmlRootNodeName()
Returns local name of the XML parent node that will contain exported/imported object's properties
|
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, importListXml, importListXml, importListXmlInTransaction
exportProperties, exportXml, exportXml, getSession, getSessionFactory, importProperties, importXml, importXml, isShouldExport, saveBambooObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportXml, importXml
public JiraIssuesMapper(org.hibernate.SessionFactory sessionFactory, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
@NotNull public String getXmlRootNodeName()
BambooStAXMappingHelper
getXmlRootNodeName
in interface BambooStAXMappingHelper<LinkedJiraIssue,LinkedJiraIssue>
getXmlRootNodeName
in class BambooStAXMappingListHelperAbstractImpl<LinkedJiraIssue,LinkedJiraIssue>
@NotNull public String getXmlElementNodeName()
getXmlElementNodeName
in class BambooStAXMappingListHelperAbstractImpl<LinkedJiraIssue,LinkedJiraIssue>
@NotNull protected LinkedJiraIssue createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws Exception
BambooStAXMappingHelperAbstractImpl
createItemInstance
in class BambooStAXMappingHelperAbstractImpl<LinkedJiraIssue,LinkedJiraIssue>
inputCursor
- input cursor that points to the parent node containing object propertiesXMLStreamException
- when something went wrongException
public void afterImportListItem(@NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull List<LinkedJiraIssue> list, @NotNull LinkedJiraIssue object, long objectIndex, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingListHelperAbstractImpl
afterImportListItem
in class BambooStAXMappingListHelperAbstractImpl<LinkedJiraIssue,LinkedJiraIssue>
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 objectException
- when something went wrongCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.