Search in sources :

Example 1 with DB2Trigger

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);
}
Also used : DB2Table(org.jkiss.dbeaver.ext.db2.model.DB2Table) DB2Trigger(org.jkiss.dbeaver.ext.db2.model.DB2Trigger)

Aggregations

DB2Table (org.jkiss.dbeaver.ext.db2.model.DB2Table)1 DB2Trigger (org.jkiss.dbeaver.ext.db2.model.DB2Trigger)1