[#3941] Add DSL.param(Field<T>)
This commit is contained in:
parent
44dcd28bfa
commit
ed6579d15a
@ -11446,6 +11446,17 @@ public class DSL {
|
||||
return new Val<T>(null, type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an unnamed parameter with the defined type of another field and no
|
||||
* initial value.
|
||||
*
|
||||
* @see #param(String, Object)
|
||||
*/
|
||||
@Support
|
||||
public static <T> Param<T> param(Field<T> field) {
|
||||
return param(field.getDataType());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a named parameter with a generic type ({@link Object} /
|
||||
* {@link SQLDataType#OTHER}) and no initial value.
|
||||
@ -11490,6 +11501,17 @@ public class DSL {
|
||||
return new Val<T>(null, type, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a named parameter with a defined type of another field and no
|
||||
* initial value.
|
||||
*
|
||||
* @see #param(String, Object)
|
||||
*/
|
||||
@Support
|
||||
public static <T> Param<T> param(String name, Field<T> type) {
|
||||
return param(name, type.getDataType());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a named parameter with an initial value.
|
||||
* <p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user