Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LSC
lsc
Commits
996708df
Commit
996708df
authored
Mar 30, 2011
by
Sébastien BAHLOUL
Browse files
Fixing #265: no need to specify the next id request parameter if not used as a Asynchronous service
parent
b25e19c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/lsc/service/SimpleJdbcSrcService.java
View file @
996708df
...
...
@@ -89,7 +89,6 @@ public class SimpleJdbcSrcService extends AbstractJdbcService implements IAsynch
// check that we have all parameters, or abort
Configuration
.
assertPropertyNotEmpty
(
"requestNameForList"
,
requestNameForList
,
this
.
getClass
().
getName
());
Configuration
.
assertPropertyNotEmpty
(
"requestNameForObject"
,
requestNameForObject
,
this
.
getClass
().
getName
());
Configuration
.
assertPropertyNotEmpty
(
"requestNameForNextId"
,
requestNameForNextId
,
this
.
getClass
().
getName
());
try
{
interval
=
Integer
.
parseInt
(
props
.
getProperty
(
"interval"
));
...
...
@@ -166,6 +165,9 @@ public class SimpleJdbcSrcService extends AbstractJdbcService implements IAsynch
@Override
public
String
getRequestNameForNextId
()
{
if
(
requestNameForNextId
==
null
)
{
throw
new
ExceptionInInitializerError
(
"No 'requestNameForNextId' provided: cannot get the requested next id request !"
);
}
return
requestNameForNextId
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment