-
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.
Only force embedded H2 databases to be NOT_SHARED (#309)
* Only force embedded H2 databases to be NOT_SHARED * Add isH2EmbeddedDataStore to ApplicationErrorJdbc * Remove the erroneous implNote from isH2DataStore in ApplicationErrorJdbc; the method name tells you exactly wha it does * Change ErrorContextBuilder to force NOT_SHARED only when the data store type has already been set, and the JDBC URL in the DataSourceFactory is an H2 URL that is for an embedded connection. Closes #306 * Cleanup the H2 data store logic * Update isH2DataStore to check driver and URL * No need to check blank URL in isH2EmbeddedDataStore anymore since we know it must be an H2 URL by that point in the code * Introduce private isNotH2DataStore method because I just don't like reading !someThing(...) and prefer to see isNotSomeThing(...) in the main logic * Update javadocs to match new logic * IntelliJ reformatted some code, and I let it
- Loading branch information
1 parent
848ee9c
commit faab86f
Showing
3 changed files
with
195 additions
and
22 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