org.sourceforge.jxdbcon.postgresql
Class PGTypes.DefaultParamType
java.lang.Object
|
+--org.sourceforge.jxutil.sql.type.AbstractType
|
+--org.sourceforge.jxutil.sql.type.AbstractText
|
+--org.sourceforge.jxutil.sql.type.AbstractLONGVARCHAR
|
+--org.sourceforge.jxdbcon.postgresql.PGTextTypes.PGtext
|
+--org.sourceforge.jxdbcon.postgresql.PGTypes.DefaultParamType
- Enclosing class:
- PGTypes
- public static class PGTypes.DefaultParamType
- extends PGTextTypes.PGtext
The default type for unspecified positional parameters.
As there is no known way to query the type information of positional
parameters, this type has to use heuristics to guess the proper
output format when setting parameter values.
FIXME: setTimestamp for a TIME column fails.
Method Summary |
String |
getLiteral(Object row,
ConversionContext ctx)
|
String |
getLiteralSuffix()
|
void |
setBlob(Object row,
Blob val,
ConversionContext ctx)
|
void |
setBytes(Object row,
byte[] x,
ConversionContext ctx)
This will resolve to calling bytea.setBytes which is the more
common use of setBytes than oid.setBytes |
void |
setObject(Object row,
Object x,
ConversionContext ctx)
|
void |
setObject(Object row,
Object x,
int jdbcType,
ConversionContext ctx)
|
void |
setObjectNANA(Object row,
Object x,
int jdbcType,
int scale,
ConversionContext ctx)
|
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractLONGVARCHAR |
getBigDecimal, getBoolean, getByte, getDouble, getFloat, getInt, getJavaClass, getJavaType, getJDBCType, getLong, getObject, getShort, setBigDecimal, setBoolean, setByte, setDate, setDouble, setFloat, setInt, setLong, setShort, setTime, setTimestamp |
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
dataTruncationRead, dataTruncationWrite, deriveType, getArray, getAsciiStream, getAutoInc, getBinaryStream, getBlob, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getLocalName, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getPrecision, getRef, getScale, getSearchable, getTime, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBinaryStream, setCharacterStream, setClob, setDate, setNull, setNull, setObject, setRef, setStruct, setTime, setTimestamp, setURL, toString |
typeOverride
private AbstractType typeOverride
PGTypes.DefaultParamType
public PGTypes.DefaultParamType()
getLiteral
public String getLiteral(Object row,
ConversionContext ctx)
throws SQLException
- Overrides:
getLiteral
in class PGTextTypes.PGtext
SQLException
getLiteralSuffix
public String getLiteralSuffix()
- Overrides:
getLiteralSuffix
in class PGTextTypes.PGtext
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
- This will resolve to calling bytea.setBytes which is the more
common use of setBytes than oid.setBytes
- Overrides:
setBytes
in class AbstractType
SQLException
setObject
public void setObject(Object row,
Object x,
ConversionContext ctx)
throws SQLException
- Overrides:
setObject
in class AbstractType
SQLException
setObject
public void setObject(Object row,
Object x,
int jdbcType,
ConversionContext ctx)
throws SQLException
- Overrides:
setObject
in class AbstractType
SQLException
setObjectNANA
public void setObjectNANA(Object row,
Object x,
int jdbcType,
int scale,
ConversionContext ctx)
throws SQLException
SQLException
Copyright © 2001,2002 Keve Müller; see LICENSE file for details.