use of org.jkiss.dbeaver.ext.db2.model.DB2Trigger in project dbeaver by serge-rider.
the class DB2TriggerCache method fetchObject.
@Override
protected DB2Trigger fetchObject(@NotNull JDBCSession session, @NotNull DB2Schema db2Schema, @NotNull JDBCResultSet dbResult) throws SQLException, DBException {
// Look for related table
String tableSchemaName = JDBCUtils.safeGetStringTrimmed(dbResult, "TABSCHEMA");
String tableName = JDBCUtils.safeGetStringTrimmed(dbResult, "TABNAME");
DB2Table db2Table = DB2Utils.findTableBySchemaNameAndName(session.getProgressMonitor(), db2Schema.getDataSource(), tableSchemaName, tableName);
return new DB2Trigger(session.getProgressMonitor(), db2Schema, db2Table, dbResult);
}
Aggregations