public static class PostgresMediaBlobHelper.LargeObjectProxy extends LibraryConnection.TransactionStateListener
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this LargeObjectProxy.
|
void |
close(boolean closeLob)
Close this LargeObjectProxy, optionally closing the Lob.
|
void |
handleCommit()
Handle a commit operation.
|
void |
handleDispose()
Handle a dispose (of the LibraryConnection) operation.
|
void |
handleRollback()
Handle a rollback operation.
|
int |
read(byte[] b,
int off,
int len)
Reads from the large object.
|
void |
seek64(long pos)
Seeks to the specified position.
|
long |
size64()
Gets the size of the Lob.
|
public long size64() throws SQLException
SQLException
public void seek64(long pos) throws SQLException
pos
- the positionSQLException
public int read(byte[] b, int off, int len) throws SQLException
pos
- the positionoff
- the offset within the bufferlen
- the number of bytes to (attempt to) readSQLException
public void close()
public void close(boolean closeLob)
closeLob
- whether to close the Lobpublic void handleCommit()
handleCommit
in class LibraryConnection.TransactionStateListener
public void handleRollback()
handleRollback
in class LibraryConnection.TransactionStateListener
public void handleDispose()
handleDispose
in class LibraryConnection.TransactionStateListener
Copyright © 2023. All rights reserved.