-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat : Ajout appel procédure stockée epntoppn, alimentation fichier p…
…réparée après appel à la procédure
- Loading branch information
1 parent
8f36818
commit 29df624
Showing
4 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
core/src/main/java/fr/abes/item/core/components/Epntoppn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package fr.abes.item.core.components; | ||
|
||
import org.springframework.jdbc.core.JdbcTemplate; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class Epntoppn { | ||
private final JdbcTemplate baseXmlJdbcTemplate; | ||
|
||
public Epntoppn(JdbcTemplate baseXmlJdbcTemplate) { | ||
this.baseXmlJdbcTemplate = baseXmlJdbcTemplate; | ||
} | ||
|
||
public String callFunction(String lesepns, String lercr) { | ||
return baseXmlJdbcTemplate.queryForObject("SELECT AUTORITES.EPNTOPPN_JSON('" + lesepns + "', '" + lercr + "') from DUAL", String.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters