if(defaultValue != null) { if(adaptorType == AdaptorDateType) { defaultValue = ERXTimestampUtilities.timestampForString(defaultValue.toString()); } else if (adaptorType == AdaptorNumberType) { NSTimestamp temp = ERXTimestampUtilities.timestampForString(defaultValue.toString()); if(temp != null) { defaultValue = ERXTimestampUtilities.unixTimestamp(temp); } else { defaultValue = new Integer(Integer.parseInt(defaultValue.toString())); } } }
        public void setValueInObject(EOEnterpriseObject eo) {            Object defaultValue = this.stringValue;            if(adaptorType == AdaptorDateType) {                defaultValue = ERXTimestampUtilities.timestampForString(stringValue);            } else if (adaptorType == AdaptorNumberType) {                NSTimestamp temp = ERXTimestampUtilities.timestampForString(stringValue);                if(temp != null) {                    defaultValue = ERXTimestampUtilities.unixTimestamp(temp);                } else {                    defaultValue = new Integer(Integer.parseInt(stringValue));                }            } else {                // nothing for strings so far...            }            eo.takeValueForKey(defaultValue, key);        }