Package com.im.df.impl.db.api
Interface DBImplSchemaProvider.PropsProvider
-
- All Known Subinterfaces:
DBImplSchemaProvider.PropsProviderExtra
- Enclosing class:
- DBImplSchemaProvider
public static interface DBImplSchemaProvider.PropsProviderCallback for reading/writing schema init properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertiesreadProperties()Read the properties from file.voidrewriteProperties(Properties propsToWrite, List<String> propsToClear)Overwrite and clear the specified properties.
-
-
-
Method Detail
-
readProperties
Properties readProperties() throws IOException
Read the properties from file. The returnedPropertiesobject can contain more properties than in file. Some properties are added after reading (e.g. database driver and URL for local connections).- Returns:
- The properties object
- Throws:
IOException- File could not be read
-
rewriteProperties
void rewriteProperties(Properties propsToWrite, List<String> propsToClear) throws IOException
Overwrite and clear the specified properties. The current properties (from file; not these returned fromreadProperties()) are used as a starting point.- Parameters:
propsToWrite- Properties to updatedpropsToClear- Remove these properties- Throws:
IOException- File could not be written
-
-