1 55 package org.lateralnz.c3d.util; 56 57 import java.io.Serializable ; 58 59 62 public class Column implements Serializable { 63 64 private Object objectValue; 65 private byte[] value; 66 private boolean isnull = false; 67 private int type; 68 69 public Column() { 70 } 71 72 public Column(byte[] value, int type) { 73 setValue(value); 74 setType(type); 75 } 76 77 public void setObjectValue(Object obj) { 78 this.objectValue = obj; 79 } 80 81 public void setValue(byte[] value) { 82 this.value = value; 83 } 84 85 public void setType(int type) { 86 this.type = type; 87 } 88 89 public void setNull(boolean n) { 90 this.isnull = n; 91 } 92 93 public Object getObjectValue() { 94 return objectValue; 95 } 96 97 public byte[] getValue() { 98 return value; 99 } 100 101 public int getType() { 102 return type; 103 } 104 105 public boolean getNull() { 106 return isnull; 107 } 108 109 public String toString() { 110 return "type:" + getType() + ",value:" + getValue() + ",null:" + getNull(); 111 } 112 } 113 | Popular Tags |