SQLite-specific parameter helpers. More...
Static Public Member Functions | |
| static SqlParameter | blob (final byte[] data) |
| Creates a BLOB parameter for binary data. | |
| static SqlParameter | integer (final Long value) |
| Creates an INTEGER parameter. | |
| static SqlParameter | json (final String json) |
| Creates a JSON parameter. | |
| static SqlParameter | real (final Double value) |
| Creates a REAL (floating-point) parameter. | |
| static SqlParameter | text (final String text) |
| Creates a TEXT parameter. | |
SQLite-specific parameter helpers.
SQLite has a dynamic type system with five storage classes:
JSON support is available via the optional JSON1 extension.
Definition at line 46 of file SQLiteParameters.java.
|
static |
Creates a BLOB parameter for binary data.
| data | the binary data, may be null |
SqlParameter with type Types#BLOB Definition at line 57 of file SQLiteParameters.java.
|
static |
Creates an INTEGER parameter.
| value | the integer value, may be null |
SqlParameter with type Types#BIGINT Definition at line 80 of file SQLiteParameters.java.
|
static |
Creates a JSON parameter.
Note: Requires the JSON1 extension to be available at runtime. If the extension is not loaded, this will be treated as ordinary TEXT.
| json | the JSON string, may be null |
SqlParameter with type Types#OTHER Definition at line 70 of file SQLiteParameters.java.
References json().
Referenced by json().
|
static |
Creates a REAL (floating-point) parameter.
| value | the floating-point value, may be null |
SqlParameter with type Types#DOUBLE Definition at line 90 of file SQLiteParameters.java.
|
static |
Creates a TEXT parameter.
| text | the text value, may be null |
SqlParameter with type Types#VARCHAR Definition at line 100 of file SQLiteParameters.java.
References text().
Referenced by text().