code: @Override
    public char[] transformIn(Clob clob) throws CpoException {
  
      char[] buffChars = new char[1024];
      char[] retChars = null;
      int length;
      CharArrayWriter caw = new CharArrayWriter();
  
      if (clob != null) {
        try {
          Reader is = clob.getCharacterStream();
  
          while ((length = is.read(buffChars)) != -1) {
            caw.write(buffChars, 0, length);
          }
          is.close();
          retChars = caw.toCharArray();
        } catch (Exception e) {
          logger.debug("Error in transform clob", e);
          throw new CpoException(e);
        }
      }
      return retChars;
    }
docs: Transforms the datasource object into an object required by the class
  
  @param cpoAdapter The CpoAdapter for the datasource where the attribute is being retrieved
  @param parentObject The object that contains the attribute being retrieved.
  @param The object that represents the datasource object being retrieved
  @return The object to be stored in the attribute
  @throws CpoException