Package adams.env
Class DatabaseConnectionDefinition
- java.lang.Object
-
- adams.env.AbstractPropertiesDefinition
-
- adams.env.DatabaseConnectionDefinition
-
- All Implemented Interfaces:
Serializable
public class DatabaseConnectionDefinition extends AbstractPropertiesDefinition
Definition for the DatabaseConnection props file.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseConnectionDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlternativeExtension()Returns an alternative extension to use besides the default one ("props").StringgetFile()Returns the properties file name (no path) this definition is for.StringgetKey()Returns the key this definition is for.voidupdate(AbstractEnvironment env)Updates the environment object with its definition for the props file (whether to add/replace/etc the values).-
Methods inherited from class adams.env.AbstractPropertiesDefinition
add, add, add, createPath, createPath, hasAlternativeExtension, replace, replace, toString
-
-
-
-
Field Detail
-
KEY
public static final String KEY
the key as constant.- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
public String getKey()
Returns the key this definition is for.- Specified by:
getKeyin classAbstractPropertiesDefinition- Returns:
- the key
-
getFile
public String getFile()
Returns the properties file name (no path) this definition is for.- Specified by:
getFilein classAbstractPropertiesDefinition- Returns:
- the key
-
getAlternativeExtension
public String getAlternativeExtension()
Returns an alternative extension to use besides the default one ("props"). Useful if distinguishing props files from different projects.- Overrides:
getAlternativeExtensionin classAbstractPropertiesDefinition- Returns:
- the alternative extension (without dot), null if none available
-
update
public void update(AbstractEnvironment env)
Updates the environment object with its definition for the props file (whether to add/replace/etc the values).- Specified by:
updatein classAbstractPropertiesDefinition- Parameters:
env- the environment object to update
-
-