1 24 25 package com.mckoi.database; 26 27 import com.mckoi.database.global.SQLTypes; 28 29 35 36 public class TNullType extends TType { 37 38 static final long serialVersionUID = -271824967935043427L; 39 40 43 public TNullType() { 44 super(SQLTypes.NULL); 46 } 47 48 public boolean comparableTypes(TType type) { 49 return (type instanceof TNullType); 50 } 51 52 public int compareObs(Object ob1, Object ob2) { 53 throw new Error ("compareObs can not compare NULL types."); 56 } 57 58 public int calculateApproximateMemoryUse(Object ob) { 59 return 16; 60 } 61 62 public Class javaClass() { 63 return Object .class; 64 } 65 66 } 67 | Popular Tags |