LongField.java
00001 package edu.virtualschool.jwaa.field;
00002
00003
00004
00009 public class LongField extends GenericField
00010 {
00011 public long longValue;
00012 public final static LongField Null = new LongField("", "");
00013 public final static String sqlType = "integer(64)";
00014
00015 public LongField(long v) { this(v+"", ""); }
00016 public LongField(Object value, Object defaultValue)
00017 {
00018 super(value, defaultValue);
00019 try { this.longValue = Long.parseLong(stringValue); }
00020 catch (Exception e) { setValid(false,stringValue + " is not a long"); }
00021 }
00022 public long getLong() { return longValue; }
00023 }