Package jakarta.nosql.column
Interface ColumnConfiguration
-
public interface ColumnConfigurationThe Jakarta NoSQL communication configuration to create aColumnFamilyManagerFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ColumnFamilyManagerFactory>
Tget()Reads configuration either from default configuration or a file defined by NoSQL provider and then creates aColumnFamilyManagerFactoryinstance.<T extends ColumnFamilyManagerFactory>
Tget(Settings settings)Reads configuration from theSettingsinstance, the parameters are defined by NoSQL provider, then creates aColumnFamilyManagerFactoryinstance.static <T extends ColumnConfiguration>
TgetConfiguration()creates and returns aColumnConfigurationinstance fromServiceLoaderstatic <T extends ColumnConfiguration>
TgetConfiguration(Class<T> supplier)creates and returns aColumnConfigurationinstance fromServiceLoaderfor a particular provider implementation.
-
-
-
Method Detail
-
get
<T extends ColumnFamilyManagerFactory> T get()
Reads configuration either from default configuration or a file defined by NoSQL provider and then creates aColumnFamilyManagerFactoryinstance.- Type Parameters:
T- the ColumnFamilyManagerFactory type- Returns:
- a
ColumnFamilyManagerFactory
-
get
<T extends ColumnFamilyManagerFactory> T get(Settings settings)
Reads configuration from theSettingsinstance, the parameters are defined by NoSQL provider, then creates aColumnFamilyManagerFactoryinstance.- Type Parameters:
T- the ColumnFamilyManagerFactory type- Parameters:
settings- the settings- Returns:
- a
ColumnFamilyManagerFactory - Throws:
NullPointerException- when settings is null- See Also:
Settings,Settings
-
getConfiguration
static <T extends ColumnConfiguration> T getConfiguration()
creates and returns aColumnConfigurationinstance fromServiceLoader- Type Parameters:
T- the configuration type- Returns:
ColumnConfigurationinstance- Throws:
ProviderNotFoundException- when the provider is not foundNonUniqueResultException- when there is more than one KeyValueConfiguration
-
getConfiguration
static <T extends ColumnConfiguration> T getConfiguration(Class<T> supplier)
creates and returns aColumnConfigurationinstance fromServiceLoaderfor a particular provider implementation.- Type Parameters:
T- the configuration type- Parameters:
supplier- the particular provider- Returns:
ColumnConfigurationinstance- Throws:
ProviderNotFoundException- when the provider is not foundNonUniqueResultException- when there is more than one KeyValueConfiguration
-
-