-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add another abstraction layer on top of the existing jdbc layer for h…
…andling DB specific SQL
- Loading branch information
1 parent
cce3e9d
commit 35f2e7f
Showing
15 changed files
with
569 additions
and
157 deletions.
There are no files selected for viewing
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
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
18 changes: 18 additions & 0 deletions
18
src/main/java/ch/admin/bar/siard2/cmd/db/connector/Connector.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,18 @@ | ||
package ch.admin.bar.siard2.cmd.db.connector; | ||
|
||
import ch.admin.bar.siard2.cmd.db.features.DbFeatures; | ||
import ch.admin.bar.siard2.cmd.mapping.IdMapper; | ||
|
||
import java.sql.Connection; | ||
import java.sql.SQLException; | ||
|
||
public interface Connector { | ||
DbFeatures getDbFeatures(); | ||
|
||
@Deprecated | ||
Connection getConnection(); | ||
|
||
SqlExecutor createExecutor(IdMapper idMapper) throws SQLException; | ||
|
||
void close(); | ||
} |
Oops, something went wrong.