Giter Club home page Giter Club logo

peeyush7029 / dbj.jar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soumyadip007/dbj.jar

0.0 0.0 0.0 2.07 MB

A Open-source JAR file for replacement of native JDBC protocol ,DBJ.jar can easily connect to database with some Method, So user have to give the credentials and the parameter into the function ,DBJ will handle the rest part(Connection, Driver Manager, Prepared Statement, Resultset etc)

License: Apache License 2.0

Java 81.26% TSQL 18.74%

dbj.jar's Introduction

DBJ.jar

A JAR file for replacement of native JDBC protocol ,which can connect to database by just calling some Methods, So user just have to give the credentials and the parameter into the function ,DBJ will handle the rest part(Connection, Driver Manager, Prepared Statement, Resultset etc. )

Requirements

For building and running the application you need:

  • JDK 1.8 or above
  • Database (MySql/Oracle/DB2/MySql Server) [MySql is preferable]

Call the following methods (Static) and pass appropriate parameters

  • Connection class (Set Universal Connection, Get Connection Object) @Overloading
  • Insert Class (Save method with Connection object, Save method without Connection object) @Overloading
  • Select Class (GetAll with Connection object,GetAll without Connection object,Get specific field with/without Connection object) @Overloading
  • Update Class (Yet to implement)
  • Delete Class (Yet to implement)
  • Trigger Class (Yet to implement)
  • Cascading Rollback for Transaction (Yet to implement)

Connection Class (package com.dbj.connection)

  • Set the connection object
	public static  void  Connect(String Driver,String Path,String Username,String Password) {
     	    ........
	}
  • Get the connection object
	public static  Connection  Connect(String Driver,String Username,String Password {
      	   ........
    	  return connection;
	}

Insert Class (package com.dbj.query)

  • Save the attributes (Don't pass connection object)
	public static void Save(String table_name, String[] parameters, String[] value) {
      	   ........
    	 }
  • Save the attributes (Pass connection object)
	public static void Save(Connection con, String table_name, String[] parameters, String[] value) {
      	   ........
    	 }

Select Class (package com.dbj.query)

  • Get all attributes from the table (Don't pass connection object)
	public static ResultSet GetAll(String table){
      	   ........
	   return resultSet;
    	 }
  • Get all attributes from the table (Pass connection object)
	public static ResultSet GetAll(Connection con,String table){
      	    ........
	   return resultSet;
    	 }
  • Get some specific attribute from the table (Don't pass connection object)
	public static ResultSet Get(String table,String index,String value){
      	    ........
	   return resultSet;
    	 }
  • Get some specific attribute from the table (Pass connection object)
	public static ResultSet Get(Connection con,String table,String index,String value){
      	    ........
	   return resultSet;
    	 }

Released

Yet to release (Maven Central Deployment)

  • Maven (POM.XML)
  • Gradle
  • SBT
  • Ivy
  • Grape
  • Leiningen
  • Buildr

Copyright @soumyadip007

/**
 * 
 * @author Soumyadip Chowdhury
 * @github soumyadip007
 *
 */

Released under the Apache License 2.0. See the LICENSE file.

dbj.jar's People

Contributors

soumyadip007 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.