Code example for Clob

Methods: getSubString, length

0
	protected void checkValue(T arg) throws SQLException {
		Assert.assertEquals( value, arg );
	} 
 
	protected final String extractString(Clob clob) throws SQLException {
		if ( StringClobImpl.class.isInstance( clob ) ) {
			return ( (StringClobImpl) clob ).getValue();
		} 
		return clob.getSubString( 1, (int)clob.length() );
	} 
 
	private final String methodName;
	private final T value;
 
	public T getValue() { 
		return value;
	} 
 
	protected PreparedStatementProxy(String methodName, T value) {
		this.methodName = methodName;
		this.value = value;