Skip to content

jdbc-wrappers is set of Java decorator classes that wrap the most common JDBC interfaces.

License

Notifications You must be signed in to change notification settings

hsch/jdbc-wrappers

Repository files navigation

About

jdbc-wrappers is an MIT-licensed set of Java decorator classes that wrap the most common JDBC interfaces. It may come in handy when, well, you need to wrap, proxy, or decorate them:

  • java.sql.CallableStatement > io.trbl.sql.CallableStatementWrapper
  • java.sql.Connection > io.trbl.sql.ConnectionWrapper
  • java.sql.DataSource > io.trbl.sql.DataSourceWrapper
  • java.sql.PreparedStatement > io.trbl.sql.PreparedStatementWrapper
  • java.sql.ResultSet > io.trbl.sql.ResultSetWrapper
  • java.sql.Statement > io.trbl.sql.StatementWrapper

All classes come with a hopefully correct implementation of java.sql.Wrapper.

Maven

Add this dependency to your Maven build:

 <dependency>
   <groupId>io.trbl</groupId>
   <artifactId>jdbc-wrappers</artifactId>
   <version>1.0</version>
 </dependency>

Build

  1. Clone this repository:

     git clone https://github.com/hsch/jdbc-wrappers.git
     cd jdbc-wrappers
    
  2. Run the build:

     ./gradlew build
    
  3. Find your library

     ls -la ./build/libs/jdbc-wrappers.jar
    

Release

Prerequisites

Configuration

Create a gradle.properties file and be careful not to commit it:

signing.keyId=
signing.password=
signing.secretKeyRingFile=

sonatypeUserName=
sonatypePassword=

Release

  1. Publish the artifact to the staging repository:

     ./gradlew uploadArchives
    
  2. Log in to https://oss.sonatype.org/, find the repository, and close, then release it.

License

Copyright © 2016 Hendrik Schnepel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

jdbc-wrappers is set of Java decorator classes that wrap the most common JDBC interfaces.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages