return clobValue.getSubString(1, (int)clobValue.length());
int length = (int)clobValue.length(); if (length > 0) { return clobValue.getSubString(1, length); } return "";
    public Object typeCast(Object value) throws TypeCastException    {        if (value == null)        {            return null;        }        if (value instanceof String)        {            return value;        }        if (value instanceof java.sql.Date ||                value instanceof java.sql.Time ||                value instanceof java.sql.Timestamp)        {            return value.toString();        }        if (value instanceof Boolean)        {            return value.toString();        }        if (value instanceof Number)        {            try            {                return value.toString();            }            catch (java.lang.NumberFormatException e)            {                throw new TypeCastException(e);            }        }        if (value instanceof byte[])        {            return Base64.encodeBytes((byte[])value);        }        if (value instanceof Blob)        {            try            {                Blob blob = (Blob)value;                byte[] blobValue = blob.getBytes(1, (int)blob.length());                return typeCast(blobValue);            }            catch (SQLException e)            {                throw new TypeCastException(e);            }        }        if (value instanceof Clob)        {            try            {                Clob clobValue = (Clob)value;                return clobValue.getSubString(1, (int)clobValue.length());            }            catch (SQLException e)            {                throw new TypeCastException(e);            }        }        throw new TypeCastException(value.toString());    }