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() |
Modifier and Type | Method and Description |
---|---|
void |
close(Object largeObject) |
Long |
createLO(Connection connection) |
Object |
open(Connection connection,
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 final Long createLO(Connection connection) throws SQLException
SQLException
public Object open(Connection connection, long oid, int mode) throws SQLException
SQLException
public int size(Object largeObject) throws SQLException
SQLException
public void close(Object largeObject) throws SQLException
SQLException
public byte[] read(Object largeObject, int length) throws SQLException
SQLException
public void write(Object largeObject, byte[] data) throws SQLException
SQLException
public void seek(Object largeObject, int position) throws SQLException
SQLException
public void truncate(Object largeObject, int position) throws SQLException
SQLException
public final Connection unwrap(Connection connection) throws SQLException
SQLException
Copyright © 2021 JBoss by Red Hat. All rights reserved.