org.sourceforge.jxdbcon.postgresql
Class PGTypes.PGoid
java.lang.Object
|
+--org.sourceforge.jxutil.sql.type.AbstractType
|
+--org.sourceforge.jxutil.sql.type.AbstractBIGINT
|
+--org.sourceforge.jxdbcon.postgresql.PGTypes.PGoid
- Enclosing class:
- PGTypes
- public static class PGTypes.PGoid
- extends AbstractBIGINT
Unsigned 4 byte 2's complements integer value.
ranging from 0 to 4294967295, represented by a Java long.
This type can act as a BIGINT and a BLOB
Method Summary |
Blob |
getBlob(Object row,
ConversionContext ctx)
|
byte[] |
getBytes(Object row,
ConversionContext ctx)
Returns getBlob().getBytes() |
String |
getLiteralSuffix()
|
long |
getLong(Object row,
ConversionContext ctx)
|
boolean |
getUnsigned()
|
void |
setBinaryStream(Object row,
InputStream in,
int len,
ConversionContext ctx)
|
void |
setBlob(Object row,
Blob val,
ConversionContext ctx)
|
void |
setBytes(Object row,
byte[] x,
ConversionContext ctx)
|
void |
setLong(Object row,
long x,
ConversionContext ctx)
|
void |
setNull(Object row,
ConversionContext ctx)
|
void |
setObject(Object row,
Object x,
int jdbcType,
int scale,
ConversionContext ctx)
|
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractBIGINT |
getBigDecimal, getBoolean, getByte, getDouble, getFloat, getInt, getJavaClass, getJavaType, getJDBCType, getObject, getShort, getString, setBigDecimal, setBoolean, setByte, setDouble, setFloat, setInt, setShort, setString |
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
dataTruncationRead, dataTruncationWrite, deriveType, getArray, getAsciiStream, getAutoInc, getBinaryStream, getCaseSensitive, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getDate, getLiteral, getLiteralPrefix, getLocalName, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getPrecision, getRef, getScale, getSearchable, getTime, getTime, getTimestamp, getTimestamp, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setCharacterStream, setClob, setDate, setDate, setNull, setNull, setObject, setObject, setRef, setStruct, setTime, setTime, setTimestamp, setTimestamp, setURL, toString |
INSTANCE
public static final PGTypes.PGoid INSTANCE
PGTypes.PGoid
private PGTypes.PGoid()
PGTypes.PGoid
protected PGTypes.PGoid(String name)
getBlob
public Blob getBlob(Object row,
ConversionContext ctx)
throws SQLException
- Overrides:
getBlob
in class AbstractType
SQLException
getBytes
public byte[] getBytes(Object row,
ConversionContext ctx)
throws SQLException
- Returns getBlob().getBytes()
- Overrides:
getBytes
in class AbstractType
SQLException
getLiteralSuffix
public String getLiteralSuffix()
- Overrides:
getLiteralSuffix
in class AbstractType
getLong
public long getLong(Object row,
ConversionContext ctx)
throws SQLException
- Specified by:
getLong
in class AbstractBIGINT
SQLException
getUnsigned
public boolean getUnsigned()
- Overrides:
getUnsigned
in class AbstractType
setBinaryStream
public void setBinaryStream(Object row,
InputStream in,
int len,
ConversionContext ctx)
throws SQLException
- Overrides:
setBinaryStream
in class AbstractType
SQLException
setBlob
public void setBlob(Object row,
Blob val,
ConversionContext ctx)
throws SQLException
- Overrides:
setBlob
in class AbstractType
SQLException
setBytes
public void setBytes(Object row,
byte[] x,
ConversionContext ctx)
throws SQLException
- Overrides:
setBytes
in class AbstractType
SQLException
setLong
public void setLong(Object row,
long x,
ConversionContext ctx)
throws SQLException
- Specified by:
setLong
in class AbstractBIGINT
SQLException
setNull
public void setNull(Object row,
ConversionContext ctx)
throws SQLException
- Overrides:
setNull
in class AbstractType
SQLException
setObject
public void setObject(Object row,
Object x,
int jdbcType,
int scale,
ConversionContext ctx)
throws SQLException
- Overrides:
setObject
in class AbstractType
SQLException
Copyright © 2001,2002 Keve Müller; see LICENSE file for details.