org.postgresql.pljava.internal
Class LargeObject
The LargeObject
correspons to the internal PostgreSQL
LargeObjectDesc
.
IFS_RDLOCK
public static final int IFS_RDLOCK
IFS_WRLOCK
public static final int IFS_WRLOCK
INV_READ
public static final int INV_READ
INV_WRITE
public static final int INV_WRITE
SEEK_CUR
public static final int SEEK_CUR
Flag to be passed to
seek(long,int)
denoting that the
offset parameter should be treated relative to the current
address.
SEEK_END
public static final 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.
SEEK_SET
public static final int SEEK_SET
Flag to be passed to
seek(long,int)
denoting that the
offset parameter should be treated as an absolute address.
close
public void close()
throws SQLException
create
public static Oid create(int flags)
throws SQLException
Creates a LargeObject handle and returns the
Oid
of
that handle.
flags
- Flags to use for creation.
drop
public static int drop(Oid lobjId)
throws SQLException
getId
public Oid getId()
throws SQLException
length
public long length()
throws SQLException
open
public static LargeObject open(Oid lobjId,
int flags)
throws SQLException
read
public int read(byte[] buf)
throws SQLException
seek
public long seek(long offset,
int whence)
throws SQLException
tell
public long tell()
throws SQLException
write
public int write(byte[] buf)
throws SQLException
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT