Examples of Notice


Examples of buri.ddmsence.ddms.security.ism.Notice

      setXOMElement(element, false);
      _notices = new ArrayList<Notice>();
      Elements notices = element.getChildElements(Notice.getName(getDDMSVersion()),
        getDDMSVersion().getIsmNamespace());
      for (int i = 0; i < notices.size(); i++) {
        _notices.add(new Notice(notices.get(i)));
      }
      _securityAttributes = new SecurityAttributes(element);
      validate();
    }
    catch (InvalidDDMSException e) {
View Full Code Here

Examples of buri.ddmsence.ddms.security.ism.Notice

    public NoticeList commit() throws InvalidDDMSException {
      if (isEmpty())
        return (null);
      List<Notice> notices = new ArrayList<Notice>();
      for (IBuilder builder : getNotices()) {
        Notice component = (Notice) builder.commit();
        if (component != null)
          notices.add(component);
      }
      return (new NoticeList(notices, getSecurityAttributes().commit()));
    }
View Full Code Here

Examples of com.impossibl.postgres.protocol.Notice

    StartupCommand startup = protocol.createStartup(params);

    protocol.execute(startup);

    Notice error = startup.getError();
    if (error != null) {
      throw new NoticeException("Startup Failed", error);
    }

  }
View Full Code Here

Examples of com.impossibl.postgres.protocol.Notice

      root = makeSQLWarning(noticeIter.next());
      SQLWarning current = root;

      while (noticeIter.hasNext()) {

        Notice notice = noticeIter.next();

        // Only include warnings...
        if (!notice.isWarning())
          continue;

        SQLWarning nextWarning = makeSQLWarning(notice);
        current.setNextWarning(nextWarning);
        current = nextWarning;
View Full Code Here

Examples of com.impossibl.postgres.protocol.Notice

    listener.backendKeyData(processId, secretKey);
  }

  private void receiveError(ByteBuf buffer) throws IOException {

    Notice notice = parseNotice(buffer);

    logger.finest("ERROR: " + notice.getCode() + ": " + notice.getMessage());

    listener.error(notice);
  }
View Full Code Here

Examples of com.impossibl.postgres.protocol.Notice

    listener.error(notice);
  }

  private void receiveNotice(ByteBuf buffer) throws IOException {

    Notice notice = parseNotice(buffer);

    logger.finest(notice.getSeverity() + ": " + notice.getCode() + ": " + notice.getMessage());

    listener.notice(notice);
  }
View Full Code Here

Examples of com.impossibl.postgres.protocol.Notice

  private Notice parseNotice(ByteBuf buffer) {

    Context context = getContext();

    Notice notice = new Notice();

    byte msgId;

    while ((msgId = buffer.readByte()) != 0) {

      switch (msgId) {
        case 'S':
          notice.setSeverity(readCString(buffer, context.getCharset()));
          break;

        case 'C':
          notice.setCode(readCString(buffer, context.getCharset()));
          break;

        case 'M':
          notice.setMessage(readCString(buffer, context.getCharset()));
          break;

        case 'D':
          notice.setDetail(readCString(buffer, context.getCharset()));
          break;

        case 'H':
          notice.setHint(readCString(buffer, context.getCharset()));
          break;

        case 'P':
          notice.setPosition(readCString(buffer, context.getCharset()));
          break;

        case 'W':
          notice.setWhere(readCString(buffer, context.getCharset()));
          break;

        case 'F':
          notice.setFile(readCString(buffer, context.getCharset()));
          break;

        case 'L':
          notice.setLine(readCString(buffer, context.getCharset()));
          break;

        case 'R':
          notice.setRoutine(readCString(buffer, context.getCharset()));
          break;

        case 's':
          notice.setSchema(readCString(buffer, context.getCharset()));
          break;

        case 't':
          notice.setTable(readCString(buffer, context.getCharset()));
          break;

        case 'c':
          notice.setColumn(readCString(buffer, context.getCharset()));
          break;

        case 'd':
          notice.setDatatype(readCString(buffer, context.getCharset()));
          break;

        case 'n':
          notice.setConstraint(readCString(buffer, context.getCharset()));
          break;

        default:
          // Read and ignore
          readCString(buffer, context.getCharset());
View Full Code Here

Examples of com.sandrini.sandelivery.model.Notice

  public List<Notice> getAllNotices() {
    return getSession().createQuery("from Notice order by title").list();
  }

  public void deleteNotice(Long noticeId) {
    Notice notice = getNotice(noticeId);
    if (notice != null) {
      getSession().delete(notice);
    }
  }
View Full Code Here

Examples of com.sandrini.sandelivery.model.Notice

      return null;
    }
  }

  public void createNotice(String title, String description) {
    Notice notice = new Notice();
    notice.setTitle(title);
    notice.setDescription(description);
    noticeDAO.createNotice(notice);
  }
View Full Code Here

Examples of com.uwyn.drone.protocol.commands.Notice

  }
 
  public void messageCommand(Bot bot, String nick, String command, String arguments, ServerMessage fullMessage)
  throws CoreException
  {
    bot.send(new Notice(nick, "\u0001VERSION UWYN Drone IRC Bot "+Droned.getVersion()+", "+System.getProperty("os.name")+" "+System.getProperty("os.arch")+" "+System.getProperty("os.version")+", Java "+System.getProperty("java.vendor")+" "+System.getProperty("java.version")));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.