KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > utils > field > FieldBooleanLiteral


1 package com.daffodilwoods.daffodildb.utils.field;
2
3 import com.daffodilwoods.daffodildb.utils.BufferRange;
4 import java.util.*;
5 import com.daffodilwoods.database.resource.DException;
6
7 public class FieldBooleanLiteral extends FieldBase implements Comparable JavaDoc{
8
9   private int result;
10
11   public FieldBooleanLiteral(int result0,int datatype0){
12     result = result0;
13     datatype = datatype0;
14     bufferRange = new BufferRange(new byte[]{result == 0 ? (byte)1 : (byte)0});
15   }
16
17   public Object JavaDoc getObject(){
18     return new Boolean JavaDoc(result == 0);
19   }
20
21
22   public int hashCode(){
23     return result;
24   }
25
26   public boolean equals(Object JavaDoc fieldBase){
27       throw new java.lang.UnsupportedOperationException JavaDoc("Method not yet implemented.");
28   }
29
30   public int compareTo(Object JavaDoc fieldBase){
31       throw new java.lang.UnsupportedOperationException JavaDoc("Method not yet implemented.");
32   }
33
34
35   public boolean isNull(){
36       return false;
37   }
38
39   public void setDatatype(int type) throws DException{
40   }
41 }
42
Popular Tags