|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.internal.JavaWrapper
org.postgresql.pljava.internal.LargeObject
public class LargeObject
The LargeObject
correspons to the internal PostgreSQL
LargeObjectDesc
.
Field Summary | |
---|---|
static int |
IFS_RDLOCK
Flag returned by create(int) and open(org.postgresql.pljava.internal.Oid, int) |
static int |
IFS_WRLOCK
Flag returned by create(int) and open(org.postgresql.pljava.internal.Oid, int) |
static int |
INV_READ
Read mode flag to be passed to create(int) and open(org.postgresql.pljava.internal.Oid, int) |
static int |
INV_WRITE
Write mode flag to be passed to create(int) and open(org.postgresql.pljava.internal.Oid, int) |
static int |
SEEK_CUR
Flag to be passed to seek(long, int) denoting that the
offset parameter should be treated relative to the current
address. |
static int |
SEEK_END
Flag to be passed to seek(long, int) denoting that the
offset parameter should be treated relative to the end
of the data. |
static int |
SEEK_SET
Flag to be passed to seek(long, int) denoting that the
offset parameter should be treated as an absolute address. |
Method Summary | |
---|---|
protected void |
_free(long pointer)
Calls the C function pfree() with the given pointer as an argument. |
void |
close()
|
static Oid |
create(int flags)
Creates a LargeObject handle and returns the Oid of
that handle. |
static int |
drop(Oid lobjId)
|
Oid |
getId()
|
long |
length()
|
static LargeObject |
open(Oid lobjId,
int flags)
|
int |
read(byte[] buf)
|
long |
seek(long offset,
int whence)
|
long |
tell()
|
int |
write(byte[] buf)
|
Methods inherited from class org.postgresql.pljava.internal.JavaWrapper |
---|
finalize, getNativePointer |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INV_WRITE
create(int)
and open(org.postgresql.pljava.internal.Oid, int)
public static final int INV_READ
create(int)
and open(org.postgresql.pljava.internal.Oid, int)
public static final int IFS_RDLOCK
create(int)
and open(org.postgresql.pljava.internal.Oid, int)
public static final int IFS_WRLOCK
create(int)
and open(org.postgresql.pljava.internal.Oid, int)
public static final int SEEK_SET
seek(long, int)
denoting that the
offset parameter should be treated as an absolute address.
public static final int SEEK_CUR
seek(long, int)
denoting that the
offset parameter should be treated relative to the current
address.
public static final int SEEK_END
seek(long, int)
denoting that the
offset parameter should be treated relative to the end
of the data.
Method Detail |
---|
public static Oid create(int flags) throws java.sql.SQLException
Oid
of
that handle.
flags
- Flags to use for creation.
open(Oid, int)
or drop(Oid)
.
java.sql.SQLException
public static LargeObject open(Oid lobjId, int flags) throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
java.sql.SQLException
public static int drop(Oid lobjId) throws java.sql.SQLException
java.sql.SQLException
public Oid getId() throws java.sql.SQLException
java.sql.SQLException
public long length() throws java.sql.SQLException
java.sql.SQLException
public long seek(long offset, int whence) throws java.sql.SQLException
java.sql.SQLException
public long tell() throws java.sql.SQLException
java.sql.SQLException
public int read(byte[] buf) throws java.sql.SQLException
java.sql.SQLException
public int write(byte[] buf) throws java.sql.SQLException
java.sql.SQLException
protected void _free(long pointer)
JavaWrapper
_free
in class JavaWrapper
pointer
- The pointer to free.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |