₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,987 members, 8,419,836 topics. Date: Thursday, 04 June 2026 at 01:20 AM

Toggle theme

Java JDBC Database Object Mysql Connection And Manipulation Library By Antware - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingJava JDBC Database Object Mysql Connection And Manipulation Library By Antware (1596 Views)

1 Reply

Java JDBC Database Object Mysql Connection And Manipulation Library By Antware by guruinfinite(op): 11:42pm On Sep 21, 2021
# ant-dbo
Antware Database Connection Object (Ant DBO) build on top of JDBC and MySQL

SPECIFICATION:
Ant DBO is a repo utility project with classes that extends and implement JDBC; java.sql, meant to manipulate MySQL Database.

Can do:
1. It can connect to MySQL Server
2. Creates and manipulates database records
3. Select from database table(s)
4. Deletes database records from database table
5. Easy to use

USAGE:
import system.model.*;

Make use you include the ant-dbo.jar in your classpath or reference libraries if your using eclipses as your Editor.

SAMPLE CODES:

import system.model.*;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

public class SampleCode {
public static void main(String[] args){
Map<String, String> clause = new HashMap<String, String>();
Map<String, String> clause2 = new HashMap<String, String>();
HashMap<String, String> clause3 = new HashMap<String, String>();
clause.put("column", "zip"wink;
clause.put("operator", "="wink;
clause.put("value", "234"wink;

clause2.put("column", "email"wink;
clause2.put("operator", "="wink;
clause2.put("value", "gettrafficworld@yahoo.com"wink;

clause3.put("col", "name"wink;
clause3.put("sort", "DESC"wink;

Model mod = new Model("users"wink;
mod.where(clause);
mod.inRandomOrder(null);
System.out.println(mod.table);
ResultSet rs = mod.get(null);
// Here we display
try {
rs.next();
System.out.println("Email: "+rs.getString("email"wink);
mod.close(rs);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

DEPENDENCIES:
import java.sql.*;

Download Project from Github @ https://github.com/omasy/ant-dbo
1 Reply

Z-library Is Down. Since 2009 - 2022. Our Beloved Book Library Website Is GoneEncountering This Error In Django: TypeError: 'module' Object Is Not IterableMail Ant V1.0 - The Email Marketing And Management Tool By Antware Ltd234

Help With Codeigniter And GitMath/programming Puzzle - Finding All Expressions That Evaluates To Some ValueAndroid Learning Community (ALC) By Andela