[#5545] Improve manual to explain Binding implementation in the context of static statements

This commit is contained in:
lukaseder 2016-09-20 14:25:19 +02:00
parent 093e0de85a
commit ff00f5aa0c
5 changed files with 27 additions and 0 deletions

View File

@ -13642,6 +13642,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}

View File

@ -8957,6 +8957,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}
@ -14279,6 +14282,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}

View File

@ -9192,6 +9192,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}
@ -14651,6 +14654,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}

View File

@ -9281,6 +9281,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}
@ -14797,6 +14800,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}

View File

@ -9280,6 +9280,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}
@ -14796,6 +14799,9 @@ public class PostgresJSONGsonBinding implements Binding<Object, JsonElement> {
// Rending a bind variable for the binding context's value and casting it to the json type
@Override
public void sql(BindingSQLContext<JsonElement> ctx) throws SQLException {
// Depending on how you generate your SQL, you may need to explicitly distinguish
// between jOOQ generating bind variables or inlined literals. If so, use this check:
// ctx.render().paramType() == INLINED
ctx.render().visit(DSL.val(ctx.convert(converter()).value())).sql("::json");
}