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,I extends T> |
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,I> mappingHelper,
@NotNull List<I> itemList,
@NotNull String displayNodeName) |
<T,I extends 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,I> 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 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,I extends T> long importListItems(@NotNull
@NotNull org.springframework.transaction.support.TransactionOperations transactionOperations,
@NotNull
@NotNull org.hibernate.Session session,
@NotNull
@NotNull org.codehaus.staxmate.in.SMInputCursor listItemCursor,
@NotNull
@NotNull com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T,I> mappingHelper,
@NotNull
@NotNull List<I> itemList,
@NotNull
@NotNull String displayNodeName)
throws Exception
Exceptionpublic <T,I extends T> List<I> importListXml(org.springframework.transaction.support.TransactionOperations transactionOperations, @NotNull @NotNull org.hibernate.Session session, @NotNull @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull @NotNull com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T,I> 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 © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.