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 ProcessdoDataDump(char[] securityPassword, boolean sql, String dbName) protected ProcessdoDataRestore(char[] securityPassword, String dbName) protected booleanhandleSQLMessage(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:SQLConnectorHandles 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:
handleSQLMessagein classSQLConnector- Parameters:
message- The SQL error message.- Returns:
- True if the error needs to be ignored, otherwise false. The default behavior is to return "false".
- Throws:
Exception- It can raise another exception to redirect the exception handling.
-
doDataDump
- Specified by:
doDataDumpin classSQLConnector
-
doDataRestore
- Specified by:
doDataRestorein classSQLConnector
-