Package com.tsurugidb.iceaxe.transaction
Class TgCommitOption
- java.lang.Object
-
- com.tsurugidb.iceaxe.transaction.TgCommitOption
-
public class TgCommitOption extends java.lang.ObjectTsurugi Commit Option.- Since:
- 1.10.0
- See Also:
Transaction.commit(CommitOption)
-
-
Constructor Summary
Constructors Constructor Description TgCommitOption(TgCommitType commitType)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanautoDispose()Get auto dispose.TgCommitOptionautoDispose(boolean autoDispose)Set auto dispose.TgCommitTypecommitType()Get commit type.TgCommitOptioncommitType(TgCommitType commitType)Set commit type.static TgCommitOptionof()Creates a new default commit option.static TgCommitOptionof(TgCommitType commitType)Creates a new commit option.voidsetAutoDispose(boolean autoDispose)Set auto dispose.voidsetCommitType(TgCommitType commitType)Set commit type.com.tsurugidb.sql.proto.SqlRequest.CommitOptiontoLowCommitOption()Get low commit option.java.lang.StringtoString()
-
-
-
Constructor Detail
-
TgCommitOption
@IceaxeInternal public TgCommitOption(TgCommitType commitType)
Creates a new instance.- Parameters:
commitType- commit type
-
-
Method Detail
-
of
public static TgCommitOption of()
Creates a new default commit option.- Returns:
- commit option
-
of
public static TgCommitOption of(TgCommitType commitType)
Creates a new commit option.- Parameters:
commitType- commit type- Returns:
- commit option
-
commitType
public TgCommitOption commitType(TgCommitType commitType)
Set commit type.- Parameters:
commitType- commit type- Returns:
- this
-
commitType
public TgCommitType commitType()
Get commit type.- Returns:
- commit type
-
setCommitType
public void setCommitType(TgCommitType commitType)
Set commit type.- Parameters:
commitType- commit type
-
autoDispose
public TgCommitOption autoDispose(boolean autoDispose)
Set auto dispose.- Parameters:
autoDispose- auto dispose- Returns:
- this
-
autoDispose
public boolean autoDispose()
Get auto dispose.- Returns:
- auto dispose
-
setAutoDispose
public void setAutoDispose(boolean autoDispose)
Set auto dispose.- Parameters:
autoDispose- auto dispose
-
toLowCommitOption
@IceaxeInternal public com.tsurugidb.sql.proto.SqlRequest.CommitOption toLowCommitOption()
Get low commit option.- Returns:
- low commit option
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-