Example #1
0
 public ExasolPlanNode(ExasolPlanNode parent, ResultSet dbResult) {
   this.parent = parent;
   this.stmtId = JDBCUtils.safeGetInt(dbResult, "STMT_ID");
   this.commandName = JDBCUtils.safeGetString(dbResult, "COMMAND_NAME");
   this.commandClass = JDBCUtils.safeGetString(dbResult, "COMMAND_CLASS");
   this.partId = JDBCUtils.safeGetInt(dbResult, "PART_ID");
   this.partName = JDBCUtils.safeGetString(dbResult, "PART_NAME");
   this.partInfo = JDBCUtils.safeGetString(dbResult, "PART_INFO");
   this.objectSchema = JDBCUtils.safeGetString(dbResult, "OBJECT_SCHEMA");
   this.objectName = JDBCUtils.safeGetString(dbResult, "OBJECT_NAME");
   this.objectRows = JDBCUtils.safeGetDouble(dbResult, "OBJECT_ROWS");
   this.outRows = JDBCUtils.safeGetDouble(dbResult, "OUT_ROWS");
   this.duration = JDBCUtils.safeGetDouble(dbResult, "DURATION");
   this.cpu = JDBCUtils.safeGetDouble(dbResult, "CPU");
   this.tempDbRamPeak = JDBCUtils.safeGetDouble(dbResult, "TEMP_DB_RAM_PEAK");
   this.hddRead = JDBCUtils.safeGetDouble(dbResult, "HDD_READ");
   this.hddWrite = JDBCUtils.safeGetDouble(dbResult, "HDD_WRITE");
   this.netTransfer = JDBCUtils.safeGetDouble(dbResult, "NET");
   this.detailInfo = JDBCUtils.safeGetString(dbResult, "REMARKS");
 }
Example #2
0
 private void loadInfo(JDBCResultSet dbResult) throws SQLException {
   this.oid = JDBCUtils.safeGetLong(dbResult, "oid");
   this.name = JDBCUtils.safeGetString(dbResult, "datname");
   this.ownerId = JDBCUtils.safeGetLong(dbResult, "datdba");
   this.encodingId = JDBCUtils.safeGetLong(dbResult, "encoding");
   this.collate = JDBCUtils.safeGetString(dbResult, "datcollate");
   this.ctype = JDBCUtils.safeGetString(dbResult, "datctype");
   this.isTemplate = JDBCUtils.safeGetBoolean(dbResult, "datistemplate");
   this.allowConnect = JDBCUtils.safeGetBoolean(dbResult, "datallowconn");
   this.connectionLimit = JDBCUtils.safeGetInt(dbResult, "datconnlimit");
   this.tablespaceId = JDBCUtils.safeGetLong(dbResult, "dattablespace");
 }