1 55 package org.lateralnz.common.util; 56 57 import java.io.Serializable ; 58 59 64 public class ColumnMetaData implements Serializable { 65 private short datatype; 66 private int size; 67 private boolean nullable = true; 68 69 public ColumnMetaData(short datatype, int size, boolean nullable) { 70 this.datatype = datatype; 71 this.size = size; 72 this.nullable = nullable; 73 } 74 75 public short getDataType() { 76 return datatype; 77 } 78 79 public int getSize() { 80 return size; 81 } 82 83 public boolean isNullable() { 84 return nullable; 85 } 86 87 public String toString() { 88 return "size=" + size + ", datatype=" + datatype + ", nullable=" + nullable; 89 } 90 } | Popular Tags |