Interface SqlFeatureLookupManager
- All Superinterfaces:
org.codeheadsystems.featureflag.manager.FeatureLookupManager
public interface SqlFeatureLookupManager
extends org.codeheadsystems.featureflag.manager.FeatureLookupManager
The type Sql feature lookup manager, as a dao.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe type Builder. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeletePercentage(String featureId) intInternal insert of the feature flag with the percentage.lookupPercentage(String featureId) default booleansetPercentage(String featureId, double percentage) intInternal update to set the percentage for the feature flag.
-
Method Details
-
lookupPercentage
- Specified by:
lookupPercentagein interfaceorg.codeheadsystems.featureflag.manager.FeatureLookupManager
-
insert
Internal insert of the feature flag with the percentage.- Parameters:
featureId- the feature idpercentage- the percentage- Returns:
- the int
-
update
Internal update to set the percentage for the feature flag.- Parameters:
featureId- the feature idpercentage- the percentage- Returns:
- the int
-
setPercentage
- Specified by:
setPercentagein interfaceorg.codeheadsystems.featureflag.manager.FeatureLookupManager
-
deletePercentage
- Specified by:
deletePercentagein interfaceorg.codeheadsystems.featureflag.manager.FeatureLookupManager
-