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 1 year ago
JSON representation
Lightweight Data Access Object in Java
- Host: GitHub
- URL: https://github.com/lightweight-component/aj-data
- Owner: lightweight-component
- License: apache-2.0
- Created: 2024-06-20T13:29:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T02:12:39.000Z (almost 2 years ago)
- Last Synced: 2024-07-13T11:23:22.911Z (almost 2 years ago)
- Topics: crud, dao, jdbc, sql
- Language: Java
- Homepage:
- Size: 194 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://central.sonatype.com/artifact/com.ajaxjs/ajaxjs-data)
[](https://dev.ajaxjs.com/docs/javadoc/aj-data/)
[](http://www.apache.org/licenses/LICENSE-2.0.txt)
[](mailto:frank@ajaxjs.com)
[](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