/** * Get the platform name without the suffix for name uniqueness. * @return The platform name without suffix. */ public String getPlatformPrefix() { return getPlatformPrefix(getPlatformName()); }
update.setString(param++, ComponentIdentifier.getPlatformPrefix(rs.getString("PLATFORM"))); update.setInt(param++, rs.getInt("ID")); update.executeUpdate(); String name = "and_"+rs.getString("PLATFORM").substring(4); update.setString(param++, name); update.setString(param++, ComponentIdentifier.getPlatformPrefix(name)); update.setInt(param++, rs.getInt("ID")); update.executeUpdate();
insert.setDouble(param++, pi.getBytes()); insert.setDouble(param++, pi.getTransferTime()); insert.setString(param++, ComponentIdentifier.getPlatformPrefix(name)); insert.executeUpdate(); ResultSet keys = insert.getGeneratedKeys(); update.setDouble(param++, pi.getBytes()); update.setDouble(param++, pi.getTransferTime()); update.setString(param++, ComponentIdentifier.getPlatformPrefix(name)); update.setInt(param++, pi.getDBId().intValue()); update.executeUpdate();