Search in sources :

Example 1 with IJDBCConnectionChangedObserver

use of com.cubrid.common.configuration.jdbc.IJDBCConnectionChangedObserver in project cubrid-manager by CUBRID.

the class DBParameter method fireModifyDatabase.

public void fireModifyDatabase(DatabaseInfo oldDbInfo, DatabaseInfo newDbInfo) {
    if (oldDbInfo == null || newDbInfo == null) {
        return;
    }
    ConnectionInfo oldInfo = getConnectionInfo(oldDbInfo);
    ConnectionInfo newInfo = getConnectionInfo(newDbInfo);
    try {
        for (IJDBCConnectionChangedObserver ob : observers) {
            ob.afterModify(this, oldInfo, newInfo);
        }
    } catch (Exception ex) {
    //ignore
    }
}
Also used : IJDBCConnectionChangedObserver(com.cubrid.common.configuration.jdbc.IJDBCConnectionChangedObserver) ConnectionInfo(com.cubrid.common.ui.common.persist.ConnectionInfo) IOException(java.io.IOException)

Aggregations

IJDBCConnectionChangedObserver (com.cubrid.common.configuration.jdbc.IJDBCConnectionChangedObserver)1 ConnectionInfo (com.cubrid.common.ui.common.persist.ConnectionInfo)1 IOException (java.io.IOException)1