All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.db.DatabaseBuilderPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.db;

import javax.annotation.Generated;
import javax.sql.DataSource;

@Generated({
    "br.com.objectos.pojo.compiler.PojoCompiler",
    "br.com.objectos.pojo.plugin.StandardBuilderPropertyAction"
})
final class DatabaseBuilderPojo implements DatabaseBuilder, DatabaseBuilder.DatabaseBuilderConfig, DatabaseBuilder.DatabaseBuilderDataSource {
  private DatabaseConfig config;

  private DataSource dataSource;

  public DatabaseBuilderPojo() {
  }

  @Override
  public Database build() {
    return new DatabasePojo(this);
  }

  @Override
  public DatabaseBuilder.DatabaseBuilderConfig config(DatabaseConfig config) {
    if (config == null) {
      throw new NullPointerException();
    }
    this.config = config;
    return this;
  }

  DatabaseConfig ___get___config() {
    return config;
  }

  @Override
  public DatabaseBuilder.DatabaseBuilderDataSource dataSource(DataSource dataSource) {
    if (dataSource == null) {
      throw new NullPointerException();
    }
    this.dataSource = dataSource;
    return this;
  }

  DataSource ___get___dataSource() {
    return dataSource;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy