Implementation:APIJSON APIJSON Demo DemoSQLConfig Boot
| Knowledge Sources | |
|---|---|
| Domains | Database, SQL_Generation, Configuration |
| Last Updated | 2026-10-14 00:00 GMT |
Overview
Concrete tool for configuring SQL generation with MySQL dialect defaults in the standard APIJSON Boot server variant.
Description
The DemoSQLConfig class (Boot variant) extends APIJSONSQLConfig<Long> to configure the default database (MySQL), schema (sys), and SimpleCallback for dynamic SQL config creation. It is the single-datasource variant of the SQL config.
Usage
Use this class when the standard APIJSON Boot server needs to generate SQL statements.
Code Reference
Source Location
- Repository: APIJSON_APIJSON_Demo
- File: APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/demo/DemoSQLConfig.java
- Lines: 1-330
Signature
public class DemoSQLConfig extends APIJSONSQLConfig<Long> {
public DemoSQLConfig();
public DemoSQLConfig(RequestMethod method, String table);
static {
DEFAULT_DATABASE = DATABASE_MYSQL;
DEFAULT_SCHEMA = "sys";
SIMPLE_CALLBACK = new SimpleCallback<String>() { ... };
}
}
Import
import apijson.demo.DemoSQLConfig;
I/O Contract
See Implementation:APIJSON_APIJSON_Demo_DemoSQLConfig for the I/O contract.
Usage Examples
See Implementation:APIJSON_APIJSON_Demo_DemoSQLConfig usage examples.