code: public void setVendor(DatabaseVendor vendor) {
          // attempt to automatically determine the database driver if it hasn't been set
          setDriverIfNotSet(vendor.getDefaultDriver());
          // attempt to automatically determine validation query if it hasn't been set
          setValidationQueryIfNotSet(vendor.getDefaultValidationQuery());
          // set the database vendor
          this.vendor = vendor;
      }
docs: Sets the database vendor associated with this datasource.  For example,
  connecting to a MySQL database would have this property set to MYSQL.
  Setting the vendor (either directly or indirectly by setting the URL),
  will also automatically set defaults for the database driver and default
  validation query to use.
  @param vendor The database vendor such as MYSQL