Class CommentRootMapper
java.lang.Object
com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<Comment,Comment>
com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<Comment,Comment>
com.atlassian.bamboo.migration.stream.CommentMapper
com.atlassian.bamboo.migration.stream.CommentRootMapper
- All Implemented Interfaces:
BambooRootMapper,BambooStAXMappingHelper<Comment,,Comment> BambooStAXRootMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
BambooStAXMappingHelper.None -
Field Summary
Fields inherited from class com.atlassian.bamboo.migration.stream.CommentMapper
COMMENTS_XML_ROOTFields inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
transactionOperations -
Constructor Summary
ConstructorsConstructorDescriptionCommentRootMapper(org.hibernate.SessionFactory sessionFactory, @NotNull CommentDao commentDao, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterImportListItem(@NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull List<Comment> list, @NotNull Comment object, long objectIndex, @NotNull org.hibernate.Session session) Called after parser completes parsing all child nodes in list's element node.voidexportData(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, ExportDetailsBean exportDetailsBean) Perform data exportvoidimportData(@NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor) Perform data importMethods inherited from class com.atlassian.bamboo.migration.stream.CommentMapper
createItemInstance, exportProperties, getXmlElementNodeName, getXmlRootNodeName, importPropertiesMethods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, importListXml, importListXml, importListXmlInTransactionMethods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
exportXml, exportXml, getSession, getSessionFactory, importXml, importXml, isShouldExport, saveBambooObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.migration.BambooRootMapper
isShouldExportMethods inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
exportXml, importXmlMethods inherited from interface com.atlassian.bamboo.migration.BambooStAXRootMapper
getXmlRootNodeName
-
Constructor Details
-
CommentRootMapper
public CommentRootMapper(org.hibernate.SessionFactory sessionFactory, @NotNull @NotNull CommentDao commentDao, @NotNull @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
-
-
Method Details
-
afterImportListItem
public void afterImportListItem(@NotNull @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull @NotNull List<Comment> list, @NotNull @NotNull Comment object, long objectIndex, @NotNull @NotNull org.hibernate.Session session) throws Exception Description copied from class:BambooStAXMappingListHelperAbstractImplCalled after parser completes parsing all child nodes in list's element node.- Overrides:
afterImportListItemin classBambooStAXMappingListHelperAbstractImpl<Comment,Comment> - Parameters:
inputCursor- 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:
Exception- when something went wrong
-
exportData
public void exportData(@NotNull @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, ExportDetailsBean exportDetailsBean) throws Exception Description copied from interface:BambooStAXRootMapperPerform data export- Specified by:
exportDatain interfaceBambooStAXRootMapper- Parameters:
outputElement- parent node for mapper's root node, usually root element of the XML fileexportDetailsBean-- Throws:
Exception- when something went wrong
-
importData
public void importData(@NotNull @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor) throws Exception Description copied from interface:BambooStAXRootMapperPerform data import- Specified by:
importDatain interfaceBambooStAXRootMapper- Parameters:
inputCursor- mapper's root node, usually child of root element of the XML file- Throws:
Exception- when something went wrong
-