Package com.sap.cds
Interface DataStoreConfiguration
-
public interface DataStoreConfiguration
Provides runtime configuration parameters forCdsDataStore
implementations. The string constants in this class are configuration keys consumed by implementations of this interface.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOCSTORE_INTEGRATION_ENABLED
static String
IGNORE_LOCALE_ON_HANA
static String
IGNORE_VIRTUAL_ELEMENTS
static String
LOG_CQN_VALUES
static String
MAX_BATCH_SIZE
static int
MAX_BATCH_SIZE_DEFAULT
static String
SELECT_STAR
static String
SELECT_STAR_COLUMNS
static String
SUPPORTED_LOCALES
static String
UNIVERSAL_CSN
static String
UPSERT_STRATEGY
static String
UPSERT_STRATEGY_REPLACE
static String
UPSERT_STRATEGY_UPSERT
static String
USE_LOCALIZED_VIEW_SEARCH_RESOLVER
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getProperty(String key)
Get the property value for a given key.default boolean
getProperty(String key, boolean defaultValue)
Get the property value for a given key.default int
getProperty(String key, int defaultValue)
Get the property value for a given key.default String
getProperty(String key, String defaultValue)
Get the property value for a given key.
-
-
-
Field Detail
-
DOCSTORE_INTEGRATION_ENABLED
static final String DOCSTORE_INTEGRATION_ENABLED
- See Also:
- Constant Field Values
-
IGNORE_LOCALE_ON_HANA
static final String IGNORE_LOCALE_ON_HANA
- See Also:
- Constant Field Values
-
SUPPORTED_LOCALES
static final String SUPPORTED_LOCALES
- See Also:
- Constant Field Values
-
IGNORE_VIRTUAL_ELEMENTS
static final String IGNORE_VIRTUAL_ELEMENTS
- See Also:
- Constant Field Values
-
USE_LOCALIZED_VIEW_SEARCH_RESOLVER
static final String USE_LOCALIZED_VIEW_SEARCH_RESOLVER
- See Also:
- Constant Field Values
-
SELECT_STAR
static final String SELECT_STAR
- See Also:
- Constant Field Values
-
SELECT_STAR_COLUMNS
static final String SELECT_STAR_COLUMNS
- See Also:
- Constant Field Values
-
UNIVERSAL_CSN
static final String UNIVERSAL_CSN
- See Also:
- Constant Field Values
-
LOG_CQN_VALUES
static final String LOG_CQN_VALUES
- See Also:
- Constant Field Values
-
MAX_BATCH_SIZE
static final String MAX_BATCH_SIZE
- See Also:
- Constant Field Values
-
MAX_BATCH_SIZE_DEFAULT
static final int MAX_BATCH_SIZE_DEFAULT
- See Also:
- Constant Field Values
-
UPSERT_STRATEGY
static final String UPSERT_STRATEGY
- See Also:
- Constant Field Values
-
UPSERT_STRATEGY_REPLACE
static final String UPSERT_STRATEGY_REPLACE
- See Also:
- Constant Field Values
-
UPSERT_STRATEGY_UPSERT
static final String UPSERT_STRATEGY_UPSERT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProperty
String getProperty(String key)
Get the property value for a given key.- Parameters:
key
- the key of the configuration property- Returns:
- the value for the provided key or null
-
getProperty
default String getProperty(String key, String defaultValue)
Get the property value for a given key. If no value is present for the key it returns the provided default value.- Parameters:
key
- the key of the configuration propertydefaultValue
- the default value if no value is present for the provided key- Returns:
- either the value for the provided key or the default value
-
getProperty
default boolean getProperty(String key, boolean defaultValue)
Get the property value for a given key. If no value is present for the key it returns the provided default value.- Parameters:
key
- the key of the configuration propertydefaultValue
- the default value if no value is present for the provided key- Returns:
- either the value for the provided key or the default value
-
getProperty
default int getProperty(String key, int defaultValue)
Get the property value for a given key. If no value is present for the key it returns the provided default value.- Parameters:
key
- the key of the configuration propertydefaultValue
- the default value if no value is present for the provided key- Returns:
- either the value for the provided key or the default value
-
-