1 7 8 package java.sql; 9 10 17 18 public class DataTruncation extends SQLWarning { 19 20 33 public DataTruncation(int index, boolean parameter, 34 boolean read, int dataSize, 35 int transferSize) { 36 super("Data truncation", "01004"); 37 this.index = index; 38 this.parameter = parameter; 39 this.read = read; 40 this.dataSize = dataSize; 41 this.transferSize = transferSize; 42 DriverManager.println(" DataTruncation: index(" + index + 43 ") parameter(" + parameter + 44 ") read(" + read + 45 ") data size(" + dataSize + 46 ") transfer size(" + transferSize + ")"); 47 } 48 49 57 public int getIndex() { 58 return index; 59 } 60 61 68 public boolean getParameter() { 69 return parameter; 70 } 71 72 78 public boolean getRead() { 79 return read; 80 } 81 82 89 public int getDataSize() { 90 return dataSize; 91 } 92 93 99 public int getTransferSize() { 100 return transferSize; 101 } 102 103 106 private int index; 107 108 111 private boolean parameter; 112 113 116 private boolean read; 117 118 121 private int dataSize; 122 123 126 private int transferSize; 127 128 } 129 | Popular Tags |