Class DatabaseApplicationProperties
This class provides common support to applications requiring properties related to database services.
The following properties are supported:
Application.DatabaseFileName
- where to save the database files
Application.SavedImagesFolderName
- where to save incoming images referenced by the database
Application.DatabaseServerName
- name to use for external TCP access to database (such a server will not be started if this property is absent)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDatabaseApplicationProperties
(Properties properties) Extract the DICOM network properties from the supplied properties. -
Method Summary
Modifier and TypeMethodDescriptionReturn the database file name.Return the database server name for external access.Return the saved images folder, creating it if necessary.Return the saved images folder name.
-
Field Details
-
propertyName_DatabaseFileName
- See Also:
-
propertyName_SavedImagesFolderName
- See Also:
-
propertyName_DatabaseServerName
- See Also:
-
-
Constructor Details
-
DatabaseApplicationProperties
Extract the DICOM network properties from the supplied properties.
- Parameters:
properties
-
-
-
Method Details
-
getDatabaseFileName
Return the database file name.
- Returns:
- the database file name
-
getSavedImagesFolderName
Return the saved images folder name.
- Returns:
- the saved images folder name
-
getSavedImagesFolderCreatingItIfNecessary
Return the saved images folder, creating it if necessary.
If not an absolute path, will be sought or created relative to the current user's home directory.
- Returns:
- the saved images folder
- Throws:
IOException
-
getDatabaseServerName
Return the database server name for external access.
- Returns:
- the database server name
-