public class CapabilitySetMapper extends BambooStAXMappingListHelperAbstractImpl<Capability,Capability>
BambooStAXMappingHelper.None
transactionOperations
Modifier | Constructor and Description |
---|---|
protected |
CapabilitySetMapper(org.hibernate.SessionFactory sessionFactory,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
protected Capability |
createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
Creates empty instance of the imported object
|
<E extends Capability> |
exportListXml(org.hibernate.Session session,
org.codehaus.staxmate.out.SMOutputElement outputElement,
Iterable<E> list,
ExportDetailsBean exportDetailsBean)
Exports a collection to the XML.
|
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
|
afterImportListItem, beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, 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
protected CapabilitySetMapper(org.hibernate.SessionFactory sessionFactory, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
@NotNull public String getXmlRootNodeName()
BambooStAXMappingHelper
getXmlRootNodeName
in interface BambooStAXMappingHelper<Capability,Capability>
getXmlRootNodeName
in class BambooStAXMappingListHelperAbstractImpl<Capability,Capability>
@NotNull public String getXmlElementNodeName()
getXmlElementNodeName
in class BambooStAXMappingListHelperAbstractImpl<Capability,Capability>
@NotNull protected Capability createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor) throws Exception
BambooStAXMappingHelperAbstractImpl
createItemInstance
in class BambooStAXMappingHelperAbstractImpl<Capability,Capability>
inputCursor
- input cursor that points to the parent node containing object propertiesXMLStreamException
- when something went wrongException
public <E extends Capability> void exportListXml(@NotNull org.hibernate.Session session, @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull Iterable<E> list, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingListHelperAbstractImpl
exportListXml
in class BambooStAXMappingListHelperAbstractImpl<Capability,Capability>
session
- Hibernate session objectoutputElement
- parent node for collection root nodelist
- collection to be exportedException
- when something went wrongCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.