Skip to content

Commit

Permalink
JDBC - Transaction component cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelborn committed Mar 11, 2024
1 parent e176f65 commit 3748640
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class Transaction extends Component {
public Transaction() {
super();
declaredAttributes = new Attribute[] {
new Attribute( Key.action, "string", Set.of(
new Attribute( Key.action, "string", "begin", Set.of(
Validator.valueOneOf(
"begin",
"commit",
Expand All @@ -57,8 +57,8 @@ public Transaction() {
"serializable"
)
) ),
new Attribute( Key.savepoint, "string", Set.of() ),
new Attribute( Key.type, "boolean", false, Set.of(
new Attribute( Key.savepoint, "string" ),
new Attribute( Key.nested, "boolean", false, Set.of(
Validator.TYPE
) )
};
Expand Down
1 change: 1 addition & 0 deletions src/main/java/ortus/boxlang/runtime/scopes/Key.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ public class Key implements Comparable<Key>, Serializable {
public static final Key table = Key.of( "table" );
public static final Key isolation = Key.of( "isolation" );
public static final Key savepoint = Key.of( "savepoint" );
public static final Key nested = Key.of( "nested" );

/**
* --------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ortus.boxlang.runtime.components.jdbc.DBInfo
ortus.boxlang.runtime.components.jdbc.Query
ortus.boxlang.runtime.components.jdbc.QueryParam
ortus.boxlang.runtime.components.jdbc.Transaction
ortus.boxlang.runtime.components.net.HTTP
ortus.boxlang.runtime.components.net.HTTPParam
ortus.boxlang.runtime.components.system.Abort
Expand Down

0 comments on commit 3748640

Please sign in to comment.