public enum BambooStAXListImportStrategy extends Enum<BambooStAXListImportStrategy>
Enum Constant and Description |
---|
LIST_10000_ITEMS_TRANSACTION
Import of each 10000 list elements is surrounded by a single additional transaction
|
LIST_ITEM_AND_CLEAR_SESSION_TRANSACTION
Import of each list element is surrounded by a single additional transaction.
|
LIST_ITEM_TRANSACTION
Import of each list element is surrounded by a single additional transaction
|
LIST_TRANSACTION
Import of all list elements is surrounded by a single additional transaction
|
NO_TRANSACTION
No additional transaction for importing element list
|
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_DISPLAY_PROGRESS_STEP |
Modifier and Type | Method and Description |
---|---|
protected abstract <T> long |
importListItems(org.springframework.transaction.support.TransactionOperations transactionOperations,
org.hibernate.Session session,
org.codehaus.staxmate.in.SMInputCursor listItemCursor,
com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T> mappingHelper,
List<T> itemList,
String displayNodeName) |
<T> List<T> |
importListXml(org.springframework.transaction.support.TransactionOperations transactionOperations,
org.hibernate.Session session,
org.codehaus.staxmate.in.SMInputCursor inputCursor,
com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T> mappingHelper)
Strategy entry point
|
static BambooStAXListImportStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BambooStAXListImportStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BambooStAXListImportStrategy NO_TRANSACTION
public static final BambooStAXListImportStrategy LIST_ITEM_TRANSACTION
public static final BambooStAXListImportStrategy LIST_10000_ITEMS_TRANSACTION
public static final BambooStAXListImportStrategy LIST_TRANSACTION
public static final BambooStAXListImportStrategy LIST_ITEM_AND_CLEAR_SESSION_TRANSACTION
public static final long DEFAULT_DISPLAY_PROGRESS_STEP
public static BambooStAXListImportStrategy[] values()
for (BambooStAXListImportStrategy c : BambooStAXListImportStrategy.values()) System.out.println(c);
public static BambooStAXListImportStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract <T> long importListItems(@NotNull org.springframework.transaction.support.TransactionOperations transactionOperations, @NotNull org.hibernate.Session session, @NotNull org.codehaus.staxmate.in.SMInputCursor listItemCursor, @NotNull com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T> mappingHelper, @NotNull List<T> itemList, @NotNull String displayNodeName) throws Exception
Exception
public <T> List<T> importListXml(org.springframework.transaction.support.TransactionOperations transactionOperations, @NotNull org.hibernate.Session session, @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T> mappingHelper) throws Exception
transactionOperations
- session
- DB session objectinputCursor
- StAXMate's input cursor pointing to the begin-of-the-list XML nodemappingHelper
- importer objectException
- when something went wrongCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.