Dekaf 是来自 JetBrains 公司的一个 Java 的数据库访问层框架
Dekaf 是来自 JetBrains 公司的一个 Java 的数据库访问层框架
Java 其它杂项
共43Star
详细介绍
Dekaf
Java Database Access Layer Framework
Dekaf is Java framework for working with databases, primarily via JDBC. Dekaf is NOT an ORM.
Major Dekaf versions:
Version | Status |
---|---|
1.x (codename Hydrogen) | Not supported |
2.0.0.x | This version. Stable |
3.x | Is under development |
Motivation
Three categories of problems lead me to start authoring a new DB layer framework.
JDBC problems:
- too verbose code one have to write for every simple call to a DB procedure and for every simple query
- too many code for data passing and converting
- the damn SQLException that is the same for all kinds of errors coming from DBMS, without possibility to handle same exceptions from different RDBMS by the same way
- JDBC doesn't support named parameters
DB dialect problems:
- different RDBMS have different SQL dialects, and when one wants to support several RDBMS they have to write every query several times (one for every SQL dialect), or to construct queries dynamically (that makes code unreadable)
- different RDBMS reports errors differently that requires different error handling for every query
- different RDBMS requires different data converting, that makes exception handling code overcomplicated
Development and debug of applications problem
- due to the problems mentioned above, one have to construct their queries dynamically, that obstructs to try and debug these queries right from the code
Features
R.2.0 features:
Key features to address the problems mentioned above:
- SQL queries are in separated .sql files, that allow to try/debug them right from these files
- retrieve data as commonly used Java structures (arrays, lists, sets)
- unified exceptions hierarchy (partially)
R.2.0 supported RDBMS:
- PostgreSQL 9+
- Oracle 9+
- MS SQL Server 9+
- Sybase ASE 15+
- MySQL 5.1+
- H2 1.4+
The Name
The name 'Dekaf' means that this framework allows to avoid all pains and problems belonging naturally to pure JDBC API.
A coffee (Java) without headache.
P.S. The former name of this framework is JDBA (just Java DataBase Access).
-
0 Star
-
0 Star
-
0 Star
-
0 Star
-
0 Star
-
79 Star
-
0 Star
-
0 Star
-
1085 Star
-
1041 Star