public class ChainMapper extends AbstractChainMapper<Chain>
BambooStAXMappingHelper.None
Modifier and Type | Field and Description |
---|---|
static String |
XML_NODE |
static String |
XML_ROOT |
PLAN_XML_SPECS_SOURCE
authorMap, labelMap, labels, notificationSetMapper, planBuildNumbers, planRepositoryLinkDao, planVcsRevisionHistoryDao, project, repositoryDefinitionDao
transactionOperations
Constructor and Description |
---|
ChainMapper(org.hibernate.SessionFactory sessionFactory,
Project project,
Map<Long,Label> labelMap,
Map<Long,ExtendedAuthor> authorMap,
PlanDao planDao,
ResultsSummaryManager resultsSummaryManager,
BuildResultsSummaryDao buildResultSummaryDao,
BuildResultWarningSummaryDao buildResultWarningSummaryDao,
PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao,
RepositoryDefinitionDao repositoryDefinitionDao,
PlanRepositoryLinkDao planRepositoryLinkDao,
BambooSpecsSourceDao specsSourceDao,
NotificationSetMapper notificationSetMapper,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
Chain |
createPlanEntity() |
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
|
protected void |
importProperties(Chain chain,
org.codehaus.staxmate.in.SMInputCursor cursor,
org.hibernate.Session session)
Import properties to the object.
|
afterImportListItem, exportProperties
createItemInstance
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, importListXml, importListXml, importListXmlInTransaction
exportXml, exportXml, getSession, getSessionFactory, importXml, importXml, isShouldExport, saveBambooObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportXml, importXml
public static final String XML_ROOT
public static final String XML_NODE
public ChainMapper(@NotNull org.hibernate.SessionFactory sessionFactory, @NotNull Project project, @NotNull Map<Long,Label> labelMap, @NotNull Map<Long,ExtendedAuthor> authorMap, PlanDao planDao, ResultsSummaryManager resultsSummaryManager, BuildResultsSummaryDao buildResultSummaryDao, BuildResultWarningSummaryDao buildResultWarningSummaryDao, PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao, @NotNull RepositoryDefinitionDao repositoryDefinitionDao, @NotNull PlanRepositoryLinkDao planRepositoryLinkDao, @NotNull BambooSpecsSourceDao specsSourceDao, @NotNull NotificationSetMapper notificationSetMapper, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
public Chain createPlanEntity()
createPlanEntity
in class AbstractPlanMapper<Chain>
@NotNull public String getXmlRootNodeName()
BambooStAXMappingHelper
getXmlRootNodeName
in interface BambooStAXMappingHelper<Chain,Chain>
getXmlRootNodeName
in class BambooStAXMappingListHelperAbstractImpl<Chain,Chain>
@NotNull public String getXmlElementNodeName()
getXmlElementNodeName
in class BambooStAXMappingListHelperAbstractImpl<Chain,Chain>
protected void importProperties(@NotNull Chain chain, @NotNull org.codehaus.staxmate.in.SMInputCursor cursor, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingHelperAbstractImpl
importProperties
in class AbstractChainMapper<Chain>
chain
- object being importedcursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session objectException
- when something went wrongCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.