]> granicus.if.org Git - postgresql/blob - src/interfaces/jdbc/org/postgresql/core/Notification.java
Cleanup and reorganization.
[postgresql] / src / interfaces / jdbc / org / postgresql / core / Notification.java
1 /*-------------------------------------------------------------------------
2  *
3  * Notification.java
4  *     This is the implementation of the PGNotification interface
5  *
6  * Copyright (c) 2003, PostgreSQL Global Development Group
7  *
8  * IDENTIFICATION
9  *        $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/Notification.java,v 1.3 2003/03/07 18:39:41 barry Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 package org.postgresql.core;
14
15 import org.postgresql.PGNotification;
16
17 public class Notification implements PGNotification
18 {
19         public Notification(String p_name, int p_pid)
20         {
21                 m_name = p_name;
22                 m_pid = p_pid;
23         }
24
25         /*
26          * Returns name of this notification
27          */
28         public String getName()
29         {
30                 return m_name;
31         }
32
33         /*
34          * Returns the process id of the backend process making this notification
35          */
36         public int getPID()
37         {
38                 return m_pid;
39         }
40
41         private String m_name;
42         private int m_pid;
43
44 }
45