Class PostgresLargeObjectManager
- java.lang.Object
-
- org.apache.activemq.artemis.jdbc.store.file.PostgresLargeObjectManager
-
public class PostgresLargeObjectManager extends Object
Helper class for when the postresql driver is not directly availalbe.
-
-
Constructor Summary
Constructors Constructor Description PostgresLargeObjectManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(Object largeObject)LongcreateLO(Connection connection)Objectopen(Connection connection, long oid, int mode)byte[]read(Object largeObject, int length)voidseek(Object largeObject, int position)intsize(Object largeObject)voidtruncate(Object largeObject, int position)Connectionunwrap(Connection connection)voidwrite(Object largeObject, byte[] data)
-
-
-
Field Detail
-
WRITE
public static final int WRITE
This mode indicates we want to write to an object- See Also:
- Constant Field Values
-
READ
public static final int READ
This mode indicates we want to read an object- See Also:
- Constant Field Values
-
READWRITE
public static final int READWRITE
This mode is the default. It indicates we want read and write access to a large object- See Also:
- Constant Field Values
-
-
Method Detail
-
createLO
public final Long createLO(Connection connection) throws SQLException
- Throws:
SQLException
-
open
public Object open(Connection connection, long oid, int mode) throws SQLException
- Throws:
SQLException
-
size
public int size(Object largeObject) throws SQLException
- Throws:
SQLException
-
close
public void close(Object largeObject) throws SQLException
- Throws:
SQLException
-
read
public byte[] read(Object largeObject, int length) throws SQLException
- Throws:
SQLException
-
write
public void write(Object largeObject, byte[] data) throws SQLException
- Throws:
SQLException
-
seek
public void seek(Object largeObject, int position) throws SQLException
- Throws:
SQLException
-
truncate
public void truncate(Object largeObject, int position) throws SQLException
- Throws:
SQLException
-
unwrap
public final Connection unwrap(Connection connection) throws SQLException
- Throws:
SQLException
-
-