public static Stella_Object accessPreparedStatementSlotValue(PreparedStatement self, Symbol slotname, Stella_Object value, boolean setvalueP) {
    if (slotname == Sdbc.SYM_SDBC_CONNECTION) {
      if (setvalueP) {
        self.connection = ((Connection)(value));
      }
      else {
        value = self.connection;
      }
    }
    else if (slotname == Sdbc.SYM_SDBC_SQL) {
      if (setvalueP) {
        self.sql = ((StringWrapper)(value)).wrapperValue;
      }
      else {
        value = StringWrapper.wrapString(self.sql);
      }
    }
    else if (slotname == Sdbc.SYM_STELLA_PARAMETERS) {
      if (setvalueP) {
        self.parameters = ((KeyValueList)(value));
      }
      else {
        value = self.parameters;
      }
    }
    else {
      { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

        stream000.nativeStream.print("`" + slotname + "' is not a valid case option");
        throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
      }
    }
    return (value);
  }