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 |
---|---|
java.sql.Blob |
createBlob(byte[] bytes)
Create a BLOB reference encapsulating the given byte array.
|
java.sql.Blob |
createBlob(java.io.InputStream stream,
long length)
Create a BLOB reference encapsulating the given binary stream.
|
java.sql.Clob |
createClob(java.io.Reader reader,
long length)
Create a CLOB reference encapsulating the given character data.
|
java.sql.Clob |
createClob(java.lang.String string)
Create a CLOB reference encapsulating the given String data.
|
java.sql.NClob |
createNClob(java.io.Reader reader,
long length)
Create a NCLOB reference encapsulating the given character data.
|
java.sql.NClob |
createNClob(java.lang.String string)
Create a NCLOB reference encapsulating the given String data.
|
wrap, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrap, wrap, wrap
public static final NonContextualLobCreator INSTANCE
public java.sql.Blob createBlob(byte[] bytes)
LobCreator
createBlob
in interface LobCreator
bytes
- The byte array to wrap as a blob.Blob
as well as BlobImplementer
public java.sql.Blob createBlob(java.io.InputStream stream, long length)
LobCreator
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 java.sql.Clob createClob(java.lang.String string)
LobCreator
createClob
in interface LobCreator
string
- The String to wrap as a clob.Clob
as well as ClobImplementer
public java.sql.Clob createClob(java.io.Reader reader, long length)
LobCreator
createClob
in interface LobCreator
reader
- The character data reader.length
- The length of the reader data.Clob
as well as ClobImplementer
public java.sql.NClob createNClob(java.lang.String string)
LobCreator
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 java.sql.NClob createNClob(java.io.Reader reader, long length)
LobCreator
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.NClobCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.