1 17 package org.apache.ws.jaxme.sqls; 18 19 23 public interface Value { 24 public class Type { 25 private String name; 26 protected Type(String pName) { 27 name = pName; 28 } 29 public String toString() { return name; } 30 public String getName() { return name; } 31 public int hashCode() { return name.hashCode(); } 32 public boolean equals(Object o) { 33 return o != null && o instanceof Type && 34 ((Type) o).name.equals(name); 35 } 36 public final static Type PLACEHOLDER = new Type("PLACEHOLDER"); 37 public final static Type NULL = new Type("NULL"); 38 public final static Type BOOLEAN = new Type("BOOLEAN"); 39 public final static Type FLOAT = new Type("FLOAT"); 40 public final static Type DOUBLE = new Type("DOUBLE"); 41 public final static Type BYTE = new Type("BYTE"); 42 public final static Type SHORT = new Type("SHORT"); 43 public final static Type INT = new Type("INT"); 44 public final static Type LONG = new Type("LONG"); 45 public final static Type DATETIME = new Type("DATETIME"); 46 public final static Type DATE = new Type("DATE"); 47 public final static Type TIME = new Type("TIME"); 48 public final static Type STRING = new Type("STRING"); 49 } 50 51 53 public Type getType(); 54 55 57 public Object getValue(); 58 } 59 | Popular Tags |