public class NonContextualLobCreator extends AbstractLobCreator implements LobCreator
LobCreator implementation using non-contextual or local creation, meaning that we generate the LOB
references ourselves as opposed to delegating to the JDBC Connection.| Modifier and Type | Field and Description |
|---|---|
static NonContextualLobCreator |
INSTANCE
Singleton access
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
wrap, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrap, wrap, wrappublic static final NonContextualLobCreator INSTANCE
public Blob createBlob(byte[] bytes)
LobCreatorcreateBlob in interface LobCreatorbytes - The byte array to wrap as a blob.Blob as well as BlobImplementerpublic Blob createBlob(InputStream stream, long length)
LobCreatorcreateBlob in interface LobCreatorstream - The binary stream to wrap as a blob.length - The length of the stream.Blob as well as BlobImplementerpublic Clob createClob(String string)
LobCreatorcreateClob in interface LobCreatorstring - The String to wrap as a clob.Clob as well as ClobImplementerpublic Clob createClob(Reader reader, long length)
LobCreatorcreateClob in interface LobCreatorreader - The character data reader.length - The length of the reader data.Clob as well as ClobImplementerpublic NClob createNClob(String string)
LobCreatorcreateNClob in interface LobCreatorstring - 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)
LobCreatorcreateNClob in interface LobCreatorreader - 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.NClobCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.