Releases: EzFramework/JavaQueryBuilder
Releases · EzFramework/JavaQueryBuilder
1.0.3
Added
- SelectBuilder: fluent builder for SQL
SELECTstatements with support for
columns,WHEREconditions,ORDER BY,GROUP BY,HAVING,LIMIT,OFFSET, andDISTINCT - CreateBuilder: fluent builder for SQL
CREATE TABLEstatements with support for
columns, primary keys, andIF NOT EXISTS - QueryBuilder: unified static entry point for all builder types
select(),from()for SELECT queriesinsert(),insertInto(table)forINSERTqueriesupdate(),update(table)forUPDATEqueriesdelete(),deleteFrom(table)forDELETEqueriescreateTable(),createTable(table)forCREATE TABLEqueries
- Table-shortcut overloads on QueryBuilder:
insertInto,deleteFrom,update(table),
andcreateTable(table)to set the target table in a single call whereInsupport onDeleteBuilder
Fixed
- DeleteBuilder: restored missing
build()andbuild(SqlDialect)methods whose
Javadoc was malformed and consumed the method body - DeleteBuilder: added missing imports (Connector, Operator, SqlDialect, SqlResult, Map)
- DeleteBuilder: added appendDmlCondition helper to handle all comparison operators
and resolve cyclomatic complexity violation; fixed duplicate /** onhandleBetweenOperator - CreateBuilder: repaired malformed class-level Javadoc that contained an embedded
method body, and fixed unclosedbuild(SqlDialect)Javadoc comment - QueryBuilder: removed redundant same-package imports, fixed import ordering,
added complete Javadoc on all public API methods
1.0.2
- Fixed issue in Jitpack publish CI
1.0.1
Java 25
Updated the package to Java 25
1.0.0
Highlights
- Fluent, type-safe builder API for constructing SQL
SELECTqueries in Java - Parameterized SQL generation: All queries use
?placeholders and separate parameter lists, ensuring safety from SQL injection - Comprehensive operator support:
=,!=,>,<,LIKE,IN,BETWEEN,IS NOT NULL, and more - Column selection, grouping, sorting, and pagination: Easily specify columns,
GROUP BY,ORDER BY,LIMIT, andOFFSET - Multiple SQL dialects: Built-in support for Standard SQL and SQLite, with automatic identifier quoting and boolean handling
- In-memory filtering: Use the same query objects to filter Java collections via the
QueryableStorageinterface - No runtime dependencies: Pure Java 21 library
Example Usage
SqlResult result = new QueryBuilder()
.select("id", "name")
.whereEquals("status", "active")
.orderBy("name", true)
.limit(10)
.buildSql("users");Architecture
- Fluent builders for SELECT, INSERT, UPDATE, DELETE
- Immutable
Queryobjects - Pluggable SQL dialects
- Full Javadoc and Checkstyle compliance