Best code examples for Java 8 Clob class (java.sql.Clob)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 Clob class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 Clob examples from Open Source projects
This code example shows how to use the following methods: getSubString, length
178:	return clob.getSubString(1, (int) clob.length()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getCharacterStream
26:	Streams.writeAndClose(Streams.fileOutw(f), clob.getCharacterStream()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: length
134:	result= "(cblob of length "+obj.length()+")"; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getCharacterStream, length
100:	reader = clob.getCharacterStream(); 
101:	char[] buffer = new char[(int)clob.length()]; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: free, getSubString, length
25:	return clobVal.getSubString(1, (int)clobVal.length()); 
-
31:	clobVal.free(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSubString, length
34:	return clob != null ? clob.getSubString(1, (int) clob.length()) : null; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getAsciiStream, getCharacterStream, getSubString, length
85:	assertEquals( 2, clob.length() ); 
86:	assertEquals( 2, clob.getSubString( 1, 5 ).length() ); 
87:	clob.getCharacterStream(); 
88:	clob.getAsciiStream(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSubString, length
43:	int size = (int) clob.length(); 
44:	value = clob.getSubString(1, size); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getCharacterStream, length
86:	if ( WrappedClob.class.isInstance( clob ) ) { 
-
91:	&& ClobImplementer.class.isInstance( clob ); 
-
94:	st.setCharacterStream( index, clob.getCharacterStream(), (int) clob.length() ); 
-
97:	st.setClob( index, clob ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSubString, length
43:	int size = (int) clob.length(); 
44:	value = clob.getSubString(1, size); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getCharacterStream, length
58:	Reader clobReader = clob.getCharacterStream(); 
59:	char[] clobChars = new char[(int) clob.length()]; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getAsciiStream, getCharacterStream, length
69:	if ((characterStream = clob.getCharacterStream()) == null 
70:	&& clob.getAsciiStream() == null) { throw new IllegalArgumentException(); } 
-
73:	origLen = clob.length(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSubString, length
180:	return position(searchstr.getSubString(0, (int) searchstr.length()), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSubString, length
57:	return clob.getSubString(1, (int) clob.length()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSubString, length
73:	if ( StringClobImpl.class.isInstance( clob ) ) { 
-
76:	return clob.getSubString( 1, (int)clob.length() ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSubString, length
71:	long length = clob.length(); 
-
75:	return clob.getSubString(1, (int) length); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getCharacterStream
101:	return clob.getCharacterStream(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: length
135:	result= "(cblob of length "+obj.length()+")"; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getCharacterStream
23:	Jdbcs.setCharacterStream(index, clob.getCharacterStream(), stat); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getSubString, length
160:	return position(searchstr.getSubString(0, (int) searchstr.length()), 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getCharacterStream
26:	Streams.writeAndClose(Streams.fileOutw(f), clob.getCharacterStream()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getSubString, length, setCharacterStream, setString
311:	clob.setString(1L, "T"); 
312:	assertEquals(1L, clob.length()); 
313:	Writer result = clob.setCharacterStream(2); 
-
316:	assertEquals(4L, clob.length()); 
317:	assertEquals("Task", clob.getSubString(1, 4)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getSubString, length
329:	final long sslen = searchstr.length(); 
-
347:	s = searchstr.getSubString(1L, (int) sslen); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClob, getConnection
101:	Clob clob = ps.getConnection().createClob(); 
-
105:	ps.setClob(paramIndex, clob); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getBlob, getClob, getDate, getLong, getString
143:	ival = rset.getLong (index); 
-
154:	sval = rset.getString (index); 
-
156:	Blob    tmp = rset.getBlob (index); 
-
160:	Clob    tmp = rset.getClob (index); 
-
170:	dval = rset.getDate (index); 
-
177:	tval = rset.getTime (index); 
-
191:	isnull = rset.wasNull (); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getClob, wasNull
33:	Assert.notNull(rs, "parameter 'resultSet' must not be null"); 
-
77:	value = rs.getClob(columName); 
-
80:	value = getResultSetValue(rs, columName); 
-
85:	if (wasNullCheck && value != null && rs.wasNull()) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getClob
112:	return stat.getClob(parameterIndex); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSubString, length
33:	return clob!=null? clob.getSubString(1,(int) clob.length()): null; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClob
25:	st.setClob(index, value); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClob
178:	stat.setClob(parameterIndex, x); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getClob
453:	return    cstmt.getClob(parameterIndex); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getClob
130:	return this.cstmt.getClob(i); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getClob
158:	{ checkOpen(); try { return _stmt.getClob( i); } catch (SQLException e) { handleException(e); return null; } } 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClob
179:	pstmt.setClob(arg0, arg1); 
Full Snippet Info
4
CodeRank
See Code Examples for Java 8 Clob Methods: