Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lightweight-component/aj-data

Lightweight Data Access Object in Java
https://github.com/lightweight-component/aj-data

crud dao jdbc sql

Last synced: about 2 hours ago
JSON representation

Lightweight Data Access Object in Java

Awesome Lists containing this project

README

        

[![Maven Central](https://img.shields.io/maven-central/v/com.ajaxjs/ajaxjs-data?label=Latest%20Release)](https://central.sonatype.com/artifact/com.ajaxjs/ajaxjs-data)
[![Javadoc](https://img.shields.io/badge/javadoc-1.1.6-brightgreen.svg?)](https://dev.ajaxjs.com/docs/javadoc/aj-data/)
[![License](https://img.shields.io/badge/license-Apache--2.0-green.svg?longCache=true&style=flat)](http://www.apache.org/licenses/LICENSE-2.0.txt)
[![Email](https://img.shields.io/badge/Contact--me-Email-orange.svg)](mailto:[email protected])
[![QQ群](https://framework.ajaxjs.com/static/qq.svg)](https://shang.qq.com/wpa/qunwpa?idkey=3877893a4ed3a5f0be01e809e7ac120e346102bd550deb6692239bb42de38e22)

# Lightweight Data Access Object in Java

AJ-Data boosts the CRUD development, not just an ORM library. There's three layers in this architecture:

1. JDBC Connection, JDBC reader and writer, is like Spring JDBCTemplate or Apache Dbutils. It accepts SQL String and Map params then outputs a value, or a Map, or a Java Bean, or a List.
1. CRUD Service, is a layer on top of the first layer, also the extender: FastCRUD provides the Common Implementation for rapidly CRUD operations without a lot of coding, plus a simple REST API is readily available.
1. DataService, is a layer on top of the second layer, to write your own SQL or logic on the Web page, then REST API is prepared. More Info pls check out [here](https://github.com/lightweight-component/dataservice-ui).

We support two primary data formats for both input and output parameters:

- Map
- Java Bean

Currently supported databases (with more to come):

- MySQL
- SQLite
- Derby

Java Documents: https://dev.ajaxjs.com/docs/javadoc/aj-data/. For more information, please visit https://framework.ajaxjs.com/docs/aj/?section=data.

# Install
Requires Java 1.8+, Maven Snippets:

```xml

com.ajaxjs
ajaxjs-data
1.1.6

```

# 3rd Party Component that using
This project's based on Spring Framework, tested on Spring 5.x.

- Tomcat JDBC Connection Pool
- [Snowflake](https://github.com/twitter/snowflake) 使用了 Twitter 的分布式自增 ID 算法 Snowflake:雪花生成器
- JSqlParser, for list paging and SQL Injection protection
- Apache Derby for unit test