The simplification is provided by offering empty implementations for rarely used methods, such as those for stored procedure OUT parameter support:
register(BindingRegisterContext) to register the OUT parameter.get(BindingGetStatementContext) to read the OUT parameter.
or SQLData serialisation support (e.g. for Oracle user defined types):
set(BindingSetSQLOutputContext) to serialise a user defined type.get(BindingGetSQLInputContext) to read a user defined type.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | get(BindingGetStatementContext<U>
The context object containing all argument objects. ctx)Implements org. CallableStatement's OUT value.
|
| public void | get(BindingGetSQLInputContext<U>
The context object containing all argument objects. ctx)Implements org. SQLInput's OUT value.
|
| public void | register(BindingRegisterContext<U>
The context object containing all argument objects. ctx)Implements org. CallableStatement's OUT parameter.
|
| public void | set(BindingSetSQLOutputContext<U>
The context object containing all argument objects. ctx)Implements org. SQLOutput's IN parameter.
|
| public void | sql(BindingSQLContext<U>
The context object containing all argument objects. ctx)Implements org. ParamType
setting and delegates to sqlInline(BindingSQLContext) or
sqlBind(BindingSQLContext) respectively.
|
| protected void | |
| protected void |
| AbstractBinding | back to summary |
|---|---|
| public AbstractBinding() | |
| get | back to summary |
|---|---|
| public void get(BindingGetStatementContext<U> ctx) throws SQLException Implements org. Doc from org. Get a
Implementations are expected to produce a value by calling
| |
| get | back to summary |
|---|---|
| public void get(BindingGetSQLInputContext<U> ctx) throws SQLException Implements org. Doc from org. Get a
Implementations are expected to produce a value by calling
| |
| register | back to summary |
|---|---|
| public void register(BindingRegisterContext<U> ctx) throws SQLException Implements org. Doc from org. Register a
| |
| set | back to summary |
|---|---|
| public void set(BindingSetSQLOutputContext<U> ctx) throws SQLException Implements org. Doc from org. Set a
| |
| sql | back to summary |
|---|---|
| public void sql(BindingSQLContext<U> ctx) throws SQLException Implements org. A convenient base implementation that handles the
| |
| sqlBind | back to summary |
|---|---|
| protected void sqlBind(BindingSQLContext<U> ctx) throws SQLException Generate the SQL string for a bind variable placeholder. In almost all cases, this can just be a "?" string. In some cases, the placeholder needs to be cast to a vendor specific data type, such as in PostgreSQL, "?::tsvector". | |
| sqlInline | back to summary |
|---|---|
| protected void sqlInline(BindingSQLContext<U> ctx) throws SQLException Generate the SQL string for inline values. The default implementation generates a string literal representation of the user defined value. Custom implementations may want to override this. | |