com.im.df/1 5.9.1

com.im.df.impl.db.api
Interface DBImplSchemaProvider.PropsProvider

All Known Subinterfaces:
DBImplSchemaProvider.PropsProviderExtra
Enclosing class:
DBImplSchemaProvider

public static interface DBImplSchemaProvider.PropsProvider

Callback for reading/writing schema init properties.


Method Summary
 Properties readProperties()
          Read the properties from file.
 void rewriteProperties(Properties propsToWrite, List<String> propsToClear)
          Overwrite and clear the specified properties.
 

Method Detail

readProperties

Properties readProperties()
                          throws IOException
Read the properties from file. The returned Properties object can contain more properties than in file. Some properties are added after reading (e.g. database driver, 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 from readProperties) are used as a starting point.

Parameters:
propsToWrite - Properties to updated
propsToClear - Remove these properties
Throws:
IOException - File could not be written

com.im.df/1 5.9.1