public abstract class AbstractQueryBuilder<B extends AbstractQueryBuilder,C extends AbstractQuery> extends AbstractContextBuilder<B,C>
MonetaryAmountFactory,
MonetaryRounding,
CurrencyUnit, ExchangeRateProvider and .CurrencyConversion.
Instances of this class are not thread-safe and not serializable.
| Constructor and Description |
|---|
AbstractQueryBuilder()
Initializes the query builder, as a default query builder.
|
| Modifier and Type | Method and Description |
|---|---|
abstract C |
build()
Creates a new
AbstractQuery with the data from this Builder
instance. |
B |
set(List<String> providers)
Set the providers to be considered.
|
B |
setProviderName(String provider)
Simple override, that sets the provider as provider to use.
|
B |
setProviderNames(List<String> providers)
Set the providers to be considered.
|
B |
setProviderNames(String... providers)
Set the providers to be considered.
|
B |
setTargetType(Class<?> type)
Sets the target implementation type required.
|
importContext, importContext, removeAttributes, set, set, set, set, set, set, set, set, set, toStringpublic AbstractQueryBuilder()
public B setProviderNames(String... providers)
Currency is used.providers - the providers to use, not null.public B setProviderNames(List<String> providers)
Currency is used.providers - the providers to use, not null.public B set(List<String> providers)
providers - the providers in order to use, not null.public B setProviderName(String provider)
setProviderName in class AbstractContextBuilder<B extends AbstractQueryBuilder,C extends AbstractQuery>provider - the provider, not null.public B setTargetType(Class<?> type)
type - the target implementation type, not null.public abstract C build()
AbstractQuery with the data from this Builder
instance.build in class AbstractContextBuilder<B extends AbstractQueryBuilder,C extends AbstractQuery>AbstractQuery. never null.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.