code: private QueryParameters.Direction convertToDirection(int columnType) {
          QueryParameters.Direction result = null;
  
          if (columnType == DatabaseMetaData.procedureColumnIn) {
              result = QueryParameters.Direction.IN;
          } else if (columnType == DatabaseMetaData.procedureColumnInOut) {
              result = QueryParameters.Direction.INOUT;
          } else if (columnType == DatabaseMetaData.procedureColumnOut) {
              result = QueryParameters.Direction.OUT;
          } else if (columnType == DatabaseMetaData.procedureColumnReturn) {
              result = QueryParameters.Direction.RETURN;
          } else if (columnType == DatabaseMetaData.procedureColumnResult) {
              result = QueryParameters.Direction.RETURN;
          } else {
              throw new IllegalArgumentException("Incorrect column type: " + columnType);
          }
  
          return result;
      }
docs: Converts SQL column type (returned from Database Metadata description class) into QueryParameters Direction
  Enumeration
  
  @param columnType SQL column type (returned from DatabaseMetadata class)
  @return QueryParameters.Direction value