Class SQLConnector
java.lang.Object
com.storedobject.core.SQLConnector
com.storedobject.database.postgres.SQLConnector
-
Field Summary
Fields inherited from class com.storedobject.core.SQLConnector
connectionProperties, connectionString, database, databaseMaster, debug
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Process
doDataDump
(String securityPassword, boolean sql, String dbName) protected Process
doDataRestore
(String securityPassword, String dbName) protected boolean
handleSQLMessage
(String message) Handles SQL error message.Methods inherited from class com.storedobject.core.SQLConnector
canCancel, cancelConnection, changePassword, closeConnection, createConnection, dumpDebugInfo, dumpDebugInfo, getBusyConnectionCount, getConnection, getDatabaseMasterName, getDatabaseName, getDebugInfo, getDebugInfo, getException, getFreeConnectionCount, getLogger, getPoolSize, getStatement, handleError, handleException, handleSQLState, log, releaseAllConnections, releaseConnection, setLogger, setPoolSize
-
Constructor Details
-
SQLConnector
-
-
Method Details
-
handleSQLMessage
Description copied from class:SQLConnector
Handles SQL error message. Any database error can cause the generation of a SQL error message. This method is called when such errors occur. If the error needs to be ignored, this method can return "true".- Overrides:
handleSQLMessage
in classSQLConnector
- Parameters:
message
- The SQL error message.- Returns:
- True if the error needs to be ignored, otherwise false. The default behaviour is to return "false".
- Throws:
Exception
- It can raise another exception to redirect the exception handling.
-
doDataDump
- Specified by:
doDataDump
in classSQLConnector
-
doDataRestore
- Specified by:
doDataRestore
in classSQLConnector
-