コード例 #1
0
 @Override
 public void bind(CallableStatement statement, int position, Scope queryScope) {
   RuntimeSQLException.execute(
       () -> {
         statement.registerOutParameter(position, Types.LONGVARCHAR);
         queryScope.add(() -> this.value = statement.getString(position));
       });
 }
コード例 #2
0
 @Override
 public void bind(CallableStatement statement, int position, Scope queryScope) {
   RuntimeSQLException.execute(
       () -> {
         statement.registerOutParameter(position, Types.TINYINT);
         queryScope.add(
             () ->
                 this.value =
                     SQLResultReaders.returnValueOrNull(
                         statement, position, CallableStatement::getByte));
       });
 }