@@ -111,40 +111,40 @@ public Class<?> type() {
111
111
/**
112
112
* Create a {@link EncodedParameter}.
113
113
*
114
- * @param type the well-known {@link PostgresqlObjectId type OID}
115
114
* @param format the format to use
115
+ * @param type the well-known {@link PostgresqlObjectId type OID}
116
116
* @param value {@link Publisher} emitting {@link ByteBuf buffers}
117
117
* @return the encoded {@link EncodedParameter}
118
118
* @implNote use deferred buffer creation instead of {@link Mono#just(Object)} and {@link Flux#just(Object)} to avoid memory
119
119
* leaks
120
120
*/
121
- static EncodedParameter create (PostgresqlObjectId type , Format format , Publisher <? extends ByteBuf > value ) {
121
+ static EncodedParameter create (Format format , PostgresqlObjectId type , Publisher <? extends ByteBuf > value ) {
122
122
Assert .requireNonNull (type , "type must not be null" );
123
123
return new EncodedParameter (format , type .getObjectId (), value );
124
124
}
125
125
126
126
/**
127
127
* Create a {@link EncodedParameter}.
128
128
*
129
- * @param type the well-known {@link PostgresqlObjectId type OID}
130
129
* @param format the format to use
130
+ * @param type the well-known {@link PostgresqlObjectId type OID}
131
131
* @param bufferSupplier {@link Supplier} supplying the encoded {@link ByteBuf buffer}
132
132
* @return the encoded {@link EncodedParameter}
133
133
*/
134
- static EncodedParameter create (PostgresqlObjectId type , Format format , Supplier <? extends ByteBuf > bufferSupplier ) {
134
+ static EncodedParameter create (Format format , PostgresqlObjectId type , Supplier <? extends ByteBuf > bufferSupplier ) {
135
135
Assert .requireNonNull (type , "type must not be null" );
136
136
return new EncodedParameter (format , type .getObjectId (), Mono .fromSupplier (bufferSupplier ));
137
137
}
138
138
139
139
/**
140
140
* Encode a {@code null} value.
141
141
*
142
- * @param type the well-known {@link PostgresqlObjectId type OID}
143
142
* @param format the data type {@link Format}, text or binary
143
+ * @param type the well-known {@link PostgresqlObjectId type OID}
144
144
* @return the encoded {@code null} value
145
145
*/
146
- static EncodedParameter createNull (PostgresqlObjectId type , Format format ) {
147
- return create (type , format , NULL_VALUE );
146
+ static EncodedParameter createNull (Format format , PostgresqlObjectId type ) {
147
+ return create (format , type , NULL_VALUE );
148
148
}
149
149
150
150
/**
0 commit comments