public interface

CharacterStream

org.hibernate.type.descriptor.CharacterStream
Known Indirect Subclasses

Class Overview

Wraps a character stream (reader) to also provide the length (number of characters) which is needed when binding.

Summary

Public Methods
abstract int getLength()
Retrieve the number of characters.
abstract Reader getReader()
Retrieve the reader.

Public Methods

public abstract int getLength ()

Retrieve the number of characters. JDBC 3 and earlier defined the length in terms of int type rather than long type :(

Returns
  • The number of characters.

public abstract Reader getReader ()

Retrieve the reader.

Returns
  • The reader.