closeMethod.invoke(tempClob, new Object[0]);
}
catch (IllegalAccessException e)
{
freeTemporaryClob(tempClob);
throw new TypeCastException(value, this, e);
}
catch (NoSuchMethodException e)
{
freeTemporaryClob(tempClob);
throw new TypeCastException(value, this, e);
}
catch (IOException e)
{
freeTemporaryClob(tempClob);
throw new TypeCastException(value, this, e);
}
catch (InvocationTargetException e)
{
freeTemporaryClob(tempClob);
throw new TypeCastException(value, this, e.getTargetException());
}
catch (ClassNotFoundException e)
{
freeTemporaryClob(tempClob);
throw new TypeCastException(value, this, e);
}
return tempClob;
}