01: package org.sakaibrary.xserver;
02:
03: public class FindResultSetBean {
04: private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory
05: .getLog("org.sakaibrary.xserver.FindResultSetBean");
06:
07: private String baseName;
08: private String sourceId;
09: private String setNumber;
10: private StringBuffer fullName;
11: private String status;
12: private StringBuffer findErrorText;
13: private String numDocs;
14:
15: public FindResultSetBean(String baseName) {
16: this .baseName = baseName;
17: }
18:
19: public String getBaseName() {
20: return baseName;
21: }
22:
23: public void setSourceId(String id) {
24: sourceId = id;
25: }
26:
27: public String getSourceId() {
28: return sourceId;
29: }
30:
31: public void setSetNumber(String setNum) {
32: setNumber = setNum;
33: }
34:
35: public String getSetNumber() {
36: return setNumber;
37: }
38:
39: public void setFullName(String name) {
40: if (fullName == null) {
41: fullName = new StringBuffer();
42: }
43:
44: fullName.append(name);
45: }
46:
47: public String getFullName() {
48: return (fullName == null) ? null : fullName.toString();
49: }
50:
51: public void setStatus(String stat) {
52: status = stat;
53: }
54:
55: public String getStatus() {
56: return status;
57: }
58:
59: public void setFindErrorText(String text) {
60: if (findErrorText == null) {
61: findErrorText = new StringBuffer();
62: }
63:
64: findErrorText.append(text);
65: }
66:
67: public String getFindErrorText() {
68: return (findErrorText == null) ? null : findErrorText
69: .toString();
70: }
71:
72: public void setNumDocs(String num) {
73: numDocs = num;
74: }
75:
76: public String getNumDocs() {
77: return numDocs;
78: }
79:
80: public void printInfo() {
81: LOG.debug("\nFIND RESULT SET INFO");
82: LOG.debug("source id: " + getSourceId());
83: LOG.debug("full name: " + getFullName());
84: LOG.debug("set number: " + getSetNumber());
85: LOG.debug("status: " + getStatus());
86: LOG.debug("error text: " + getFindErrorText());
87: LOG.debug("docs found: " + getNumDocs());
88: }
89: }
|