public static class SaharaDataSource.ConcreteDataSourceBuilder extends Object implements DataSourceBuilder
Modifier and Type | Method and Description |
---|---|
DataSource |
build()
Creates and return the Model Entity M
|
DataSourceBuilder |
credentials(String user,
String password)
|
DataSourceBuilder |
description(String description)
|
DataSourceBuilder |
from(DataSource in)
Creates a Builder using the param M as the default values
|
DataSourceBuilder |
name(String name)
|
DataSourceBuilder |
type(String type)
|
DataSourceBuilder |
url(String url)
|
public DataSourceBuilder description(String description)
DataSourceBuilder
description
in interface DataSourceBuilder
description
- the description of the data sourcepublic DataSourceBuilder url(String url)
DataSourceBuilder
url
in interface DataSourceBuilder
url
- the URL of the data sourcepublic DataSourceBuilder type(String type)
DataSourceBuilder
type
in interface DataSourceBuilder
type
- the type of the data sourcepublic DataSourceBuilder name(String name)
DataSourceBuilder
name
in interface DataSourceBuilder
name
- the name of the data sourcepublic DataSourceBuilder credentials(String user, String password)
DataSourceBuilder
credentials
in interface DataSourceBuilder
user
- username of the credentialspassword
- password of the credentialspublic DataSource build()
Buildable.Builder
build
in interface Buildable.Builder<DataSourceBuilder,DataSource>
public DataSourceBuilder from(DataSource in)
Buildable.Builder
from
in interface Buildable.Builder<DataSourceBuilder,DataSource>
Copyright © 2017. All rights reserved.