/** * Compare field to this and return < > or = (-,+,0). * @return compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); m_calendar.set(DBConstants.FIRST_YEAR, Calendar.JANUARY, 1, 0, 0, 0); java.util.Date dateSmall = m_calendar.getTime(); java.util.Date time1 = dateSmall; java.util.Date time2 = dateSmall; java.util.Date dateValue = (java.util.Date)this.getData(); // Get the physical data if (dateValue != null) time1 = dateValue; dateValue = (java.util.Date)field.getData(); // Get the physical data if (dateValue != null) time2 = dateValue; return time1.compareTo(time2); } /**
/** * Compare field to this and return < > or = (-,+,0). * @return compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); m_calendar.set(DBConstants.FIRST_YEAR, Calendar.JANUARY, 1, 0, 0, 0); java.util.Date dateSmall = m_calendar.getTime(); java.util.Date time1 = dateSmall; java.util.Date time2 = dateSmall; java.util.Date dateValue = (java.util.Date)this.getData(); // Get the physical data if (dateValue != null) time1 = dateValue; dateValue = (java.util.Date)field.getData(); // Get the physical data if (dateValue != null) time2 = dateValue; return time1.compareTo(time2); } /**
/** * Compare field to this and return < > or = (-,+,0). * @return compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); m_calendar.set(DBConstants.FIRST_YEAR, Calendar.JANUARY, 1, 0, 0, 0); java.util.Date dateSmall = m_calendar.getTime(); java.util.Date time1 = dateSmall; java.util.Date time2 = dateSmall; java.util.Date dateValue = (java.util.Date)this.getData(); // Get the physical data if (dateValue != null) time1 = dateValue; dateValue = (java.util.Date)field.getData(); // Get the physical data if (dateValue != null) time2 = dateValue; return time1.compareTo(time2); } /**
/** * Compare field to this and return < > or = (-,+,0). */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); double double1 = Double.MIN_VALUE, double2 = Double.MIN_VALUE; Double doubleField = (Double)this.getData(); // Get the physical data if (doubleField != null) double1 = doubleField.doubleValue(); doubleField = (Double)field.getData(); // Get the physical data if (doubleField != null) double2 = doubleField.doubleValue(); if (double1 == double2) return 0; if (double1 < double2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); double double1 = Double.MIN_VALUE, double2 = Double.MIN_VALUE; Double doubleField = (Double)this.getData(); // Get the physical data if (doubleField != null) double1 = doubleField.doubleValue(); doubleField = (Double)field.getData(); // Get the physical data if (doubleField != null) double2 = doubleField.doubleValue(); if (double1 == double2) return 0; if (double1 < double2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); int long1 = Integer.MIN_VALUE, long2 = Integer.MIN_VALUE; Integer tempLong = (Integer)this.getData(); // Get the physical data if (tempLong != null) long1 = tempLong.intValue(); tempLong = (Integer)field.getData(); // Get the physical data if (tempLong != null) long2 = tempLong.intValue(); if (long1 == long2) return 0; if (long1 < long2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); double double1 = Double.MIN_VALUE, double2 = Double.MIN_VALUE; Double doubleField = (Double)this.getData(); // Get the physical data if (doubleField != null) double1 = doubleField.doubleValue(); doubleField = (Double)field.getData(); // Get the physical data if (doubleField != null) double2 = doubleField.doubleValue(); if (double1 == double2) return 0; if (double1 < double2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); short short1 = Short.MIN_VALUE, short2 = Short.MAX_VALUE; Short tempShort = (Short)this.getData(); // Get the physical data if (tempShort != null) short1 = tempShort.shortValue(); tempShort = (Short)field.getData(); // Get the physical data if (tempShort != null) short2 = tempShort.shortValue(); if (short1 == short2) return 0; if (short1 < short2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); short short1 = Short.MIN_VALUE, short2 = Short.MAX_VALUE; Short tempShort = (Short)this.getData(); // Get the physical data if (tempShort != null) short1 = tempShort.shortValue(); tempShort = (Short)field.getData(); // Get the physical data if (tempShort != null) short2 = tempShort.shortValue(); if (short1 == short2) return 0; if (short1 < short2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); float float1 = Float.MIN_VALUE, float2 = Float.MIN_VALUE; Float floatField = (Float)this.getData(); // Get the physical data if (floatField != null) float1 = floatField.floatValue(); floatField = (Float)field.getData(); // Get the physical data if (floatField != null) float2 = floatField.floatValue(); if (float1 == float2) return 0; if (float1 < float2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); int long1 = Integer.MIN_VALUE, long2 = Integer.MIN_VALUE; Integer tempLong = (Integer)this.getData(); // Get the physical data if (tempLong != null) long1 = tempLong.intValue(); tempLong = (Integer)field.getData(); // Get the physical data if (tempLong != null) long2 = tempLong.intValue(); if (long1 == long2) return 0; if (long1 < long2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); float float1 = Float.MIN_VALUE, float2 = Float.MIN_VALUE; Float floatField = (Float)this.getData(); // Get the physical data if (floatField != null) float1 = floatField.floatValue(); floatField = (Float)field.getData(); // Get the physical data if (floatField != null) float2 = floatField.floatValue(); if (float1 == float2) return 0; if (float1 < float2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); float float1 = Float.MIN_VALUE, float2 = Float.MIN_VALUE; Float floatField = (Float)this.getData(); // Get the physical data if (floatField != null) float1 = floatField.floatValue(); floatField = (Float)field.getData(); // Get the physical data if (floatField != null) float2 = floatField.floatValue(); if (float1 == float2) return 0; if (float1 < float2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); int long1 = Integer.MIN_VALUE, long2 = Integer.MIN_VALUE; Integer tempLong = (Integer)this.getData(); // Get the physical data if (tempLong != null) long1 = tempLong.intValue(); tempLong = (Integer)field.getData(); // Get the physical data if (tempLong != null) long2 = tempLong.intValue(); if (long1 == long2) return 0; if (long1 < long2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); short short1 = Short.MIN_VALUE, short2 = Short.MAX_VALUE; Short tempShort = (Short)this.getData(); // Get the physical data if (tempShort != null) short1 = tempShort.shortValue(); tempShort = (Short)field.getData(); // Get the physical data if (tempShort != null) short2 = tempShort.shortValue(); if (short1 == short2) return 0; if (short1 < short2) return -1; else return 1; } /**