Package generalDatabase.postgresql
Class PostgreSQLSystem
java.lang.Object
generalDatabase.DBSystem
generalDatabase.ServerBasedSystem
generalDatabase.postgresql.PostgreSQLSystem
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPostgreSQLSystem
(DBControl dbControl, int settingsStore) System for PostgreSQL databases. -
Method Summary
Modifier and TypeMethodDescriptionbuildDatabaseUrl
(String ipAddress, int portNumber, String databaseName) int
Get the database schema name - the name of the databse on the server which manages the other databasesGet the SQLTypes object which can be used to preform system specific formatting of SQL strings.Methods inherited from class generalDatabase.ServerBasedSystem
browseDatabases, browseDatabasesFX, canCreate, checkDatabaseExists, create, createNewDatabase, createPamCursor, exists, getConnection, getDatabaseName, getDialogPaneFX, getDialogPanel, getSettingsReference, getSettingsVersion, getUnitName, hasDriver, isServerConnected, restoreSettings
Methods inherited from class generalDatabase.DBSystem
canOpenDatabase, checkDatabaseExists, closeConnection, getConnection, getKeywords, getShortDatabaseName, openCurrentDatabase
-
Field Details
-
SYSTEMNAME
- See Also:
-
-
Constructor Details
-
PostgreSQLSystem
System for PostgreSQL databases. Partially works, but some fundamental problems, e.g. with Types.BIT which just doesn't work. Will need to do a fair bit of work to replace with a more standard Boolean before this can be used.- Parameters:
dbControl
-settingsStore
-
-
-
Method Details
-
getDriverClassName
- Specified by:
getDriverClassName
in classServerBasedSystem
-
getDefaultUser
- Specified by:
getDefaultUser
in classServerBasedSystem
-
getAvailableDatabaseString
- Specified by:
getAvailableDatabaseString
in classServerBasedSystem
-
checkAvailableDatabaseResult
- Specified by:
checkAvailableDatabaseResult
in classServerBasedSystem
-
buildDatabaseUrl
- Specified by:
buildDatabaseUrl
in classServerBasedSystem
-
getSchemaName
Description copied from class:ServerBasedSystem
Get the database schema name - the name of the databse on the server which manages the other databases- Specified by:
getSchemaName
in classServerBasedSystem
- Returns:
-
getUnitType
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSystemName
- Specified by:
getSystemName
in classServerBasedSystem
- Returns:
- The name of the database system
-
getDefaultPort
public int getDefaultPort()- Specified by:
getDefaultPort
in classServerBasedSystem
-
getSqlTypes
Description copied from class:DBSystem
Get the SQLTypes object which can be used to preform system specific formatting of SQL strings.- Specified by:
getSqlTypes
in classDBSystem
- Returns:
-