Interface JsonParameter
Encapsulates
PreparedStatement parameter data meant to be bound to a DBMS-specific type (for example, JSON or JSONB for PostgreSQL) by PreparedStatementBinder.
Stardard instances may be constructed via Parameters.json(String) and Parameters.json(String, BindingPreference).
Implementations should be threadsafe.
- Since:
- 3.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumSpecifies how aJsonParametershould be bound: binary (for example,JSONBfor PostgreSQL), or text. -
Method Summary
Modifier and TypeMethodDescriptionGets how the JSON should be bound (automatic, binary, text).getJson()Gets the "stringified" JSON.
-
Method Details
-
getJson
-
getBindingPreference
Gets how the JSON should be bound (automatic, binary, text).- Returns:
- how the JSON should be bound
-