01: package com.knowgate.jdc;
02:
03: import java.util.Date;
04:
05: /**
06: * Information about a process serving a connection
07: * @author Sergio Montoro Ten
08: * @version 3.0
09: */
10: public class JDCProcessInfo {
11:
12: private String datid, datname, procpid, usesysid, usename,
13: query_text;
14: private Date query_start;
15:
16: private JDCProcessInfo() {
17: }
18:
19: protected JDCProcessInfo(String sDatId, String sDatName,
20: String sProcpId, String sUserSysId, String sUserName,
21: String sQueryText, Date dtQueryStart) {
22: datid = sDatId;
23: datname = sDatName;
24: procpid = sProcpId;
25: usesysid = sUserSysId;
26: usename = sUserName;
27: query_text = sQueryText;
28: query_start = dtQueryStart;
29: }
30:
31: public String getProcessId() {
32: return procpid;
33: }
34:
35: public String getUserName() {
36: return usename;
37: }
38:
39: public String getQueryText() {
40: return query_text == null ? "" : query_text;
41: }
42:
43: public Date getQueryStart() {
44: return query_start;
45: }
46:
47: }
|