|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.engine.jdbc.AbstractLobCreator org.hibernate.engine.jdbc.NonContextualLobCreator
public class NonContextualLobCreator
LobCreator
implementation using non-contextual or local creation, meaning that we generate the LOB
references ourselves as opposed to delegating to the JDBC Connection
.
Field Summary | |
---|---|
static NonContextualLobCreator |
INSTANCE
|
Method Summary | |
---|---|
Blob |
createBlob(byte[] bytes)
Create a BLOB reference encapsulating the given byte array. |
Blob |
createBlob(InputStream stream,
long length)
Create a BLOB reference encapsulating the given binary stream. |
Clob |
createClob(Reader reader,
long length)
Create a CLOB reference encapsulating the given character data. |
Clob |
createClob(String string)
Create a CLOB reference encapsulating the given String data. |
NClob |
createNClob(Reader reader,
long length)
Create a NCLOB reference encapsulating the given character data. |
NClob |
createNClob(String string)
Create a NCLOB reference encapsulating the given String data. |
Methods inherited from class org.hibernate.engine.jdbc.AbstractLobCreator |
---|
wrap, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.engine.jdbc.LobCreator |
---|
wrap, wrap |
Field Detail |
---|
public static final NonContextualLobCreator INSTANCE
Method Detail |
---|
public Blob createBlob(byte[] bytes)
createBlob
in interface LobCreator
bytes
- The byte array to wrap as a blob.
Blob
as well as BlobImplementer
public Blob createBlob(InputStream stream, long length)
createBlob
in interface LobCreator
stream
- The binary stream to wrap as a blob.length
- The length of the stream.
Blob
as well as BlobImplementer
public Clob createClob(String string)
createClob
in interface LobCreator
string
- The String to wrap as a clob.
Clob
as well as ClobImplementer
public Clob createClob(Reader reader, long length)
createClob
in interface LobCreator
reader
- The character data reader.length
- The length of the reader data.
Clob
as well as ClobImplementer
public NClob createNClob(String string)
createNClob
in interface LobCreator
string
- The String to wrap as a NCLOB.
Clob
as well as NClobImplementer
. In JDK 1.6
environments, also castable to java.sql.NClobpublic NClob createNClob(Reader reader, long length)
createNClob
in interface LobCreator
reader
- The character data reader.length
- The length of the reader data.
Clob
as well as NClobImplementer
. In JDK 1.6
environments, also castable to java.sql.NClob
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |