|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BambooStAXListImportStrategy> com.atlassian.bamboo.migration.BambooStAXListImportStrategy
public enum BambooStAXListImportStrategy
Enumeration of transaction handling strategies for importing lists of elements.
Enum Constant Summary | |
---|---|
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 |
Field Summary | |
---|---|
static long |
DEFAULT_DISPLAY_PROGRESS_STEP
|
Method Summary | ||
---|---|---|
protected abstract
|
importListItems(net.sf.hibernate.Session session,
org.codehaus.staxmate.in.SMInputCursor listItemCursor,
com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T> mappingHelper,
java.util.List<T> itemList,
java.lang.String displayNodeName)
|
|
|
importListXml(net.sf.hibernate.Session session,
org.codehaus.staxmate.in.SMInputCursor inputCursor,
com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T> mappingHelper)
Strategy entry point |
|
static BambooStAXListImportStrategy |
valueOf(java.lang.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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
public static final long DEFAULT_DISPLAY_PROGRESS_STEP
Method Detail |
---|
public static BambooStAXListImportStrategy[] values()
for (BambooStAXListImportStrategy c : BambooStAXListImportStrategy.values()) System.out.println(c);
public static BambooStAXListImportStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullprotected abstract <T> long importListItems(@NotNull net.sf.hibernate.Session session, @NotNull org.codehaus.staxmate.in.SMInputCursor listItemCursor, @NotNull com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T> mappingHelper, @NotNull java.util.List<T> itemList, @NotNull java.lang.String displayNodeName) throws java.lang.Exception
java.lang.Exception
public <T> java.util.List<T> importListXml(@NotNull net.sf.hibernate.Session session, @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor, @NotNull com.atlassian.bamboo.migration.BambooStAXMappingListHelper<T> mappingHelper) throws java.lang.Exception
session
- DB session objectinputCursor
- StAXMate's input cursor pointing to the begin-of-the-list XML nodemappingHelper
- importer object
java.lang.Exception
- when something went wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |