if (logger.isMinorEnabled()) { logMessage(Logger.MINOR,Logger.RESULT,
if (logger.isTrivialEnabled()) { logMessage(Logger.TRIVIAL,Logger.RESULT,
  protected boolean updateConveyanceInstance(Statement s, 					     ConveyanceInstance ci){    boolean ret=false;    try{      StringBuffer sb=new StringBuffer();      boolean hasNomen=!(ci.itemNomen==null||ci.itemNomen.equals(""));      sb.append("INSERT INTO ");      sb.append(getTableName(CONV_INSTANCE_TABLE));      sb.append(" (");      sb.append(COL_CONVEYANCEID);sb.append(",");      sb.append(COL_BUMPERNO);sb.append(",");      sb.append(COL_BASELOC);sb.append(",");      sb.append(COL_OWNER);sb.append(",");      sb.append(COL_PROTOTYPEID);sb.append(",");      sb.append(COL_SELFPROP);      if(hasNomen){	sb.append(",");	sb.append(COL_ALP_ITEM_NOMEN);      }      sb.append(") VALUES('");      sb.append(ci.UID);sb.append("','");      sb.append(ci.bumperNo);sb.append("','");      sb.append(ci.homeLocID);sb.append("','");      sb.append(ci.ownerID);sb.append("','");      sb.append(ci.prototypeUID);sb.append("',");      sb.append((ci.selfPropelled?"1":"0"));      if(hasNomen){	sb.append(",'");	sb.append(ci.itemNomen);	sb.append("'");      }      sb.append(")");      ret=(s.executeUpdate(sb.toString())==1);    }catch(SQLException e){      //If this is a duplicate insertion && we are self-prop its ok,      //otherwise an error.  We assume that no TOPS clusters will      //ever have duplicate assets      if(dbConfig.getUniqueViolatedErrorCode().equals(e.getSQLState())&&	 ci.selfPropelled){	if (logger.isMinorEnabled()) {	  logMessage(Logger.MINOR,Logger.RESULT,		     "Found duplicate self-propelled instance");	}	return true;      }else{	haltForError(Logger.DB_WRITE,"Could not update table("+		     getTableName(CONV_INSTANCE_TABLE)+")"+		     "["+e.getSQLState()+"]",e);	return false;      }    }    return ret;  }