A project containing basic examples using Java Database Connectivity JDBC. These are just examples for understanding JDBC workflow and basic API and should NOT be used in any production application. As some critical accepts of production environment, like connection pool, proper exception handling, etc. are not handled.
To compile
mvn compile
To clean and compile
mvn clean compile
To execute -
mvn exec:java -Dexec.mainClass="class-path-to-main"
Here, class-path-to-main
is fully qualified class path to a class containing to public static void main(String []args)
method. For example, edu.utd.dspl.InitialExample
, edu.utd.dspl.tasks.PreparedStatementExample
, edu.utd.dspl.tasks.TransactionExample
.
- Official JDBC tutorial http://docs.oracle.com/javase/tutorial/jdbc/basics/index.html
- Official JDBC example http://docs.oracle.com/javase/tutorial/jdbc/basics/examples/zipfiles/JDBCTutorial.zip