Package jakarta.nosql.column
Interface ColumnConfiguration
-
public interface ColumnConfiguration
The 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 aColumnFamilyManagerFactory
instance.<T extends ColumnFamilyManagerFactory>
Tget(Settings settings)
Reads configuration from theSettings
instance, the parameters are defined by NoSQL provider, then creates aColumnFamilyManagerFactory
instance.static <T extends ColumnConfiguration>
TgetConfiguration()
creates and returns aColumnConfiguration
instance fromServiceLoader
static <T extends ColumnConfiguration>
TgetConfiguration(Class<T> supplier)
creates and returns aColumnConfiguration
instance fromServiceLoader
for 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 aColumnFamilyManagerFactory
instance.- Type Parameters:
T
- the ColumnFamilyManagerFactory type- Returns:
- a
ColumnFamilyManagerFactory
-
get
<T extends ColumnFamilyManagerFactory> T get(Settings settings)
Reads configuration from theSettings
instance, the parameters are defined by NoSQL provider, then creates aColumnFamilyManagerFactory
instance.- 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 aColumnConfiguration
instance fromServiceLoader
- Type Parameters:
T
- the configuration type- Returns:
ColumnConfiguration
instance- 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 aColumnConfiguration
instance fromServiceLoader
for a particular provider implementation.- Type Parameters:
T
- the configuration type- Parameters:
supplier
- the particular provider- Returns:
ColumnConfiguration
instance- Throws:
ProviderNotFoundException
- when the provider is not foundNonUniqueResultException
- when there is more than one KeyValueConfiguration
-
-