Implementation:APIJSON APIJSON Demo DemoSQLConfig BigData
| 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 and table-name mapping in the APIJSON BigData server variant.
Description
The DemoSQLConfig class (BigData variant) extends APIJSONSQLConfig<Long> to configure the default database (MySQL), schema (sys), table-name mappings, and a SimpleCallback for dynamic SQL config creation. It supports column hiding and table key mapping for security.
Usage
Use this class when the APIJSON BigData server needs to generate SQL statements for MySQL-compatible databases.
Code Reference
Source Location
- Repository: APIJSON_APIJSON_Demo
- File: APIJSON-Java-Server/APIJSONBoot-BigData/src/main/java/apijson/demo/DemoSQLConfig.java
- Lines: 1-316
Signature
public class DemoSQLConfig extends APIJSONSQLConfig<Long> {
public DemoSQLConfig();
public DemoSQLConfig(RequestMethod method, String table);
static {
DEFAULT_DATABASE = DATABASE_MYSQL;
DEFAULT_SCHEMA = "sys";
// TABLE_KEY_MAP.put(...);
SIMPLE_CALLBACK = new SimpleCallback<String>() { ... };
}
}
Import
import apijson.demo.DemoSQLConfig;
I/O Contract
See Implementation:APIJSON_APIJSON_Demo_DemoSQLConfig for the I/O contract; the BigData variant follows the same pattern with MySQL defaults.
Usage Examples
See Implementation:APIJSON_APIJSON_Demo_DemoSQLConfig usage examples.