Package com.tsurugidb.iceaxe.transaction
Class TgCommitOption
- java.lang.Object
-
- com.tsurugidb.iceaxe.transaction.TgCommitOption
-
public class TgCommitOption extends java.lang.Object
Tsurugi 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 boolean
autoDispose()
Get auto dispose.TgCommitOption
autoDispose(boolean autoDispose)
Set auto dispose.TgCommitType
commitType()
Get commit type.TgCommitOption
commitType(TgCommitType commitType)
Set commit type.static TgCommitOption
of()
Creates a new default commit option.static TgCommitOption
of(TgCommitType commitType)
Creates a new commit option.void
setAutoDispose(boolean autoDispose)
Set auto dispose.void
setCommitType(TgCommitType commitType)
Set commit type.com.tsurugidb.sql.proto.SqlRequest.CommitOption
toLowCommitOption()
Get low commit option.java.lang.String
toString()
-
-
-
Constructor Detail
-
TgCommitOption
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
public com.tsurugidb.sql.proto.SqlRequest.CommitOption toLowCommitOption()
Get low commit option.- Returns:
- low commit option
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-