Java SQL Clob getClobToString(Clob clob)

Here you can find the source of getClobToString(Clob clob)

Description

get Clob To String

License

Open Source License

Declaration

public static String getClobToString(Clob clob) 

Method Source Code

//package com.java2s;

import java.sql.Clob;

import java.sql.SQLException;

public class Main {
    public static String getClobToString(Clob clob) {
        if (clob != null) {
            try {
                return clob.getSubString((long) 1, (int) clob.length());
            } catch (SQLException e) {
                e.printStackTrace();/*  w  w  w. j  a  v a 2 s .c  o  m*/
            }
        }

        return null;
    }
}

Related

  1. ConvertClobToString(StringBuffer sb, Clob clob)
  2. convertClob2String(Clob clob)
  3. convert(Object o, Class targetType)
  4. convertToString(Object obj)
  5. getRSClob(Object obj, String def)
  6. getFormattedClobColumn(final InputStream is)
  7. getString(Clob c)
  8. getStringFromClob(Clob clob)