public class ContextualLobCreator extends AbstractLobCreator implements LobCreator
LobCreator implementation using contextual creation against the JDBC Connection class's LOB creation
methods.| Constructor and Description |
|---|
ContextualLobCreator(LobCreationContext lobCreationContext) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Blob |
createBlob()
Create the basic contextual BLOB reference.
|
java.sql.Blob |
createBlob(byte[] bytes)
Create a BLOB reference encapsulating the given byte array.
|
java.sql.Blob |
createBlob(java.io.InputStream inputStream,
long length)
Create a BLOB reference encapsulating the given binary stream.
|
java.sql.Clob |
createClob()
Create the basic contextual CLOB reference.
|
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.Clob |
createNClob()
Create the basic contextual NCLOB reference.
|
java.sql.Clob |
createNClob(java.io.Reader reader,
long length)
Create a NCLOB reference encapsulating the given character data.
|
java.sql.Clob |
createNClob(java.lang.String string)
Create a NCLOB reference encapsulating the given String data.
|
wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrap, wrappublic ContextualLobCreator(LobCreationContext lobCreationContext)
public java.sql.Blob createBlob()
public java.sql.Blob createBlob(byte[] bytes)
createBlob in interface LobCreatorbytes - The byte array to wrap as a blob.Blob as well as BlobImplementerpublic java.sql.Blob createBlob(java.io.InputStream inputStream,
long length)
createBlob in interface LobCreatorinputStream - The binary stream to wrap as a blob.length - The length of the stream.Blob as well as BlobImplementerpublic java.sql.Clob createClob()
public java.sql.Clob createClob(java.lang.String string)
createClob in interface LobCreatorstring - The String to wrap as a clob.Clob as well as ClobImplementerpublic java.sql.Clob createClob(java.io.Reader reader,
long length)
createClob in interface LobCreatorreader - The character data reader.length - The length of the reader data.Clob as well as ClobImplementerpublic java.sql.Clob createNClob()
public java.sql.Clob createNClob(java.lang.String string)
createNClob 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 java.sql.Clob createNClob(java.io.Reader reader,
long length)
createNClob 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 © 2013. All Rights Reserved.