LobCreator implementation using contextual creation against the JDBC java.sql.Connection class's LOB creation
methods.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final LobCreationContext. | |
| private static final LobCreationContext. | |
| private static final LobCreationContext. | |
| private static final Object[] | |
| private static final Class | |
| private LobCreationContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Blob | |
| public Blob | createBlob(byte[]
The byte array to wrap as a blob. bytes)Implements org. |
| public Blob | createBlob(InputStream
The binary stream to wrap as a blob. inputStream, long The length of the stream. length)Implements org. |
| public Clob | |
| public Clob | createClob(String
The String to wrap as a clob. string)Implements org. |
| public Clob | createClob(Reader
The character data reader. reader, long The length of the reader data. length)Implements org. |
| public Clob | |
| public Clob | createNClob(String
The String to wrap as a NCLOB. string)Implements org. |
| public Clob | createNClob(Reader
The character data reader. reader, long The length of the reader data. length)Implements org. |
| private static Method |
| CREATE_BLOB_CALLBACK | back to summary |
|---|---|
| private static final LobCreationContext. | |
| CREATE_CLOB_CALLBACK | back to summary |
|---|---|
| private static final LobCreationContext. | |
| CREATE_NCLOB_CALLBACK | back to summary |
|---|---|
| private static final LobCreationContext. | |
| CREATION_METHOD_ARGS | back to summary |
|---|---|
| private static final Object[] CREATION_METHOD_ARGS | |
| CREATION_METHOD_SIG | back to summary |
|---|---|
| private static final Class<T>[] CREATION_METHOD_SIG | |
| lobCreationContext | back to summary |
|---|---|
| private LobCreationContext lobCreationContext | |
| ContextualLobCreator | back to summary |
|---|---|
| public ContextualLobCreator(LobCreationContext lobCreationContext) | |
| createBlob | back to summary |
|---|---|
| public Blob createBlob() Create the basic contextual BLOB reference.
| |
| createBlob | back to summary |
|---|---|
| public Blob createBlob(byte[] bytes) Implements org. Doc from org. Create a BLOB reference encapsulating the given byte array.
| |
| createBlob | back to summary |
|---|---|
| public Blob createBlob(InputStream inputStream, long length) Implements org. Doc from org. Create a BLOB reference encapsulating the given binary stream.
| |
| createClob | back to summary |
|---|---|
| public Clob createClob() Create the basic contextual CLOB reference.
| |
| createClob | back to summary |
|---|---|
| public Clob createClob(String string) Implements org. Doc from org. Create a CLOB reference encapsulating the given String data.
| |
| createClob | back to summary |
|---|---|
| public Clob createClob(Reader reader, long length) Implements org. Doc from org. Create a CLOB reference encapsulating the given character data.
| |
| createNClob | back to summary |
|---|---|
| public Clob createNClob() Create the basic contextual NCLOB reference.
| |
| createNClob | back to summary |
|---|---|
| public Clob createNClob(String string) Implements org. Doc from org. Create a NCLOB reference encapsulating the given String data.
| |
| createNClob | back to summary |
|---|---|
| public Clob createNClob(Reader reader, long length) Implements org. Doc from org. Create a NCLOB reference encapsulating the given character data.
| |
| getConnectionlobCreationMethod | back to summary |
|---|---|
| private static Method getConnectionlobCreationMethod(String methodName) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Method |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | executeOnConnection(Connection
The JDBC connection)Connection.Implements org. Connection.
|
| creationMethod | back to summary |
|---|---|
| private final Method creationMethod | |
| CallbackImpl | back to summary |
|---|---|
| private CallbackImpl(Method creationMethod) | |
| executeOnConnection | back to summary |
|---|---|
| public Object executeOnConnection(Connection connection) throws SQLException Implements org. Doc from org. Perform whatever actions are necessary using the provided JDBC
| |