public HCatCreateDBDesc build() throws HCatException {
      if (this.dbName == null) {
        throw new HCatException("Database name cannot be null.");
      }
      HCatCreateDBDesc desc = new HCatCreateDBDesc(this.dbName);
      desc.comment = this.innerComment;
      desc.locationUri = this.innerLoc;
      desc.dbProperties = this.innerDBProps;
      desc.ifNotExits = this.ifNotExists;
      return desc;

    }
Builds the create database descriptor.

@return An instance of HCatCreateDBDesc
@throws HCatException
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatCreateDBDesc.java