# Class DataNodeDescriptor.Builder

java.lang.Object
org.apache.cayenne.configuration.DataNodeDescriptor.Builder

Enclosing class:
  `DataNodeDescriptor`

public static class DataNodeDescriptor.Builder extends Object

Since:
  5.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Builder(String name)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DataNodeDescriptor.Builder`
  `adapter(Class<? extends DbAdapter> adapterType)`
  `DataNodeDescriptor`
  `build()`
  `DataNodeDescriptor.Builder`
  `createSchemaIfNeeded()`
  `DataNodeDescriptor.Builder`
  `dataSource(DataSource dataSource)`
  `DataNodeDescriptor.Builder`
  `schemaUpdateStrategy(Class<? extends SchemaUpdateStrategy> schemaUpdateStrategyType)`
  `DataNodeDescriptor.Builder`
  `throwOnPartialSchema()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Builder

    public Builder(String name)

- ## Method Details

  - ### adapter

    public DataNodeDescriptor.Builder adapter(Class<? extends DbAdapter> adapterType)

  - ### dataSource

    public DataNodeDescriptor.Builder dataSource(DataSource dataSource)

  - ### schemaUpdateStrategy

    public DataNodeDescriptor.Builder schemaUpdateStrategy(Class<? extends SchemaUpdateStrategy> schemaUpdateStrategyType)

  - ### createSchemaIfNeeded

    public DataNodeDescriptor.Builder createSchemaIfNeeded()

  - ### throwOnPartialSchema

    public DataNodeDescriptor.Builder throwOnPartialSchema()

  - ### build

    public DataNodeDescriptor build()