01: /*-------------------------------------------------------------------------
02: *
03: * Copyright (c) 2003-2005, PostgreSQL Global Development Group
04: *
05: * IDENTIFICATION
06: * $PostgreSQL: pgjdbc/org/postgresql/core/Notification.java,v 1.8 2005/01/11 08:25:43 jurka Exp $
07: *
08: *-------------------------------------------------------------------------
09: */
10: package org.postgresql.core;
11:
12: import org.postgresql.PGNotification;
13:
14: public class Notification implements PGNotification {
15: public Notification(String p_name, int p_pid) {
16: this (p_name, p_pid, "");
17: }
18:
19: public Notification(String p_name, int p_pid, String p_parameter) {
20: m_name = p_name;
21: m_pid = p_pid;
22: m_parameter = p_parameter;
23: }
24:
25: /*
26: * Returns name of this notification
27: */
28: public String getName() {
29: return m_name;
30: }
31:
32: /*
33: * Returns the process id of the backend process making this notification
34: */
35: public int getPID() {
36: return m_pid;
37: }
38:
39: public String getParameter() {
40: return m_parameter;
41: }
42:
43: private String m_name;
44: private String m_parameter;
45: private int m_pid;
46:
47: }
|