public class JobMapper extends AbstractPlanMapper<Job>
BambooStAXMappingHelper.None
authorMap, labelMap, labels, notificationSetMapper, planBuildNumbers, planDao, planRepositoryLinkDao, planVcsRevisionHistoryDao, project, repositoryDefinitionDao
transactionOperations
Constructor and Description |
---|
JobMapper(org.hibernate.SessionFactory sessionFactory,
Project project,
Map<Long,Label> labelMap,
Map<Long,ExtendedAuthor> authorMap,
BuildResultsSummaryDao buildResultsSummaryDao,
BuildResultWarningSummaryDao buildResultWarningSummaryDao,
PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao,
PlanDao planDao,
RepositoryDefinitionDao repositoryDefinitionDao,
PlanRepositoryLinkDao planRepositoryLinkDao,
LegacyRequirementMapper legacyRequirementMapper,
NotificationSetMapper notificationSetMapper,
RequirementSetMapper requirementSetMapper,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
void |
afterImportListItem(org.codehaus.staxmate.in.SMInputCursor inputCursor,
List<Job> plans,
Job job,
long objectIndex,
org.hibernate.Session session)
Called after parser completes parsing all child nodes in list's element node.
|
Job |
createPlanEntity() |
protected void |
exportProperties(org.codehaus.staxmate.out.SMOutputElement outputElement,
Job job,
org.hibernate.Session session,
ExportDetailsBean exportDetailsBean)
Export object properties.
|
protected void |
importProperties(Job job,
org.codehaus.staxmate.in.SMInputCursor inputCursor,
org.hibernate.Session session)
Import properties to the object.
|
createItemInstance
beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, exportListXml, flushIfNeeded, getXmlElementNodeName, getXmlRootNodeName, 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 JobMapper(@NotNull org.hibernate.SessionFactory sessionFactory, @NotNull Project project, @NotNull Map<Long,Label> labelMap, @NotNull Map<Long,ExtendedAuthor> authorMap, @NotNull BuildResultsSummaryDao buildResultsSummaryDao, BuildResultWarningSummaryDao buildResultWarningSummaryDao, @NotNull PlanVcsRevisionHistoryStandaloneDao planVcsRevisionHistoryDao, @NotNull PlanDao planDao, @NotNull RepositoryDefinitionDao repositoryDefinitionDao, @NotNull PlanRepositoryLinkDao planRepositoryLinkDao, @NotNull LegacyRequirementMapper legacyRequirementMapper, @NotNull NotificationSetMapper notificationSetMapper, @NotNull RequirementSetMapper requirementSetMapper, @NotNull org.springframework.transaction.support.TransactionOperations transactionOperations)
public Job createPlanEntity()
createPlanEntity
in class AbstractPlanMapper<Job>
protected void exportProperties(@NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, @NotNull Job job, @NotNull org.hibernate.Session session, ExportDetailsBean exportDetailsBean) throws Exception
BambooStAXMappingHelperAbstractImpl
exportProperties
in class AbstractPlanMapper<Job>
outputElement
- the parent nodejob
- object being exportedsession
- Hibernate session objectException
- when something went wrongprotected void importProperties(@NotNull Job job, @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingHelperAbstractImpl
importProperties
in class AbstractPlanMapper<Job>
job
- object being importedinputCursor
- input cursor pointing to the child node of node that was passed to importXml methodsession
- Hibernate session objectException
- when something went wrongpublic void afterImportListItem(@NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull List<Job> plans, @NotNull Job job, long objectIndex, @NotNull org.hibernate.Session session) throws Exception
BambooStAXMappingListHelperAbstractImpl
afterImportListItem
in class BambooStAXMappingListHelperAbstractImpl<Job,Job>
inputCursor
- cursor pointing to the list's element opening nodeplans
- list of elements being importedjob
- 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.