public class PostgresLargeObjectManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
READ
This mode indicates we want to read an object
|
static int |
READWRITE
This mode is the default.
|
static int |
WRITE
This mode indicates we want to write to an object
|
| Constructor and Description |
|---|
PostgresLargeObjectManager(Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Object largeObject) |
Long |
createLO() |
Object |
open(long oid,
int mode) |
byte[] |
read(Object largeObject,
int length) |
void |
seek(Object largeObject,
int position) |
int |
size(Object largeObject) |
void |
truncate(Object largeObject,
int position) |
Connection |
unwrap(Connection connection) |
void |
write(Object largeObject,
byte[] data) |
public static final int WRITE
public static final int READ
public static final int READWRITE
public PostgresLargeObjectManager(Connection connection) throws SQLException
SQLExceptionpublic final Long createLO() throws SQLException
SQLExceptionpublic Object open(long oid, int mode) throws SQLException
SQLExceptionpublic int size(Object largeObject) throws SQLException
SQLExceptionpublic void close(Object largeObject) throws SQLException
SQLExceptionpublic byte[] read(Object largeObject, int length) throws SQLException
SQLExceptionpublic void write(Object largeObject, byte[] data) throws SQLException
SQLExceptionpublic void seek(Object largeObject, int position) throws SQLException
SQLExceptionpublic void truncate(Object largeObject, int position) throws SQLException
SQLExceptionpublic final Connection unwrap(Connection connection) throws SQLException
SQLExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.