Class PostgresLargeObjectManager
java.lang.Object
org.apache.activemq.artemis.jdbc.store.file.PostgresLargeObjectManager
Helper class for when the postresql driver is not directly availalbe.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal LongcreateLO(Connection connection) final voiddeleteLO(Connection connection, long oid) open(Connection connection, long oid, int mode) byte[]voidintvoidfinal Connectionunwrap(Connection connection) void
-
Field Details
-
WRITE
public static final int WRITEThis mode indicates we want to write to an object- See Also:
-
READ
public static final int READThis mode indicates we want to read an object- See Also:
-
READWRITE
public static final int READWRITEThis mode is the default. It indicates we want read and write access to a large object- See Also:
-
-
Constructor Details
-
PostgresLargeObjectManager
public PostgresLargeObjectManager()
-
-
Method Details
-
createLO
- Throws:
SQLException
-
deleteLO
- Throws:
SQLException
-
open
- Throws:
SQLException
-
size
- Throws:
SQLException
-
close
- Throws:
SQLException
-
read
- Throws:
SQLException
-
write
- Throws:
SQLException
-
seek
- Throws:
SQLException
-
truncate
- Throws:
SQLException
-
unwrap
- Throws:
SQLException
-