class SqlDataSourceUtils {

    public static Object getColumnDefaultValue(DatabaseMetaData metaData, String tableName,
                                               String columnName) throws SQLException {
        try (ResultSet rs = metaData.getColumns(null, null, tableName, columnName)) {
            if (!rs.next()) {
                throw new IllegalStateException("Did not find meta data for column '"
                    + columnName + "' while checking its default value");
            }
            return rs.getObject("COLUMN_DEF");
        }
    }

    private  SqlDataSourceUtils();

}