Package com.walkfares.odsl.loader
Interface VarLoader
public interface VarLoader
Interface for updating individual variables in the target system
-
Method Summary
Modifier and Type Method Description StringgetDestination()Gets the name of the destination, used by the VarLoaderFactory to categorise itClass<? extends Var>getVarClass()Gets the java class type that this var loader loadsvoidsetStyle(String style)Defines the style of how this variable should be savedintupdate(Object location, Var var)Update the passed in variable
-
Method Details
-
getDestination
String getDestination()Gets the name of the destination, used by the VarLoaderFactory to categorise it- Returns:
- The name of the destination, e.g. mongodb
-
getVarClass
Gets the java class type that this var loader loads- Returns:
- The class of the Var that this loader loads
-
setStyle
Defines the style of how this variable should be saved- Parameters:
style- The named style
-
update
Update the passed in variable- Parameters:
location- The loader specific location to store the Varvar- The variable to update- Returns:
- The number of variables updated
-