public class ContextualLobCreator extends AbstractLobCreator implements LobCreator
LobCreator
implementation using contextual creation against the JDBC Connection
class's LOB creation
methods.Modifier and Type | Field and Description |
---|---|
static LobCreationContext.Callback<Blob> |
CREATE_BLOB_CALLBACK
Callback for performing contextual BLOB creation
|
static LobCreationContext.Callback<Clob> |
CREATE_CLOB_CALLBACK
Callback for performing contextual CLOB creation
|
static LobCreationContext.Callback<NClob> |
CREATE_NCLOB_CALLBACK
Callback for performing contextual NCLOB creation
|
Constructor and Description |
---|
ContextualLobCreator(LobCreationContext lobCreationContext)
Constructs a ContextualLobCreator
|
Modifier and Type | Method and Description |
---|---|
Blob |
createBlob()
Create the basic contextual BLOB reference.
|
Blob |
createBlob(byte[] bytes)
Create a BLOB reference encapsulating the given byte array.
|
Blob |
createBlob(InputStream inputStream,
long length)
Create a BLOB reference encapsulating the given binary stream.
|
Clob |
createClob()
Create the basic contextual CLOB reference.
|
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()
Create the basic contextual NCLOB reference.
|
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, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrap, wrap, wrap
public static final LobCreationContext.Callback<Blob> CREATE_BLOB_CALLBACK
public static final LobCreationContext.Callback<Clob> CREATE_CLOB_CALLBACK
public static final LobCreationContext.Callback<NClob> CREATE_NCLOB_CALLBACK
public ContextualLobCreator(LobCreationContext lobCreationContext)
lobCreationContext
- The context for performing LOB creationpublic Blob createBlob()
public Blob createBlob(byte[] bytes)
LobCreator
createBlob
in interface LobCreator
bytes
- The byte array to wrap as a blob.Blob
as well as BlobImplementer
public Blob createBlob(InputStream inputStream, long length)
LobCreator
createBlob
in interface LobCreator
inputStream
- The binary stream to wrap as a blob.length
- The length of the stream.Blob
as well as BlobImplementer
public Clob createClob()
public Clob createClob(String string)
LobCreator
createClob
in interface LobCreator
string
- The String to wrap as a clob.Clob
as well as ClobImplementer
public Clob createClob(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 NClob createNClob()
public NClob createNClob(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 NClob createNClob(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 © 2016 JBoss by Red Hat. All rights reserved.