How I can validate parameters in Reader for my querySpring Batch: Restartable attribute ignoredSpring Batch Reader Parameter IssueHow can I configure Spring Batch StepScope using java-based configuration?Running a database item reader for a list of parametersSpring Batch Multiple Database Configuration for Data ReplicationSpring Batch: problems (mix data) when converting to multithreadMultiple readers in spring batchHow to implement reader for multiple queries but same output item?Converting spring batch 3 reader to spring batch 4 reader configSpring Batch Job Parameters in Item Reader
Why I have higher ping to the VLAN interface than to other local interfaces
How to take the beginning and end parts of a list with simpler syntax?
How to divide item stack in MC PE?
What gave Harry Potter the idea of writing in Tom Riddle's diary?
create a tuple from pairs
Why does chown not work in RUN command in Docker?
Why did the RAAF procure the F/A-18 despite being purpose-built for carriers?
Why did Gandalf use a sword against the Balrog?
Is the equation dG = Vdp − SdT valid only for a reversible process? Can it be applied for an irreversible one too?
How to render "If I have told you once, I have told you a thousand times" into French
Heating Margarine in Pan = loss of calories?
PhD advisor lost funding, need advice
GEE logit / Poisson versus mixed effects Poisson / logit
Backpack size in between small in medium, which is preferable?
Can the ground attached to neutral fool a receptacle tester?
80's/90's superhero cartoon with a man on fire and a man who made ice runways like Frozone
A Word/Phrase for the Process of Classifying Something as a Sin
Train from Nagpur to Raipur
Annotating a table with arrows
0xF1 opcode-prefix on i80286
If a digital camera can be "hacked" in the ransomware sense, how best to protect it?
How does proof assistant organize knowledge?
Plotting octahedron inside the sphere and sphere inside the cube
Loading military units into ships optimally, using backtracking
How I can validate parameters in Reader for my query
Spring Batch: Restartable attribute ignoredSpring Batch Reader Parameter IssueHow can I configure Spring Batch StepScope using java-based configuration?Running a database item reader for a list of parametersSpring Batch Multiple Database Configuration for Data ReplicationSpring Batch: problems (mix data) when converting to multithreadMultiple readers in spring batchHow to implement reader for multiple queries but same output item?Converting spring batch 3 reader to spring batch 4 reader configSpring Batch Job Parameters in Item Reader
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I need validate a parameters for my query inside a reader, i send the parameters inside the RunConfiguration, I give you my code job,thanks for your help (I censured part of code with "*" for the data proteccion)
<bean class="**.*****.absis.batch.arch.internal.reader.***ItemReader" id="readerBBDD_Step1">
<property name="dataSource" ref="appDataSource"></property>
<property name="sql" value="select conf.repte, imp.IMPREPTE1 , imp.IMPREPTE2, imp.IMPREPTE3,imp.IMPREPTE4,imp.IMPREPTE5,imp.IMPREPTE6, subrepte, negocio, asignacion, tipus, origen from **************BATCH0003 conf inner join
TDE_IMPORTREPTES_BATCH0003 imp on CONF.REPTE = imp.repte
where conf.anyo = imp.anyo and conf.repte = '****' and esquema = '*****' and tipus='$param1'" ></property>
<property name="rowMapper">
<bean class="****.****.absis.batch.arch.internal.reader.****sBaseRowMapper">
<property name="rowMapper">
<bean class="***.***.absis.batch.app.****.util.MapperStep1"></bean>
</property>
</bean>
</property>
</bean>
My goal is control the parameter1
spring-batch
add a comment |
I need validate a parameters for my query inside a reader, i send the parameters inside the RunConfiguration, I give you my code job,thanks for your help (I censured part of code with "*" for the data proteccion)
<bean class="**.*****.absis.batch.arch.internal.reader.***ItemReader" id="readerBBDD_Step1">
<property name="dataSource" ref="appDataSource"></property>
<property name="sql" value="select conf.repte, imp.IMPREPTE1 , imp.IMPREPTE2, imp.IMPREPTE3,imp.IMPREPTE4,imp.IMPREPTE5,imp.IMPREPTE6, subrepte, negocio, asignacion, tipus, origen from **************BATCH0003 conf inner join
TDE_IMPORTREPTES_BATCH0003 imp on CONF.REPTE = imp.repte
where conf.anyo = imp.anyo and conf.repte = '****' and esquema = '*****' and tipus='$param1'" ></property>
<property name="rowMapper">
<bean class="****.****.absis.batch.arch.internal.reader.****sBaseRowMapper">
<property name="rowMapper">
<bean class="***.***.absis.batch.app.****.util.MapperStep1"></bean>
</property>
</bean>
</property>
</bean>
My goal is control the parameter1
spring-batch
add a comment |
I need validate a parameters for my query inside a reader, i send the parameters inside the RunConfiguration, I give you my code job,thanks for your help (I censured part of code with "*" for the data proteccion)
<bean class="**.*****.absis.batch.arch.internal.reader.***ItemReader" id="readerBBDD_Step1">
<property name="dataSource" ref="appDataSource"></property>
<property name="sql" value="select conf.repte, imp.IMPREPTE1 , imp.IMPREPTE2, imp.IMPREPTE3,imp.IMPREPTE4,imp.IMPREPTE5,imp.IMPREPTE6, subrepte, negocio, asignacion, tipus, origen from **************BATCH0003 conf inner join
TDE_IMPORTREPTES_BATCH0003 imp on CONF.REPTE = imp.repte
where conf.anyo = imp.anyo and conf.repte = '****' and esquema = '*****' and tipus='$param1'" ></property>
<property name="rowMapper">
<bean class="****.****.absis.batch.arch.internal.reader.****sBaseRowMapper">
<property name="rowMapper">
<bean class="***.***.absis.batch.app.****.util.MapperStep1"></bean>
</property>
</bean>
</property>
</bean>
My goal is control the parameter1
spring-batch
I need validate a parameters for my query inside a reader, i send the parameters inside the RunConfiguration, I give you my code job,thanks for your help (I censured part of code with "*" for the data proteccion)
<bean class="**.*****.absis.batch.arch.internal.reader.***ItemReader" id="readerBBDD_Step1">
<property name="dataSource" ref="appDataSource"></property>
<property name="sql" value="select conf.repte, imp.IMPREPTE1 , imp.IMPREPTE2, imp.IMPREPTE3,imp.IMPREPTE4,imp.IMPREPTE5,imp.IMPREPTE6, subrepte, negocio, asignacion, tipus, origen from **************BATCH0003 conf inner join
TDE_IMPORTREPTES_BATCH0003 imp on CONF.REPTE = imp.repte
where conf.anyo = imp.anyo and conf.repte = '****' and esquema = '*****' and tipus='$param1'" ></property>
<property name="rowMapper">
<bean class="****.****.absis.batch.arch.internal.reader.****sBaseRowMapper">
<property name="rowMapper">
<bean class="***.***.absis.batch.app.****.util.MapperStep1"></bean>
</property>
</bean>
</property>
</bean>
My goal is control the parameter1
spring-batch
spring-batch
edited Mar 27 at 11:11
sbeam
2,1164 gold badges24 silver badges41 bronze badges
2,1164 gold badges24 silver badges41 bronze badges
asked Mar 27 at 9:02
ALEJANDRO MARTÍN MARQUÉSALEJANDRO MARTÍN MARQUÉS
428 bronze badges
428 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
i send the parameters inside the RunConfiguration
You can pass param1 as a parameter to your job and validate it with a JobParametersValidator.
Then, once it is validated, it can be passed to your reader with:
tipus='#jobParameters[param1]'
Hope this helps.
Hi, thanks for your help. You can explain me how I can use JobParametersValidator? and this: tipus='#jobParameters[param1]' Do I put it on my reader class right?
– ALEJANDRO MARTÍN MARQUÉS
Mar 28 at 18:13
JobParametersValidatoris an interface. You implement this interface with your validation logic then add your implementation to the job as shown in the link I gave (There is a toggle on the top of the page to choose between Java/XML config). Then replacetipus='$param1'in your XML withtipus='#jobParameters[param1]'.
– Mahmoud Ben Hassine
Mar 28 at 19:21
Last question, I create a new independent class on my package with this import like :ValidatorParameters.java? or I do a import in a class configuration or something
– ALEJANDRO MARTÍN MARQUÉS
Mar 29 at 19:18
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55373288%2fhow-i-can-validate-parameters-in-reader-for-my-query%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
i send the parameters inside the RunConfiguration
You can pass param1 as a parameter to your job and validate it with a JobParametersValidator.
Then, once it is validated, it can be passed to your reader with:
tipus='#jobParameters[param1]'
Hope this helps.
Hi, thanks for your help. You can explain me how I can use JobParametersValidator? and this: tipus='#jobParameters[param1]' Do I put it on my reader class right?
– ALEJANDRO MARTÍN MARQUÉS
Mar 28 at 18:13
JobParametersValidatoris an interface. You implement this interface with your validation logic then add your implementation to the job as shown in the link I gave (There is a toggle on the top of the page to choose between Java/XML config). Then replacetipus='$param1'in your XML withtipus='#jobParameters[param1]'.
– Mahmoud Ben Hassine
Mar 28 at 19:21
Last question, I create a new independent class on my package with this import like :ValidatorParameters.java? or I do a import in a class configuration or something
– ALEJANDRO MARTÍN MARQUÉS
Mar 29 at 19:18
add a comment |
i send the parameters inside the RunConfiguration
You can pass param1 as a parameter to your job and validate it with a JobParametersValidator.
Then, once it is validated, it can be passed to your reader with:
tipus='#jobParameters[param1]'
Hope this helps.
Hi, thanks for your help. You can explain me how I can use JobParametersValidator? and this: tipus='#jobParameters[param1]' Do I put it on my reader class right?
– ALEJANDRO MARTÍN MARQUÉS
Mar 28 at 18:13
JobParametersValidatoris an interface. You implement this interface with your validation logic then add your implementation to the job as shown in the link I gave (There is a toggle on the top of the page to choose between Java/XML config). Then replacetipus='$param1'in your XML withtipus='#jobParameters[param1]'.
– Mahmoud Ben Hassine
Mar 28 at 19:21
Last question, I create a new independent class on my package with this import like :ValidatorParameters.java? or I do a import in a class configuration or something
– ALEJANDRO MARTÍN MARQUÉS
Mar 29 at 19:18
add a comment |
i send the parameters inside the RunConfiguration
You can pass param1 as a parameter to your job and validate it with a JobParametersValidator.
Then, once it is validated, it can be passed to your reader with:
tipus='#jobParameters[param1]'
Hope this helps.
i send the parameters inside the RunConfiguration
You can pass param1 as a parameter to your job and validate it with a JobParametersValidator.
Then, once it is validated, it can be passed to your reader with:
tipus='#jobParameters[param1]'
Hope this helps.
answered Mar 28 at 15:51
Mahmoud Ben HassineMahmoud Ben Hassine
6,9131 gold badge8 silver badges19 bronze badges
6,9131 gold badge8 silver badges19 bronze badges
Hi, thanks for your help. You can explain me how I can use JobParametersValidator? and this: tipus='#jobParameters[param1]' Do I put it on my reader class right?
– ALEJANDRO MARTÍN MARQUÉS
Mar 28 at 18:13
JobParametersValidatoris an interface. You implement this interface with your validation logic then add your implementation to the job as shown in the link I gave (There is a toggle on the top of the page to choose between Java/XML config). Then replacetipus='$param1'in your XML withtipus='#jobParameters[param1]'.
– Mahmoud Ben Hassine
Mar 28 at 19:21
Last question, I create a new independent class on my package with this import like :ValidatorParameters.java? or I do a import in a class configuration or something
– ALEJANDRO MARTÍN MARQUÉS
Mar 29 at 19:18
add a comment |
Hi, thanks for your help. You can explain me how I can use JobParametersValidator? and this: tipus='#jobParameters[param1]' Do I put it on my reader class right?
– ALEJANDRO MARTÍN MARQUÉS
Mar 28 at 18:13
JobParametersValidatoris an interface. You implement this interface with your validation logic then add your implementation to the job as shown in the link I gave (There is a toggle on the top of the page to choose between Java/XML config). Then replacetipus='$param1'in your XML withtipus='#jobParameters[param1]'.
– Mahmoud Ben Hassine
Mar 28 at 19:21
Last question, I create a new independent class on my package with this import like :ValidatorParameters.java? or I do a import in a class configuration or something
– ALEJANDRO MARTÍN MARQUÉS
Mar 29 at 19:18
Hi, thanks for your help. You can explain me how I can use JobParametersValidator? and this: tipus='#jobParameters[param1]' Do I put it on my reader class right?
– ALEJANDRO MARTÍN MARQUÉS
Mar 28 at 18:13
Hi, thanks for your help. You can explain me how I can use JobParametersValidator? and this: tipus='#jobParameters[param1]' Do I put it on my reader class right?
– ALEJANDRO MARTÍN MARQUÉS
Mar 28 at 18:13
JobParametersValidator is an interface. You implement this interface with your validation logic then add your implementation to the job as shown in the link I gave (There is a toggle on the top of the page to choose between Java/XML config). Then replace tipus='$param1' in your XML with tipus='#jobParameters[param1]'.– Mahmoud Ben Hassine
Mar 28 at 19:21
JobParametersValidator is an interface. You implement this interface with your validation logic then add your implementation to the job as shown in the link I gave (There is a toggle on the top of the page to choose between Java/XML config). Then replace tipus='$param1' in your XML with tipus='#jobParameters[param1]'.– Mahmoud Ben Hassine
Mar 28 at 19:21
Last question, I create a new independent class on my package with this import like :ValidatorParameters.java? or I do a import in a class configuration or something
– ALEJANDRO MARTÍN MARQUÉS
Mar 29 at 19:18
Last question, I create a new independent class on my package with this import like :ValidatorParameters.java? or I do a import in a class configuration or something
– ALEJANDRO MARTÍN MARQUÉS
Mar 29 at 19:18
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55373288%2fhow-i-can-validate-parameters-in-reader-for-my-query%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown