Package org.hibernate.engine.jdbc.proxy
Class NClobProxy
java.lang.Object
org.hibernate.engine.jdbc.proxy.ClobProxy
org.hibernate.engine.jdbc.proxy.NClobProxy
- All Implemented Interfaces:
Clob
,NClob
,ClobImplementer
,NClobImplementer
Manages aspects of proxying
NClob
s for non-contextual creation, including proxy creation and
handling proxy invocations. We use proxies here solely to avoid JDBC version incompatibilities.- See Also:
- API Note:
- This class is not intended to be called directly by the application program.
Instead, use
Session.getLobHelper()
.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NClobProxy
(Reader reader, long length) protected
NClobProxy
(String string) -
Method Summary
Modifier and TypeMethodDescriptionstatic NClob
generateProxy
(Reader reader, long length) Generates aNClob
proxy using a character reader of given length.static NClob
generateProxy
(String string) Generates aClob
proxy using the string data.protected static ClassLoader
Determines the appropriate class loader to which the generated proxy should be scoped.Methods inherited from class org.hibernate.engine.jdbc.proxy.ClobProxy
free, getAsciiStream, getCharacterStream, getCharacterStream, getSubString, getUnderlyingStream, length, position, position, resetIfNeeded, setAsciiStream, setCharacterStream, setString, setString, truncate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.Clob
free, getAsciiStream, getCharacterStream, getCharacterStream, getSubString, length, position, position, setAsciiStream, setCharacterStream, setString, setString, truncate
Methods inherited from interface org.hibernate.engine.jdbc.ClobImplementer
getUnderlyingStream
-
Constructor Details
-
NClobProxy
-
NClobProxy
-
-
Method Details
-
generateProxy
Generates aClob
proxy using the string data.- Parameters:
string
- The data to be wrapped as aClob
.- Returns:
- The generated proxy.
-
generateProxy
Generates aNClob
proxy using a character reader of given length.- Parameters:
reader
- The character readerlength
- The length of the character reader- Returns:
- The generated proxy.
-
getProxyClassLoader
Determines the appropriate class loader to which the generated proxy should be scoped.- Returns:
- The class loader appropriate for proxy construction.
-