Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
b416d3ab
Commit
b416d3ab
authored
12 years ago
by
jakubs
Browse files
Options
Downloads
Patches
Plain Diff
BIS-21 SP-107 refactor wrapping a transaction to a separate method
SVN: 25771
parent
02227b94
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v2/JythonTopLevelDataSetHandlerV2.java
+11
-1
11 additions, 1 deletion
...er/registrator/api/v2/JythonTopLevelDataSetHandlerV2.java
with
11 additions
and
1 deletion
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v2/JythonTopLevelDataSetHandlerV2.java
+
11
−
1
View file @
b416d3ab
...
@@ -248,7 +248,7 @@ public class JythonTopLevelDataSetHandlerV2<T extends DataSetInformation> extend
...
@@ -248,7 +248,7 @@ public class JythonTopLevelDataSetHandlerV2<T extends DataSetInformation> extend
{
{
throw
new
IllegalStateException
(
"Undefined process() function"
);
throw
new
IllegalStateException
(
"Undefined process() function"
);
}
}
IDataSetRegistrationTransactionV2
v2transaction
=
new
DataSetRegistration
Transaction
V2Delegate
(
transaction
);
IDataSetRegistrationTransactionV2
v2transaction
=
wrap
Transaction
(
transaction
);
invokeFunction
(
function
,
v2transaction
);
invokeFunction
(
function
,
v2transaction
);
}
catch
(
Exception
e
)
}
catch
(
Exception
e
)
{
{
...
@@ -256,6 +256,16 @@ public class JythonTopLevelDataSetHandlerV2<T extends DataSetInformation> extend
...
@@ -256,6 +256,16 @@ public class JythonTopLevelDataSetHandlerV2<T extends DataSetInformation> extend
}
}
}
}
/**
* Wraps the transaction - to hide methods which we don't want to expose in the api.
*/
protected
IDataSetRegistrationTransactionV2
wrapTransaction
(
IDataSetRegistrationTransaction
transaction
)
{
IDataSetRegistrationTransactionV2
v2transaction
=
new
DataSetRegistrationTransactionV2Delegate
(
transaction
);
return
v2transaction
;
}
@Override
@Override
protected
boolean
shouldUseOldJythonHookFunctions
()
protected
boolean
shouldUseOldJythonHookFunctions
()
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment