|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICommitOptions
This interface describes the set of options that can be set to control the behaviour of a commit when using
the applicable commit methods of IObjectManager.
| Method Summary | |
|---|---|
CommitLevel |
getGlobalCommitLevel()
Gets the global commit level, if one is set. |
CommitMode |
getMode()
Gets the mode of the commit. |
java.lang.String |
getRenamePattern()
Gets the rename pattern, if one is set. |
CommitType |
getType()
Gets the type of the commit. |
boolean |
isAtomic()
Gets the commit atomicity. |
ICommitOptions |
setAtomicity(boolean atomic)
Sets the commit's atomicity. |
ICommitOptions |
setGlobalCommitLevel(CommitLevel level)
Sets the global commit level. |
ICommitOptions |
setMode(CommitMode mode)
Sets the commit mode. |
ICommitOptions |
setRenamePattern(java.lang.String renamePattern)
Sets the rename pattern used when a committed info object's name collides with another's. |
ICommitOptions |
setType(CommitType type)
Sets the commit type. |
| Method Detail |
|---|
CommitType getType()
com.businessobjects.sdk.biar.CommitTypeCommitMode getMode()
com.businessobjects.sdk.biar.CommitModeboolean isAtomic()
true if the commit is atomic, and false otherwise.ICommitOptions.setAtomicity(boolean)CommitLevel getGlobalCommitLevel()
null if none is set.com.businessobjects.sdk.biar.CommitLevel,
ICommitOptions.setGlobalCommitLevel(CommitLevel)java.lang.String getRenamePattern()
ICommitOptions.setRenamePattern(String)ICommitOptions setType(CommitType type)
type - the new commit type.
ICommitOptions.ICommitOptions setMode(CommitMode mode)
mode - the new commit mode.
ICommitOptionsICommitOptions setAtomicity(boolean atomic)
atomic - the new commit atomicity.
ICommitOptions.ICommitOptions setGlobalCommitLevel(CommitLevel level)
level is non-null then that commit level will be applied to
every info object that is committed.
level - the new global commit level, or null to clear it.
ICommitOptions.ICommitOptions setRenamePattern(java.lang.String renamePattern)
Sets the rename pattern used when a committed info object's name collides with another's. A collision
occurs when two objects of the same type and under the same parent folder have identical names. If the
rename pattern is null then name collisions result in an error.
The rename pattern is a string that describes how to calculate a new name in the event of a collision. To derive the new name, all occurrences of "%1" are replaced by the original name and all occurrences of "%2" are replaced by a number to make the name unique. For all patterns at least one "%1" and one "%2" must be present, or an error will result at the time of commit.
An example pattern is"Foo (Copy Number 1)" for the collision of two objects named Foo.
renamePattern - the new rename pattern, or null to clear it.
ICommitOptions.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||